class Window_BEGGARWIN < Window_Command def initialize() super(544/4,416/4) create_command_list end def create_command_list add_command("Pay ### coins", :Hi) add_command("Pay Nothing", :Hi) add_command("Pay 100 coins", :Hi) end def window_height return 300 end def window_width return 300 end endclass Scene_Beggar < Scene_MenuBase def start super create_command_window end def create_command_window @command_window = Window_BEGGARWIN.new() @command_window.set_handler:)Hi, method:)command_hi)) end def command_hi #Process to run when "Hi" is selected end end #This is so frustratingSo i made this code quickly, and i didn't wanted to execute some command until my window shows up.
I used a script call to initiate the scene, and the options DO show up, but text doesn't. I can scroll between options, but not with text.
Yes, until i fiddled with those sizes i couldn't even see the options, nothing's wrong with that.
EDIT: I can't help it, it has been days...
Any help would be appreciated a lot.
Command window doesn't show text
● ARCHIVED · READ-ONLY
-
-
Just look at the default menu scene and window classes, and see what you haven't done.
What do you mean, "the options show up but the text doesn't"? Can you provide a screenshot?
Have you done ANY script changes to use fonts other than the default? Are you using ANY custom menu scripts other than the one you've shown here?
Is that super() passing the size of the window, or the coordinates? (I don't have Ace on the computer I'm currently using) -
I looked at them. I have NOT missed a thing.
That means that you can scroll between the options, everything works like butter. But the only problem is that the text does not show up even a bit. That means if you just take out the text- the borders etc are all fine.
No, i'm not using any other font/script.
The co-ordinates.
Thank you so much, Shaz! (You're awesome... :D ) just for replying :p . -
You only answered half my questions ;)
-
I answered all your questions :D
EDIT: If you think i haven't tell me WHAT i haven't. -
Simple, you're not calling make_command_list method.
class Window_BEGGARWIN < Window_Command def initialize() super(544/4,416/4) end #-------------------------------------------------------------------------- # * Create Command List #-------------------------------------------------------------------------- def make_command_list create_command_list end def create_command_list add_command("Pay ### coins", :Hi) add_command("Pay Nothing", :Hi) add_command("Pay 100 coins", :Hi) end def window_height return 300 end #-------------------------------------------------------------------------- # * Get Number of Lines to Show #-------------------------------------------------------------------------- def visible_line_number item_max end def window_width return 300 end endclass Scene_Beggar < Scene_MenuBase def start super create_command_window end def create_command_window @command_window = Window_BEGGARWIN.new() @command_window.set_handler:)Hi, method:)command_hi)) @command_window.set_handler:)cancel, method:)return_scene)) end #-------------------------------------------------------------------------- # * Return to Calling Scene #-------------------------------------------------------------------------- def return_scene SceneManager.return end def command_hi #Process to run when "Hi" is selected end endLike what Shaz said, look at what you missed. You missed everything. -
You're awesome! I wish i could really like that post twice. The streets are happy and the world is like heaven! Hope i'm not exaggerating, right?
Thanks x 50 times! I wish i could thank that much but the post limit is small...
Thank you so much Shaz.
Thank you so much SoulPour777.
Reporting-To-Close! -
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.