space saving
This commit is contained in:
parent
e3054bdb79
commit
fb5935e4b9
1 changed files with 81 additions and 86 deletions
|
|
@ -281,12 +281,7 @@ sub toolbox
|
|||
dim spacing:spacing=1
|
||||
|
||||
for i=0 to 19
|
||||
' Force integer math to keep columns locked at 2
|
||||
' x will only ever be 0 or 33
|
||||
x=(i mod 2)*(btnsize+spacing)
|
||||
|
||||
' y will only increase every 2 buttons
|
||||
' Use Int() if your language doesn't support the \ operator
|
||||
y=int(i/2)*(btnsize+spacing)
|
||||
|
||||
if imagebutton(x,y,btnsize,btnsize,icon(i)) then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue