Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*:
- * @plugindesc (v. 1)
- * @author Jiffy
- *
- * @param windowWidth
- * @desc
- * @default 300
- *
- * @param windowHeight
- * @desc
- * @default 300
- *
- * @param skillOne
- * @desc Name of the skill
- * @default Mining
- *
- * @param skillOneX
- * @desc
- * @default
- *
- * @param textAlign
- * @desc
- * @default Left
- *
- * @help
- * fuck you
- */
- ///////////////////
- // Plugin Vers. //
- ///////////////////
- console.log('v.1');
- ///////////////////
- // Parameters //
- ///////////////////
- var parameters = PluginManager.parameters('test');
- var windowWidth = Number(parameters['windowWidth']);
- var windowHeight = Number(parameters['windowHeight']);
- var skillOne = String(parameters['skillOne']);
- var skillOneX = Number(parameters['skillOneX']);
- var skillOneY = Number(parameters['skillOneY']);
- var textAlign = String(parameters['textAlign']);
- //
- function Scene_Stats() {
- this.initialize.apply(this, arguments);
- }
- (function() {
- "use strict";
- Scene_Stats.prototype = Object.create(Scene_Base.prototype);
- Scene_Stats.prototype.constructor = Scene_Stats;
- Scene_Stats.prototype.initialize = function() {
- Scene_Base.prototype.initialize.call(this);
- }
- Scene_Stats.prototype.create = function() {
- Scene_Base.prototype.create.call(this);
- this.Skill_Window = new Skill_Window(0, 0);
- this.Skill_Window.x = 0;
- this.Skill_Window.y = 0;
- };
- })
- (function() {
- function Skill_Window() {
- this.initialize.apply(this, arguments);
- }
- Skill_Window.prototype = Object.create(Window_Base.prototype);
- Skill_Window.prototype.constructor = Skill_Window;
- Skill_Window.prototype.initialize = function(x, y) {
- Window_Base.prototype.initialize.call(this, x, y, this.windowWidth, this.windowHeight);
- this.drawIcon(skillOneIcon, 0, 0);
- this.drawText('skillOne', this.skillOneX, 0, this.windowWidth(), textAlign);
- this.drawGauge(this.skillOneX + 20 , 0, skillOneGuageWidth, $gameVariables.value(181) / 20, this.textColor(1), this.textColor(14));
- };
- Skill_Window.prototype.windowWidth = function() {
- return windowWidth;
- };
- Skill_Window.prototype.windowHeight = function() {
- return windowHeight;
- };
- Skill_Window.prototype.textAlign = function() {
- return textAlign;
- };
- Skill_Window.prototype.skillOneX = function() {
- return Window_Base._iconWidth + 8;
- };
- Skill_Window.prototype.skillOneGuageWidth = function() {
- return windowWidth - Window_Base._iconWidth + 8 + 20;
- };
- })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement