readability
This commit is contained in:
parent
fb5935e4b9
commit
7d18102f31
1 changed files with 18 additions and 6 deletions
24
pixler.bas
24
pixler.bas
|
|
@ -120,12 +120,24 @@ do
|
||||||
' Keyboarding
|
' Keyboarding
|
||||||
keyin=inkey$
|
keyin=inkey$
|
||||||
select case keyin
|
select case keyin
|
||||||
case "+":state.brushsize=state.brushsize+1:addcommand"brushsize ("+tst(state.brushsize)+")"
|
case "+"
|
||||||
case "-":if state.brushsize>1 then state.brushsize=state.brushsize-1:addcommand"brushsize ("+tst(state.brushsize)+")"
|
state.brushsize=state.brushsize+1
|
||||||
case "h":state.zoom=1:state.offsetx=(_width/2)-(_width(layers(0).ihandle)/2):state.offsety=(_height/2)-(_height(layers(0).ihandle)/2)
|
addcommand"brushsize ("+tst(state.brushsize)+")"
|
||||||
case "t":showtoolbox=not showtoolbox
|
case "-"
|
||||||
case "c":showcolorpicker=not showcolorpicker
|
if state.brushsize>1 then
|
||||||
case "l":showcommands=not showcommands
|
state.brushsize=state.brushsize-1
|
||||||
|
addcommand"brushsize ("+tst(state.brushsize)+")"
|
||||||
|
end if
|
||||||
|
case "h"
|
||||||
|
state.zoom=1
|
||||||
|
state.offsetx=(_width/2)-(_width(layers(0).ihandle)/2)
|
||||||
|
state.offsety=(_height/2)-(_height(layers(0).ihandle)/2)
|
||||||
|
case "t"
|
||||||
|
showtoolbox=not showtoolbox
|
||||||
|
case "c"
|
||||||
|
showcolorpicker=not showcolorpicker
|
||||||
|
case "l"
|
||||||
|
showcommands=not showcommands
|
||||||
end select
|
end select
|
||||||
|
|
||||||
' 4. Draw everything using the freshly updated math
|
' 4. Draw everything using the freshly updated math
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue