mirror of
https://github.com/blondie7575/WeeGUI.git
synced 2025-05-01 06:37:41 +00:00
add WGGetState
This commit is contained in:
parent
cf32f7f8c3
commit
b8ca8dd6d4
@ -734,13 +734,26 @@ Sets the currently selected view's value. For progress bar views, this is the pr
|
|||||||
<table width="100%">
|
<table width="100%">
|
||||||
<tr><th>Assembly</th><th>Applesoft</th></tr><tr><td><pre>
|
<tr><th>Assembly</th><th>Applesoft</th></tr><tr><td><pre>
|
||||||
X: WGSetState
|
X: WGSetState
|
||||||
A: new value
|
PARAM0: new value
|
||||||
</td><td>
|
</td><td>
|
||||||
&SETV(value)
|
&SETV(value)
|
||||||
</td></tr>
|
</td></tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
|
||||||
|
####WGGetState
|
||||||
|
Gets the currently selected view's value. For progress bar views, this is the progress value. For checkboxes and radio buttons, 1 is checked and 0 is unchecked.
|
||||||
|
|
||||||
|
<table width="100%">
|
||||||
|
<tr><th>Assembly</th><th>Applesoft</th></tr><tr><td><pre>
|
||||||
|
X: WGGetState
|
||||||
|
On exit, the value is in PARAM0
|
||||||
|
</td><td>
|
||||||
|
Not available
|
||||||
|
</td></tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
|
||||||
####WGViewSetRawTitle
|
####WGViewSetRawTitle
|
||||||
Sets the currently selected view's title to be rendered in raw bytes (or not). This allows some advanced tricks with using Mousetext and mixed inversion in view titles.
|
Sets the currently selected view's title to be rendered in raw bytes (or not). This allows some advanced tricks with using Mousetext and mixed inversion in view titles.
|
||||||
|
|
||||||
|
@ -74,4 +74,5 @@ WGSetContentHeight = 80
|
|||||||
WGStrokeRoundRect = 82
|
WGStrokeRoundRect = 82
|
||||||
WGCreateRadio = 84
|
WGCreateRadio = 84
|
||||||
WGReset = 86
|
WGReset = 86
|
||||||
|
WGGetState = 88
|
||||||
|
|
||||||
|
21
views.s
21
views.s
@ -270,6 +270,27 @@ WGSetState_done:
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
; WGGetState
|
||||||
|
; Gets state field in view record
|
||||||
|
; on exit, PARAM0 contains the state value, stripped of the high
|
||||||
|
; bit
|
||||||
|
;
|
||||||
|
WGGetState:
|
||||||
|
SAVE_AY
|
||||||
|
|
||||||
|
LDY_ACTIVEVIEW
|
||||||
|
|
||||||
|
lda WG_VIEWRECORDS+9,y
|
||||||
|
and #%01111111
|
||||||
|
sta PARAM0
|
||||||
|
|
||||||
|
WGGetState_done:
|
||||||
|
RESTORE_AY
|
||||||
|
rts
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
; WGCreateButton
|
; WGCreateButton
|
||||||
; Creates a new button
|
; Creates a new button
|
||||||
|
BIN
weegui.dsk
BIN
weegui.dsk
Binary file not shown.
2
weegui.s
2
weegui.s
@ -77,6 +77,8 @@ WGEntryPointTable:
|
|||||||
.addr WGStrokeRoundRect
|
.addr WGStrokeRoundRect
|
||||||
.addr WGCreateRadio
|
.addr WGCreateRadio
|
||||||
.addr WGReset
|
.addr WGReset
|
||||||
|
.addr WGGetState
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user