home *** CD-ROM | disk | FTP | other *** search
/ PC for Alla 2005 May / PC för Alla 0505.iso / fullversioner / realsoft3d / data1.cab / Scripting / scripts / js / real / code / r3mpbitm.js < prev    next >
Encoding:
JavaScript  |  2005-04-04  |  6.3 KB  |  216 lines

  1.  
  2. // JavaScript wrapper for r3mpbitm.h
  3. // Auto generated file, do not modify by hand
  4. // Copyright ⌐ 2004, Realsoft Graphics Oy
  5.  
  6. var R3_MPBITMAP_H = 1;
  7. include("real/code/r3matprp.js")
  8.  
  9.  
  10. var R3CLID_MPBITMAP = 586;
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18. R3MPBMA_BaseIndex = 586500;
  19. function SetR3MPBMA_BaseIndex(value) {
  20.   R3Set(this.r3obj, R3MPBMA_BaseIndex, value, R3TID_INTEGER, 0); 
  21. }
  22.  
  23. function GetR3MPBMA_BaseIndex() {
  24.   return R3Get(this.r3obj, R3MPBMA_BaseIndex, R3TID_INTEGER, 0); 
  25. }
  26.  
  27. R3MPBMA_TileAnimation = 586501;
  28. function SetR3MPBMA_TileAnimation(value) {
  29.   R3Set(this.r3obj, R3MPBMA_TileAnimation, value, R3TID_INTEGER, 0); 
  30. }
  31.  
  32. function GetR3MPBMA_TileAnimation() {
  33.   return R3Get(this.r3obj, R3MPBMA_TileAnimation, R3TID_INTEGER, 0); 
  34. }
  35.  
  36. R3MPBMA_FlipAnimation = 586502;
  37. function SetR3MPBMA_FlipAnimation(value) {
  38.   R3Set(this.r3obj, R3MPBMA_FlipAnimation, value, R3TID_INTEGER, 0); 
  39. }
  40.  
  41. function GetR3MPBMA_FlipAnimation() {
  42.   return R3Get(this.r3obj, R3MPBMA_FlipAnimation, R3TID_INTEGER, 0); 
  43. }
  44.  
  45. R3MPBMA_ReverseAnimation = 586503;
  46. function SetR3MPBMA_ReverseAnimation(value) {
  47.   R3Set(this.r3obj, R3MPBMA_ReverseAnimation, value, R3TID_INTEGER, 0); 
  48. }
  49.  
  50. function GetR3MPBMA_ReverseAnimation() {
  51.   return R3Get(this.r3obj, R3MPBMA_ReverseAnimation, R3TID_INTEGER, 0); 
  52. }
  53.  
  54. R3MPBMA_Image = 586504;
  55. function GetR3MPBMA_Image() {
  56.   return R3ToJS(R3Get(this.r3obj, R3MPBMA_Image, R3TID_OBJECT, 0)); 
  57. }
  58.  
  59. R3MPBMA_NumFrames = 586505;
  60. function SetR3MPBMA_NumFrames(value) {
  61.   R3Set(this.r3obj, R3MPBMA_NumFrames, value, R3TID_INTEGER, 0); 
  62. }
  63.  
  64. function GetR3MPBMA_NumFrames() {
  65.   return R3Get(this.r3obj, R3MPBMA_NumFrames, R3TID_INTEGER, 0); 
  66. }
  67.  
  68. R3MPBMA_FormatType = 586506;
  69. function SetR3MPBMA_FormatType(value) {
  70.   R3Set(this.r3obj, R3MPBMA_FormatType, value, R3TID_INTEGER, 0); 
  71. }
  72.  
  73. function GetR3MPBMA_FormatType() {
  74.   return R3Get(this.r3obj, R3MPBMA_FormatType, R3TID_INTEGER, 0); 
  75. }
  76.  
  77. R3MPBMA_FormatDigits = 586507;
  78. function SetR3MPBMA_FormatDigits(value) {
  79.   R3Set(this.r3obj, R3MPBMA_FormatDigits, value, R3TID_INTEGER, 0); 
  80. }
  81.  
  82. function GetR3MPBMA_FormatDigits() {
  83.   return R3Get(this.r3obj, R3MPBMA_FormatDigits, R3TID_INTEGER, 0); 
  84. }
  85.  
  86. R3MPBMA_Format = 586508;
  87. function SetR3MPBMA_Format(value) {
  88.   R3Set(this.r3obj, R3MPBMA_Format, value, R3TID_STRING, 0); 
  89. }
  90.  
  91. function GetR3MPBMA_Format() {
  92.   return R3Get(this.r3obj, R3MPBMA_Format, R3TID_STRING, 0); 
  93. }
  94.  
  95. R3MPBMA_AnimationType = 586509;
  96. function SetR3MPBMA_AnimationType(value) {
  97.   R3Set(this.r3obj, R3MPBMA_AnimationType, value, R3TID_INTEGER, 0); 
  98. }
  99.  
  100. function GetR3MPBMA_AnimationType() {
  101.   return R3Get(this.r3obj, R3MPBMA_AnimationType, R3TID_INTEGER, 0); 
  102. }
  103.  
  104. R3MPBMA_BindingObject = 586510;
  105. function SetR3MPBMA_BindingObject(value) {
  106.   R3Set(this.r3obj, R3MPBMA_BindingObject, value, R3TID_OBJECT, 0); 
  107. }
  108.  
  109. function GetR3MPBMA_BindingObject() {
  110.   return R3ToJS(R3Get(this.r3obj, R3MPBMA_BindingObject, R3TID_OBJECT, 0)); 
  111. }
  112.  
  113. R3MPBMA_ImageName = 586511;
  114. function SetR3MPBMA_ImageName(value) {
  115.   R3Set(this.r3obj, R3MPBMA_ImageName, value, R3TID_STRING, 0); 
  116. }
  117.  
  118. function GetR3MPBMA_ImageName() {
  119.   return R3Get(this.r3obj, R3MPBMA_ImageName, R3TID_STRING, 0); 
  120. }
  121.  
  122. R3MPBMA_ImageIndex = 586512;
  123. function SetR3MPBMA_ImageIndex(value) {
  124.   R3Set(this.r3obj, R3MPBMA_ImageIndex, value, R3TID_INTEGER, 0); 
  125. }
  126.  
  127. function GetR3MPBMA_ImageIndex() {
  128.   return R3Get(this.r3obj, R3MPBMA_ImageIndex, R3TID_INTEGER, 0); 
  129. }
  130.  
  131. R3MPBMA_TextureAnimation = 586513;
  132. function SetR3MPBMA_TextureAnimation(value) {
  133.   R3Set(this.r3obj, R3MPBMA_TextureAnimation, value, R3TID_INTEGER, 0); 
  134. }
  135.  
  136. function GetR3MPBMA_TextureAnimation() {
  137.   return R3Get(this.r3obj, R3MPBMA_TextureAnimation, R3TID_INTEGER, 0); 
  138. }
  139.  
  140. R3MPBMA_RealName = 586514;
  141. function GetR3MPBMA_RealName() {
  142.   return R3Get(this.r3obj, R3MPBMA_RealName, R3TID_STRING, 0); 
  143. }
  144.  
  145. R3MPBMA_OpenSilently = 586515;
  146. function SetR3MPBMA_OpenSilently(value) {
  147.   R3Set(this.r3obj, R3MPBMA_OpenSilently, value, R3TID_BOOLEAN, 0); 
  148. }
  149.  
  150. function GetR3MPBMA_OpenSilently() {
  151.   return R3Get(this.r3obj, R3MPBMA_OpenSilently, R3TID_BOOLEAN, 0); 
  152. }
  153.  
  154. R3MPBMA_RenderAlways = 586516;
  155. function SetR3MPBMA_RenderAlways(value) {
  156.   R3Set(this.r3obj, R3MPBMA_RenderAlways, value, R3TID_BOOLEAN, 0); 
  157. }
  158.  
  159. function GetR3MPBMA_RenderAlways() {
  160.   return R3Get(this.r3obj, R3MPBMA_RenderAlways, R3TID_BOOLEAN, 0); 
  161. }
  162.  
  163. var R3MPBMATYPE_UNKNOWN = 0;
  164. var R3MPBMATYPE_ANIMATIONFILE = 1;
  165. var R3MPBMATYPE_SEPARATEIMAGES = 2;
  166. var R3MPBMANIM_NONE = 0;
  167. var R3MPBMANIM_AUTOMATIC = 1;
  168. var R3MPBMANIM_KEYFRAME = 2;
  169. var R3MPFORMAT_AUTO = 0;
  170. var R3MPFORMAT_CUSTOM = 1;
  171.  
  172.  
  173. function r3Mpbitmap () { 
  174.    this.base = r3God;
  175.    if(arguments.length) {
  176.       this.base(R3CLID_MPBITMAP, arguments);
  177.    }
  178.    // Methods
  179.  
  180.    // Attributes
  181.    this.GetBaseIndex=GetR3MPBMA_BaseIndex;
  182.    this.SetBaseIndex=SetR3MPBMA_BaseIndex;
  183.    this.GetTileAnimation=GetR3MPBMA_TileAnimation;
  184.    this.SetTileAnimation=SetR3MPBMA_TileAnimation;
  185.    this.GetFlipAnimation=GetR3MPBMA_FlipAnimation;
  186.    this.SetFlipAnimation=SetR3MPBMA_FlipAnimation;
  187.    this.GetReverseAnimation=GetR3MPBMA_ReverseAnimation;
  188.    this.SetReverseAnimation=SetR3MPBMA_ReverseAnimation;
  189.    this.GetImage=GetR3MPBMA_Image;
  190.    this.GetNumFrames=GetR3MPBMA_NumFrames;
  191.    this.SetNumFrames=SetR3MPBMA_NumFrames;
  192.    this.GetFormatType=GetR3MPBMA_FormatType;
  193.    this.SetFormatType=SetR3MPBMA_FormatType;
  194.    this.GetFormatDigits=GetR3MPBMA_FormatDigits;
  195.    this.SetFormatDigits=SetR3MPBMA_FormatDigits;
  196.    this.GetFormat=GetR3MPBMA_Format;
  197.    this.SetFormat=SetR3MPBMA_Format;
  198.    this.GetAnimationType=GetR3MPBMA_AnimationType;
  199.    this.SetAnimationType=SetR3MPBMA_AnimationType;
  200.    this.GetBindingObject=GetR3MPBMA_BindingObject;
  201.    this.SetBindingObject=SetR3MPBMA_BindingObject;
  202.    this.GetImageName=GetR3MPBMA_ImageName;
  203.    this.SetImageName=SetR3MPBMA_ImageName;
  204.    this.GetImageIndex=GetR3MPBMA_ImageIndex;
  205.    this.SetImageIndex=SetR3MPBMA_ImageIndex;
  206.    this.GetTextureAnimation=GetR3MPBMA_TextureAnimation;
  207.    this.SetTextureAnimation=SetR3MPBMA_TextureAnimation;
  208.    this.GetRealName=GetR3MPBMA_RealName;
  209.    this.GetOpenSilently=GetR3MPBMA_OpenSilently;
  210.    this.SetOpenSilently=SetR3MPBMA_OpenSilently;
  211.    this.GetRenderAlways=GetR3MPBMA_RenderAlways;
  212.    this.SetRenderAlways=SetR3MPBMA_RenderAlways;
  213. }
  214.  
  215. r3Mpbitmap.prototype=new r3Matprop;
  216. // r3mpbitm.h_H