another silly question 😛 as the title says, in Window_Selectable i've found that the @index is being set to -1 at initialize. but whenever we accessed the said window (for example the Window_TitleCommand) the @index is being set at 0 (the first index command). my question is, what is the purpose of being -1 at initialize? why the selectable doesn't set the default @index at initialize into 0?
@index = -1 , what does it mean?
Learning Ruby and RGSSxThat's mean there's no index is selected by default.
whoa that was a lightning fast respond lol (padahal udah ngomong duluan tadi) 😛 😛
okay then this thread has been solved. just close this
okay then this thread has been solved. just close this
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.
Original thread: https://forums.rpgmakerweb.com/threads/index-1-what-does-it-mean.20647/