diff --git a/Documentation.md b/Documentation.md index f16949c..fdeb1ab 100644 --- a/Documentation.md +++ b/Documentation.md @@ -1158,6 +1158,18 @@ Not available +####WGResetView +Deletes the selected view but does not erase or repaint anything. The ID is now available for use by a new view. + + + +
AssemblyApplesoft
+X:		WGResetView
+
+Not available
+
+ +

- - - diff --git a/WeeGUI.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/WeeGUI.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/WeeGUI.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/WeeGUI_MLI.s b/WeeGUI_MLI.s index 60b95e7..86ce176 100644 --- a/WeeGUI_MLI.s +++ b/WeeGUI_MLI.s @@ -73,8 +73,9 @@ WGSetContentWidth = 78 WGSetContentHeight = 80 WGStrokeRoundRect = 82 WGCreateRadio = 84 -WGReset = 86 +WGResetAll = 86 WGGetState = 88 WGPendingClick = 90 WGClearPendingClick = 92 +WGResetView = 94 diff --git a/views.s b/views.s index 6ef80a5..6dfeb5f 100644 --- a/views.s +++ b/views.s @@ -388,6 +388,18 @@ WGDeleteView_done: +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +; WGResetView +; Deletes the current view but does not erase or repaint anything +; +WGResetView: + SAVE_AX + LDX_ACTIVEVIEW + stz WG_VIEWRECORDS+2,x + + RESTORE_AX + rts + ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; WGPaintView ; Paints the current view diff --git a/weegui.dsk b/weegui.dsk index 47f4c94..f2f1516 100644 Binary files a/weegui.dsk and b/weegui.dsk differ diff --git a/weegui.s b/weegui.s index 05cffba..448de79 100644 --- a/weegui.s +++ b/weegui.s @@ -76,11 +76,11 @@ WGEntryPointTable: .addr WGSetContentHeight .addr WGStrokeRoundRect .addr WGCreateRadio -.addr WGReset +.addr WGResetAll .addr WGGetState .addr WGPendingClick .addr WGClearPendingClick - +.addr WGResetView ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; WGInit @@ -100,16 +100,16 @@ WGInit: RESTORE_AXY - jmp WGReset + jmp WGResetAll ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -; WGReset -; Reset views and strings. Called from WGInit during app startup. +; WGResetAll +; Reset all views and strings. Called from WGInit during app startup. ; Can also be called at any time to "start over" with no views. ; (Does not clear screen or repaint.) ; -WGReset: +WGResetAll: SAVE_AXY ldy #15 ; Clear our block allocators