Preface: Sorry if this is the wrong section. My coding vernacular is limited (still learning), so excuse any inaccurate terms I may use (though correcting me would be appreciated).
Hey all,
Hopefully this is a relatively easy question to answer. I'm using Switches to control the amount (and which) commands appear in Window_MenuCommand. I am also using those switches to determine the height of the Windows itself. Rather than having a handful of If statements, is there a variable that basically stores the amount of commands currently displayed? There's a large chance I overlooked it. Something like:
#-------------------------------------------------------------------------- # * Get Window Height #-------------------------------------------------------------------------- def window_height return fitting_height(command_size) endwould be preferred to my current:
#-------------------------------------------------------------------------- # * Get Window Height #-------------------------------------------------------------------------- def window_height if $game_switches[15] or if $game_switches[16] return 224 elsif $game_switches[15] and $game_switches[16] return 248 else return 200 end endAny help is appreciated, thanks!
Hey all,
Hopefully this is a relatively easy question to answer. I'm using Switches to control the amount (and which) commands appear in Window_MenuCommand. I am also using those switches to determine the height of the Windows itself. Rather than having a handful of If statements, is there a variable that basically stores the amount of commands currently displayed? There's a large chance I overlooked it. Something like:
#-------------------------------------------------------------------------- # * Get Window Height #-------------------------------------------------------------------------- def window_height return fitting_height(command_size) endwould be preferred to my current:
#-------------------------------------------------------------------------- # * Get Window Height #-------------------------------------------------------------------------- def window_height if $game_switches[15] or if $game_switches[16] return 224 elsif $game_switches[15] and $game_switches[16] return 248 else return 200 end endAny help is appreciated, thanks!