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
|
||||
keyin=inkey$
|
||||
select case keyin
|
||||
case "+":state.brushsize=state.brushsize+1:addcommand"brushsize ("+tst(state.brushsize)+")"
|
||||
case "-":if state.brushsize>1 then state.brushsize=state.brushsize-1:addcommand"brushsize ("+tst(state.brushsize)+")"
|
||||
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
|
||||
case "+"
|
||||
state.brushsize=state.brushsize+1
|
||||
addcommand"brushsize ("+tst(state.brushsize)+")"
|
||||
case "-"
|
||||
if state.brushsize>1 then
|
||||
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
|
||||
|
||||
' 4. Draw everything using the freshly updated math
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue