make-all-help-files.js 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408
  1. #!/usr/bin/node
  2. const utils = require("./help-file");
  3. utils.makeHelpFile([
  4. "Phaser.Loader.LoaderPlugin.atlas(atlasURL)",
  5. "Phaser.Loader.LoaderPlugin.atlas(textureURL)",
  6. "Phaser.Types.Loader.FileTypes.AtlasJSONFileConfig.normalMap",
  7. "Phaser.Loader.LoaderPlugin.aseprite(atlasURL)",
  8. "Phaser.Loader.LoaderPlugin.aseprite(textureURL)",
  9. "Phaser.Loader.LoaderPlugin.atlasXML(atlasURL)",
  10. "Phaser.Loader.LoaderPlugin.atlasXML(textureURL)",
  11. "Phaser.Types.Loader.FileTypes.AtlasXMLFileConfig.normalMap",
  12. "Phaser.Loader.LoaderPlugin.audio(urls)",
  13. "Phaser.Loader.LoaderPlugin.audioSprite(jsonURL)",
  14. "Phaser.Loader.LoaderPlugin.audioSprite(audioURL)",
  15. "Phaser.Loader.LoaderPlugin.bitmapFont(fontDataURL)",
  16. "Phaser.Loader.LoaderPlugin.bitmapFont(textureURL)",
  17. "Phaser.Types.Loader.FileTypes.BitmapFontFileConfig.normalMap",
  18. "Phaser.Loader.LoaderPlugin.htmlTexture(url)",
  19. "Phaser.Loader.LoaderPlugin.htmlTexture(width)",
  20. "Phaser.Loader.LoaderPlugin.htmlTexture(height)",
  21. "Phaser.Loader.LoaderPlugin.image(url)",
  22. "Phaser.Types.Loader.FileTypes.ImageFileConfig.normalMap",
  23. "Phaser.Loader.LoaderPlugin.multiatlas(atlasURL)",
  24. "Phaser.Loader.LoaderPlugin.multiatlas(path)",
  25. "Phaser.Loader.LoaderPlugin.plugin(url)",
  26. "Phaser.Loader.LoaderPlugin.plugin(start)",
  27. "Phaser.Loader.LoaderPlugin.plugin(mapping)",
  28. "Phaser.Loader.LoaderPlugin.scenePlugin(url)",
  29. "Phaser.Loader.LoaderPlugin.scenePlugin(systemKey)",
  30. "Phaser.Loader.LoaderPlugin.scenePlugin(sceneKey)",
  31. "Phaser.Loader.LoaderPlugin.animation(url)",
  32. "Phaser.Loader.LoaderPlugin.sceneFile(url)",
  33. "Phaser.Loader.LoaderPlugin.script(url)",
  34. "Phaser.Loader.LoaderPlugin.text(url)",
  35. "Phaser.Loader.LoaderPlugin.glsl(url)",
  36. "Phaser.Loader.LoaderPlugin.html(url)",
  37. "Phaser.Loader.LoaderPlugin.json(url)",
  38. "Phaser.Loader.LoaderPlugin.xml(url)",
  39. "Phaser.Types.Textures.SpriteSheetConfig.frameWidth",
  40. "Phaser.Types.Textures.SpriteSheetConfig.frameHeight",
  41. "Phaser.Types.Textures.SpriteSheetConfig.startFrame",
  42. "Phaser.Types.Textures.SpriteSheetConfig.endFrame",
  43. "Phaser.Types.Textures.SpriteSheetConfig.margin",
  44. "Phaser.Types.Textures.SpriteSheetConfig.spacing",
  45. "Phaser.Loader.LoaderPlugin.spritesheet(url)",
  46. "Phaser.Loader.LoaderPlugin.svg(url)",
  47. "Phaser.Types.Loader.FileTypes.SVGSizeConfig.width",
  48. "Phaser.Types.Loader.FileTypes.SVGSizeConfig.height",
  49. "Phaser.Types.Loader.FileTypes.SVGSizeConfig.scale",
  50. "Phaser.Loader.LoaderPlugin.tilemapCSV(url)",
  51. "Phaser.Loader.LoaderPlugin.tilemapImpact(url)",
  52. "Phaser.Loader.LoaderPlugin.tilemapTiledJSON(url)",
  53. "Phaser.Loader.LoaderPlugin.unityAtlas(atlasURL)",
  54. "Phaser.Loader.LoaderPlugin.unityAtlas(textureURL)",
  55. "Phaser.Types.Loader.FileTypes.UnityAtlasFileConfig.normalMap",
  56. "Phaser.Loader.LoaderPlugin.video(urls)",
  57. ], "../source/editor/plugins/phasereditor2d.resources/_res/phasereditor2d.pack/docs/phaser-docs.json");
  58. utils.makeHelpFile([
  59. "Phaser.GameObjects.Image",
  60. "Phaser.GameObjects.Sprite",
  61. "Phaser.GameObjects.Container",
  62. "Phaser.GameObjects.Components.Transform.x",
  63. "Phaser.GameObjects.Components.Transform.y",
  64. "Phaser.GameObjects.Components.Transform.setPosition",
  65. "Phaser.GameObjects.Components.Transform.scaleX",
  66. "Phaser.GameObjects.Components.Transform.scaleY",
  67. "Phaser.GameObjects.Components.Transform.angle",
  68. "Phaser.GameObjects.Components.Origin.originX",
  69. "Phaser.GameObjects.Components.Origin.originY",
  70. "Phaser.GameObjects.Components.Origin.setOrigin",
  71. "Phaser.GameObjects.Components.Alpha.alpha",
  72. "Phaser.GameObjects.Components.Alpha.alphaTopLeft",
  73. "Phaser.GameObjects.Components.Alpha.alphaTopRight",
  74. "Phaser.GameObjects.Components.Alpha.alphaBottomLeft",
  75. "Phaser.GameObjects.Components.Alpha.alphaBottomRight",
  76. "Phaser.GameObjects.Components.Flip.flipX",
  77. "Phaser.GameObjects.Components.Flip.flipY",
  78. "Phaser.GameObjects.Components.Visible.visible",
  79. "Phaser.GameObjects.Components.Tint.tint",
  80. "Phaser.GameObjects.Components.Tint.tintFill",
  81. "Phaser.GameObjects.Components.Tint.tintTopLeft",
  82. "Phaser.GameObjects.Components.Tint.tintTopRight",
  83. "Phaser.GameObjects.Components.Tint.tintBottomLeft",
  84. "Phaser.GameObjects.Components.Tint.tintBottomRight",
  85. "Phaser.GameObjects.TileSprite",
  86. "Phaser.GameObjects.Components.ComputedSize.width",
  87. "Phaser.GameObjects.Components.ComputedSize.height",
  88. "Phaser.GameObjects.Components.ComputedSize.setSize",
  89. "Phaser.GameObjects.TileSprite.tilePositionX",
  90. "Phaser.GameObjects.TileSprite.tilePositionY",
  91. "Phaser.GameObjects.TileSprite.setTilePosition",
  92. "Phaser.GameObjects.TileSprite.tileScaleX",
  93. "Phaser.GameObjects.TileSprite.tileScaleY",
  94. "Phaser.GameObjects.TileSprite.setTileScale",
  95. "Phaser.GameObjects.NineSlice",
  96. "Phaser.GameObjects.NineSlice.leftWidth",
  97. "Phaser.GameObjects.NineSlice.rightWidth",
  98. "Phaser.GameObjects.NineSlice.topHeight",
  99. "Phaser.GameObjects.NineSlice.bottomHeight",
  100. "Phaser.GameObjects.GameObject.parentContainer",
  101. "Phaser.GameObjects.Text",
  102. "Phaser.Types.GameObjects.Text.TextStyle.fixedWidth",
  103. "Phaser.Types.GameObjects.Text.TextStyle.fixedHeight",
  104. "Phaser.GameObjects.TextStyle.setFixedSize",
  105. "Phaser.GameObjects.Text.setPadding",
  106. "Phaser.Types.GameObjects.Text.TextPadding.left",
  107. "Phaser.Types.GameObjects.Text.TextPadding.top",
  108. "Phaser.Types.GameObjects.Text.TextPadding.right",
  109. "Phaser.Types.GameObjects.Text.TextPadding.bottom",
  110. "Phaser.GameObjects.Text.lineSpacing",
  111. "Phaser.GameObjects.Text.setAlign",
  112. "Phaser.GameObjects.Text.setFontFamily",
  113. "Phaser.GameObjects.Text.setFontSize",
  114. "Phaser.GameObjects.Text.setFontStyle",
  115. "Phaser.GameObjects.Text.setColor",
  116. "Phaser.GameObjects.Text.setStroke(color)",
  117. "Phaser.GameObjects.Text.setStroke(thickness)",
  118. "Phaser.GameObjects.Text.setBackgroundColor",
  119. "Phaser.GameObjects.Text.setShadowOffset",
  120. "Phaser.GameObjects.Text.setShadowOffset(x)",
  121. "Phaser.GameObjects.Text.setShadowOffset(y)",
  122. "Phaser.GameObjects.Text.setShadowStroke",
  123. "Phaser.GameObjects.Text.setShadowFill",
  124. "Phaser.GameObjects.Text.setShadowColor",
  125. "Phaser.GameObjects.Text.setShadowBlur",
  126. "Phaser.GameObjects.TextStyle.baselineX",
  127. "Phaser.GameObjects.TextStyle.baselineY",
  128. "Phaser.GameObjects.Text.setMaxLines",
  129. "Phaser.GameObjects.Text.setWordWrapWidth(useAdvancedWrap)",
  130. "Phaser.GameObjects.Text.setWordWrapWidth(width)",
  131. "Phaser.GameObjects.BitmapText",
  132. "Phaser.GameObjects.BitmapText.setFont",
  133. "Phaser.GameObjects.BitmapText.align",
  134. "Phaser.GameObjects.BitmapText.setFontSize",
  135. "Phaser.GameObjects.BitmapText.setLetterSpacing",
  136. "Phaser.GameObjects.BitmapText.dropShadowX",
  137. "Phaser.GameObjects.BitmapText.dropShadowY",
  138. "Phaser.GameObjects.BitmapText.dropShadowColor",
  139. "Phaser.GameObjects.BitmapText.dropShadowAlpha",
  140. "Phaser.Tilemaps.Tilemap",
  141. "Phaser.Tilemaps.Tilemap.tileWidth",
  142. "Phaser.Tilemaps.Tilemap.tileHeight",
  143. "Phaser.GameObjects.GameObjectFactory.tilemap(key)",
  144. "Phaser.Tilemaps.Tileset",
  145. "Phaser.Tilemaps.Tileset.name",
  146. "Phaser.Tilemaps.Tileset.image",
  147. "Phaser.Tilemaps.Tileset.tileWidth",
  148. "Phaser.Tilemaps.Tileset.tileHeight",
  149. "Phaser.Tilemaps.Tileset.tileMargin",
  150. "Phaser.Tilemaps.Tileset.tileSpacing",
  151. "Phaser.Tilemaps.TilemapLayer",
  152. "Phaser.Tilemaps.TilemapLayer",
  153. "Phaser.Tilemaps.LayerData",
  154. "Phaser.Tilemaps.LayerData.name",
  155. "Phaser.Tilemaps.LayerData.width",
  156. "Phaser.Tilemaps.LayerData.height",
  157. "Phaser.Tilemaps.LayerData.tileWidth",
  158. "Phaser.Tilemaps.LayerData.tileHeight",
  159. "Phaser.Tilemaps.LayerData.widthInPixels",
  160. "Phaser.Tilemaps.LayerData.heightInPixels",
  161. "Phaser.GameObjects.Shape",
  162. "Phaser.GameObjects.Shape.isFilled",
  163. "Phaser.GameObjects.Shape.fillColor",
  164. "Phaser.GameObjects.Shape.fillAlpha",
  165. "Phaser.GameObjects.Shape.isStroked",
  166. "Phaser.GameObjects.Shape.strokeColor",
  167. "Phaser.GameObjects.Shape.strokeAlpha",
  168. "Phaser.GameObjects.Shape.lineWidth",
  169. "Phaser.GameObjects.Rectangle",
  170. "Phaser.GameObjects.Ellipse",
  171. "Phaser.GameObjects.Ellipse.smoothness",
  172. "Phaser.GameObjects.Polygon",
  173. "Phaser.GameObjects.Triangle",
  174. "Phaser.Geom.Triangle.x1",
  175. "Phaser.Geom.Triangle.y1",
  176. "Phaser.Geom.Triangle.x2",
  177. "Phaser.Geom.Triangle.y2",
  178. "Phaser.Geom.Triangle.x3",
  179. "Phaser.Geom.Triangle.y3",
  180. "Phaser.Geom.Rectangle.x",
  181. "Phaser.Geom.Rectangle.y",
  182. "Phaser.Geom.Rectangle.width",
  183. "Phaser.Geom.Rectangle.height",
  184. "Phaser.Geom.Ellipse.x",
  185. "Phaser.Geom.Ellipse.y",
  186. "Phaser.Geom.Ellipse.width",
  187. "Phaser.Geom.Ellipse.height",
  188. "Phaser.Geom.Circle.x",
  189. "Phaser.Geom.Circle.y",
  190. "Phaser.Geom.Circle.radius",
  191. "Phaser.Input.InputPlugin.makePixelPerfect(alphaTolerance)",
  192. "Phaser.GameObjects.Layer",
  193. "Phaser.Physics.Arcade.Collider",
  194. "Phaser.Physics.Arcade.Image",
  195. "Phaser.Physics.Arcade.Sprite",
  196. "Phaser.Physics.Arcade.Body",
  197. "Phaser.Physics.Arcade.Body.enable",
  198. "Phaser.Physics.Arcade.Body.offset",
  199. "Phaser.Physics.Arcade.Body.radius",
  200. "Phaser.Physics.Arcade.Body.moves",
  201. "Phaser.Physics.Arcade.Body.velocity",
  202. "Phaser.Physics.Arcade.Body.maxVelocity",
  203. "Phaser.Physics.Arcade.Body.maxSpeed",
  204. "Phaser.Physics.Arcade.Body.allowGravity",
  205. "Phaser.Physics.Arcade.Body.gravity",
  206. "Phaser.Physics.Arcade.Body.acceleration",
  207. "Phaser.Physics.Arcade.Body.useDamping",
  208. "Phaser.Physics.Arcade.Body.allowDrag",
  209. "Phaser.Physics.Arcade.Body.drag",
  210. "Phaser.Physics.Arcade.Body.allowRotation",
  211. "Phaser.Physics.Arcade.Body.rotation",
  212. "Phaser.Physics.Arcade.Body.angularVelocity",
  213. "Phaser.Physics.Arcade.Body.angularAcceleration",
  214. "Phaser.Physics.Arcade.Body.angularDrag",
  215. "Phaser.Physics.Arcade.Body.maxAngular",
  216. "Phaser.Physics.Arcade.Body.pushable",
  217. "Phaser.Physics.Arcade.Body.immovable",
  218. "Phaser.Physics.Arcade.Body.collideWorldBounds",
  219. "Phaser.Physics.Arcade.Body.onWorldBounds",
  220. "Phaser.Physics.Arcade.Body.mass",
  221. "Phaser.Physics.Arcade.Body.bounce",
  222. "Phaser.Physics.Arcade.Body.friction",
  223. "Phaser.Physics.Arcade.Body.overlapX",
  224. "Phaser.Physics.Arcade.Body.overlapY",
  225. "Phaser.Physics.Arcade.Body.overlapR",
  226. "Phaser.Physics.Arcade.Collider(overlapOnly)",
  227. "Phaser.Physics.Arcade.Collider(object1)",
  228. "Phaser.Physics.Arcade.Collider(object2)",
  229. "Phaser.Physics.Arcade.Collider(collideCallback)",
  230. "Phaser.Physics.Arcade.Collider(processCallback)",
  231. "Phaser.Physics.Arcade.Collider(callbackContext)",
  232. "Phaser.FX.Glow.color",
  233. "Phaser.FX.Glow.outerStrength",
  234. "Phaser.FX.Glow.innerStrength",
  235. "Phaser.FX.Glow.knockout",
  236. "Phaser.FX.Shadow.x",
  237. "Phaser.FX.Shadow.y",
  238. "Phaser.FX.Shadow.decay",
  239. "Phaser.FX.Shadow.power",
  240. "Phaser.FX.Shadow.color",
  241. "Phaser.FX.Shadow.samples",
  242. "Phaser.FX.Shadow.intensity",
  243. "Phaser.FX.Barrel.amount",
  244. "Phaser.FX.Bloom.color",
  245. "Phaser.FX.Bloom.offsetX",
  246. "Phaser.FX.Bloom.offsetY",
  247. "Phaser.FX.Bloom.blurStrength",
  248. "Phaser.FX.Bloom.strength",
  249. "Phaser.FX.Bloom.steps",
  250. "Phaser.FX.Bokeh.radius",
  251. "Phaser.FX.Bokeh.amount",
  252. "Phaser.FX.Bokeh.contrast",
  253. "Phaser.FX.Bokeh.isTiltShift",
  254. "Phaser.FX.Bokeh.blurX",
  255. "Phaser.FX.Bokeh.blurY",
  256. "Phaser.FX.Bokeh.strength",
  257. "Phaser.FX.Circle.thickness",
  258. "Phaser.FX.Circle.color",
  259. "Phaser.FX.Circle.backgroundColor",
  260. "Phaser.FX.Circle.scale",
  261. "Phaser.FX.Circle.feather",
  262. "Phaser.FX.ColorMatrix.alpha",
  263. "Phaser.FX.ColorMatrix.brightness(value)",
  264. "Phaser.FX.ColorMatrix.hue(rotation)",
  265. "Phaser.FX.ColorMatrix.grayscale(value)",
  266. "Phaser.FX.ColorMatrix.contrast(value)",
  267. "Phaser.FX.ColorMatrix.night(intensity)",
  268. "Phaser.FX.Displacement.x",
  269. "Phaser.FX.Displacement.y",
  270. "Phaser.FX.Gradient.color1",
  271. "Phaser.FX.Gradient.color2",
  272. "Phaser.FX.Gradient.alpha",
  273. "Phaser.FX.Gradient.fromX",
  274. "Phaser.FX.Gradient.fromY",
  275. "Phaser.FX.Gradient.toX",
  276. "Phaser.FX.Gradient.toY",
  277. "Phaser.FX.Gradient.size",
  278. "Phaser.FX.Pixelate.amount",
  279. "Phaser.FX.Shine.speed",
  280. "Phaser.FX.Shine.lineWidth",
  281. "Phaser.FX.Shine.gradient",
  282. "Phaser.FX.Shine.reveal",
  283. "Phaser.FX.Vignette.x",
  284. "Phaser.FX.Vignette.y",
  285. "Phaser.FX.Vignette.radius",
  286. "Phaser.FX.Vignette.strength",
  287. "Phaser.FX.Wipe.wipeWidth",
  288. "Phaser.FX.Wipe.direction",
  289. "Phaser.FX.Wipe.axis",
  290. "Phaser.FX.Wipe.progress",
  291. "Phaser.FX.Wipe.reveal",
  292. "Phaser.Input.Keyboard.Key",
  293. "spine.SpineGameObject",
  294. "spine.SkinsAndAnimationBoundsProvider(animation)",
  295. "spine.SkinsAndAnimationBoundsProvider(skins)",
  296. "spine.SkinsAndAnimationBoundsProvider(animation)",
  297. "spine.SkinsAndAnimationBoundsProvider(timeStep)",
  298. "spine.AnimationState.timeScale",
  299. "spine.AnimationStateData.defaultMix",
  300. "spine.AnimationStateData.setMixWith",
  301. "Phaser.Types.Animations.PlayAnimationConfig.frameRate",
  302. "Phaser.Types.Animations.PlayAnimationConfig.delay",
  303. "Phaser.Types.Animations.PlayAnimationConfig.repeat",
  304. "Phaser.Types.Animations.PlayAnimationConfig.repeatDelay",
  305. "Phaser.Types.Animations.PlayAnimationConfig.yoyo",
  306. "Phaser.Types.Animations.PlayAnimationConfig.showOnStart",
  307. "Phaser.Types.Animations.PlayAnimationConfig.hideOnComplete",
  308. "Phaser.Types.Animations.PlayAnimationConfig.showBeforeDelay",
  309. "Phaser.Types.Animations.PlayAnimationConfig.startFrame",
  310. "Phaser.Types.Animations.PlayAnimationConfig.timeScale",
  311. "Phaser.FX.Glow.color",
  312. "Phaser.FX.Glow.outerStrength",
  313. "Phaser.FX.Glow.innerStrength",
  314. "Phaser.FX.Glow.knockout",
  315. "Phaser.FX.Shadow.x",
  316. "Phaser.FX.Shadow.y",
  317. "Phaser.FX.Shadow.decay",
  318. "Phaser.FX.Shadow.power",
  319. "Phaser.FX.Shadow.color",
  320. "Phaser.FX.Shadow.samples",
  321. "Phaser.FX.Shadow.intensity",
  322. ], "../source/editor/plugins/phasereditor2d.resources/_res/phasereditor2d.scene/docs/phaser.json");
  323. utils.makeHelpFile([
  324. "Phaser.Types.Animations.Animation.key",
  325. "Phaser.Types.Animations.Animation.frameRate",
  326. "Phaser.Types.Animations.Animation.delay",
  327. "Phaser.Types.Animations.Animation.repeat",
  328. "Phaser.Types.Animations.Animation.repeatDelay",
  329. "Phaser.Types.Animations.Animation.yoyo",
  330. "Phaser.Types.Animations.Animation.showOnStart",
  331. "Phaser.Types.Animations.Animation.hideOnComplete",
  332. "Phaser.Types.Animations.Animation.showBeforeDelay",
  333. "Phaser.Types.Animations.Animation.skipMissedFrames",
  334. "Phaser.Types.Animations.PlayAnimationConfig.startFrame",
  335. ], "../source/editor/plugins/phasereditor2d.resources/_res/phasereditor2d.animations/docs/phaser-docs.json");
  336. console.log("DONE!");