Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.47 KB | None | 0 0
  1. /*:
  2. * @plugindesc (v. 1)
  3. * @author Jiffy
  4. *
  5. * @param windowWidth
  6. * @desc
  7. * @default 300
  8. *
  9. * @param windowHeight
  10. * @desc
  11. * @default 300
  12. *
  13. * @param skillOne
  14. * @desc Name of the skill
  15. * @default Mining
  16. *
  17. * @param skillOneX
  18. * @desc
  19. * @default
  20. *
  21. * @param textAlign
  22. * @desc
  23. * @default Left
  24. *
  25. * @help
  26. * fuck you
  27. */
  28.  
  29. ///////////////////
  30. // Plugin Vers. //
  31. ///////////////////
  32.  
  33. console.log('v.1');
  34.  
  35. ///////////////////
  36. // Parameters //
  37. ///////////////////
  38.  
  39. var parameters = PluginManager.parameters('test');
  40.  
  41. var windowWidth = Number(parameters['windowWidth']);
  42. var windowHeight = Number(parameters['windowHeight']);
  43. var skillOne = String(parameters['skillOne']);
  44. var skillOneX = Number(parameters['skillOneX']);
  45. var skillOneY = Number(parameters['skillOneY']);
  46. var textAlign = String(parameters['textAlign']);
  47.  
  48. //
  49.  
  50. function Scene_Stats() {
  51. this.initialize.apply(this, arguments);
  52. }
  53.  
  54. (function() {
  55.  
  56. "use strict";
  57.  
  58. Scene_Stats.prototype = Object.create(Scene_Base.prototype);
  59. Scene_Stats.prototype.constructor = Scene_Stats;
  60.  
  61. Scene_Stats.prototype.initialize = function() {
  62. Scene_Base.prototype.initialize.call(this);
  63. }
  64.  
  65. Scene_Stats.prototype.create = function() {
  66. Scene_Base.prototype.create.call(this);
  67. this.Skill_Window = new Skill_Window(0, 0);
  68. this.Skill_Window.x = 0;
  69. this.Skill_Window.y = 0;
  70. };
  71. })
  72.  
  73. (function() {
  74. function Skill_Window() {
  75. this.initialize.apply(this, arguments);
  76. }
  77.  
  78. Skill_Window.prototype = Object.create(Window_Base.prototype);
  79. Skill_Window.prototype.constructor = Skill_Window;
  80.  
  81. Skill_Window.prototype.initialize = function(x, y) {
  82. Window_Base.prototype.initialize.call(this, x, y, this.windowWidth, this.windowHeight);
  83. this.drawIcon(skillOneIcon, 0, 0);
  84. this.drawText('skillOne', this.skillOneX, 0, this.windowWidth(), textAlign);
  85. this.drawGauge(this.skillOneX + 20 , 0, skillOneGuageWidth, $gameVariables.value(181) / 20, this.textColor(1), this.textColor(14));
  86. };
  87.  
  88. Skill_Window.prototype.windowWidth = function() {
  89. return windowWidth;
  90. };
  91.  
  92. Skill_Window.prototype.windowHeight = function() {
  93. return windowHeight;
  94. };
  95.  
  96. Skill_Window.prototype.textAlign = function() {
  97. return textAlign;
  98. };
  99.  
  100. Skill_Window.prototype.skillOneX = function() {
  101. return Window_Base._iconWidth + 8;
  102. };
  103.  
  104. Skill_Window.prototype.skillOneGuageWidth = function() {
  105. return windowWidth - Window_Base._iconWidth + 8 + 20;
  106. };
  107.  
  108. })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement