0 Members and 1 Guest are viewing this topic.
That's what you are doing in Powder Game, right?It's a very good way, but truly complicated to get there. Nice brain ya got
Yes, it's how I doing the menu in Powder. Thanks.
There's actually a slightly more efficient way of doing it. Let's say that you have a series of buttons arranged vertically, as is common in many GUIs. You could arrange the buttons with a simple algorithm like this:Code: [Select]:"WTRSNDMTLSPKOILFIRERS"→Str1:For(A,0,6:A*8+5→B:Text(80,B,3*A+Str1):RectI(78,B-1,15,9:RectI(79,B,13,7:EndThis will display three characters from the string for each button and draw a box around the text. When you go to click on a button, you just have to redo the algorithm with with the Y coordinate.
:"WTRSNDMTLSPKOILFIRERS"→Str1:For(A,0,6:A*8+5→B:Text(80,B,3*A+Str1):RectI(78,B-1,15,9:RectI(79,B,13,7:End
:"WTRSNDMTLSPKOILFIRERS"→Str1:8→A:While A-1→A:Text(*8-3→B*256+80):Text A*3-3+Str1:RectI(78,B-1,15,9):RectI(79,B,13,7):End
:"WTRSNDMTLSPKOILFIRERS"→Str1:8→A+1→C:While A-1→A:Text(*8-3→B*256+80):Text A*3-3+Str1:RectI(78,B-1,15,C):RectI(79,B,13,8→C-1):End
EDIT 4: (Wow this is a lot of edits!) I'm guessing your code does this too, but do you also get the lack of borders between the middle buttons? This would fix it:<snip>