Select Text Window

Gyldstrand

Veteran
Veteran
Joined
Oct 16, 2014
Messages
76
Reaction score
4
I have a basic scene with a single window the size of the screen. I put a bunch of drawText making 3 columns of statistics. Now I am wondering how to make the text have a cursor. I was able to replace column 1 with a command window but I could not figure out how to create custom commands that worked.  Right now I am trying to understand the options window and make the player stats similar to the volume controls where you can increase or decrease with LEFT and RIGHT, and see the results on the page, but every time I change something it breaks.  Looking for some pointers or a template with a single command similar to the volume control.
 

Iavra

Veteran
Veteran
Joined
Apr 9, 2015
Messages
1,797
Reaction score
863
First Language
German
Primarily Uses
You should create a new class, that's extending Window_Selectable (or Window_Command, depending on what you want to do) and overwrite its "maxCols" functin to return 3.
 

Gyldstrand

Veteran
Veteran
Joined
Oct 16, 2014
Messages
76
Reaction score
4
I want the commands to increase either a variable or one of the actor's parameters. I have a command window with a custom command but cannot get it to execute changes. I don't know how to do the selectable windows yet but would that be easier for this?

How do I make this:

Scene_Custom.prototype.commandCustom = function() {

    SceneManager.push(Scene_Custom);

};
do this:

Scene_Custom.prototype.commandCustom = function() {

    $gameActors.actor(1).par + number;

};
 
Last edited by a moderator:

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,860
Messages
1,017,038
Members
137,568
Latest member
invidious
Top