- Joined
- Jul 29, 2013
- Messages
- 5
- Reaction score
- 0
- First Language
- Filipino
- Primarily Uses
Straight to the point:
So I created a selectable window which has 5 items to select with(command1..command5), I adjusted the window height to 100 so at first you can only see 3 commands(command1..command3). See image below.
if you press down key further more, you should be able to see command4 and command5. but look...
If i try to resize the window height to 200, command 4 and 5 will be visible
here is the command1...command5 script
I didn't actually notice this until I created my party system, the actors can be selected but their names aren't visible on window selectable.
Am I missing a line of code here? Or this is just a faulty coding. Thanks in advance.
So I created a selectable window which has 5 items to select with(command1..command5), I adjusted the window height to 100 so at first you can only see 3 commands(command1..command3). See image below.
class Window_Select < Window_Selectable def initialize super(10,10,160,100) # set window position and size @options = ["command1","command2","command3","command4","command5",] # selectable items @item_max = @options.size # number of selectable items refresh self.index = 0 # this is just for the default positioning of cursor end def refresh for i in 0...@item_max draw_item(i) end end def draw_item(index) rect = item_rect(index) self.contents.draw_text(rect, @options[index]) end endclass Scene_Select < Scene_Base def start @window_select = Window_Select.new end def update @window_select.update if Input.trigger?(Input:: #Sound.play_cancel $scene = Scene_Map.new end end def terminate @window_select.dispose end end

