UI tweaks
parent
cfdefab518
commit
717cba001c
|
@ -27,7 +27,6 @@ M: label pref-dim* ( label -- dim ) label-size ;
|
|||
|
||||
: draw-label ( label -- )
|
||||
dup label-color gl-color
|
||||
dup label-font* dup world get font-sprites rot
|
||||
label-text draw-string ;
|
||||
dup label-font* swap label-text draw-string ;
|
||||
|
||||
M: label draw-gadget* ( label -- ) draw-label ;
|
||||
|
|
|
@ -45,3 +45,6 @@ M: world pref-dim* ( world -- dim )
|
|||
|
||||
: focused-ancestors ( world -- seq )
|
||||
world-focus parents reverse-slice ;
|
||||
|
||||
: draw-string ( open-fonts string -- )
|
||||
>r dup world get font-sprites r> (draw-string) ;
|
||||
|
|
Loading…
Reference in New Issue