new accessors
parent
60a3cf862b
commit
e193548489
|
@ -13,12 +13,10 @@ title status
|
||||||
fonts handle
|
fonts handle
|
||||||
window-loc ;
|
window-loc ;
|
||||||
|
|
||||||
: find-world ( gadget -- world ) [ world? ] find-parent ;
|
: find-world ( gadget -- world/f ) [ world? ] find-parent ;
|
||||||
|
|
||||||
M: f world-status ;
|
|
||||||
|
|
||||||
: show-status ( string/f gadget -- )
|
: show-status ( string/f gadget -- )
|
||||||
find-world world-status [ set-model ] [ drop ] if* ;
|
find-world dup [ status>> set-model ] [ 2drop ] if ;
|
||||||
|
|
||||||
: hide-status ( gadget -- ) f swap show-status ;
|
: hide-status ( gadget -- ) f swap show-status ;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue