- Joined
- Mar 8, 2017
- Messages
- 17
- Reaction score
- 2
- First Language
- English
- Primarily Uses
- RMMV
I'm attempting to set up a menu using a flipped layout plugin from a very helpful YouTube tutorial video. The layout I'm using is in this very simple script here (I didn't create it):
What I'm needing to do here is add a new window below the Command Window and above the Gold Window. That additional Window needs to have 3 lines of information:
1.) A dynamic string of text based on a value in one of my game variables.
2.) The display name of the current map.
3.) The current save file's playtime.
I know this probably seems super simple to most of you, but I am not very adept in JS. I've combed through several videos and posts trying to figure out how to do this myself (at least the second and third item to start with), but I cannot make it work.
The first item I'm not sure if I would have to do just a long series of "if..else" statements within the JS itself or if you can run a common event from the menu's JS to determine the string (to maybe streamline it?). But I have no idea how in the JS to reference an in-game variable and then display it as text.
Any help would be greatly appreciated. Thank you.
/*:
* @plugindesc alt menu
* @author SumRndmDde
* @Help
*/
Scene_Menu.prototype.create = function() {
Scene_MenuBase.prototype.create.call(this);
this.createCommandWindow();
this.createGoldWindow();
this.createStatusWindow();
/*
this._commandWindow
this._goldWindow
this._statusWindow
*/
this._statusWindow.x = 0;
this._commandWindow.x = this._statusWindow.width;
this._goldWindow.x = this._statusWindow.width;
this._goldWindow.y = this._commandWindow.height;
};
* @plugindesc alt menu
* @author SumRndmDde
* @Help
*/
Scene_Menu.prototype.create = function() {
Scene_MenuBase.prototype.create.call(this);
this.createCommandWindow();
this.createGoldWindow();
this.createStatusWindow();
/*
this._commandWindow
this._goldWindow
this._statusWindow
*/
this._statusWindow.x = 0;
this._commandWindow.x = this._statusWindow.width;
this._goldWindow.x = this._statusWindow.width;
this._goldWindow.y = this._commandWindow.height;
};
What I'm needing to do here is add a new window below the Command Window and above the Gold Window. That additional Window needs to have 3 lines of information:
1.) A dynamic string of text based on a value in one of my game variables.
2.) The display name of the current map.
3.) The current save file's playtime.
I know this probably seems super simple to most of you, but I am not very adept in JS. I've combed through several videos and posts trying to figure out how to do this myself (at least the second and third item to start with), but I cannot make it work.
The first item I'm not sure if I would have to do just a long series of "if..else" statements within the JS itself or if you can run a common event from the menu's JS to determine the string (to maybe streamline it?). But I have no idea how in the JS to reference an in-game variable and then display it as text.
Any help would be greatly appreciated. Thank you.