Skip to content

Commit

Permalink
disasm: File dialog focus flag
Browse files Browse the repository at this point in the history
  • Loading branch information
inexorabletash committed Apr 3, 2021
1 parent b703cdb commit 09d6a16
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
6 changes: 3 additions & 3 deletions desktop/ovl_file_copy.s
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

lda #0
sta path_buf0
sta file_dialog::L51AE
sta file_dialog::focus_in_input2_flag
copy #1, path_buf2
copy #kGlyphInsertionPoint, path_buf2+1
rts
Expand Down Expand Up @@ -117,7 +117,7 @@ jt_destination_filename:
;; set up flags for destination
lda #$80
sta file_dialog::L50A8
sta file_dialog::L51AE
sta file_dialog::focus_in_input2_flag
lda selected_index
sta LD921
lda #$FF
Expand Down Expand Up @@ -236,7 +236,7 @@ err: lda #ERR_INVALID_PATHNAME
copy #kGlyphInsertionPoint, path_buf2+1
copy #0, file_dialog::L50A8
copy #$FF, selected_index
copy #0, file_dialog::L51AE
copy #0, file_dialog::focus_in_input2_flag

lda LD8F0
sta LD8F2
Expand Down
2 changes: 1 addition & 1 deletion desktop/ovl_file_delete.s
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

lda #0
sta path_buf0
sta file_dialog::L51AE
sta file_dialog::focus_in_input2_flag

copy #1, path_buf2
copy #kGlyphInsertionPoint, path_buf2+1
Expand Down
5 changes: 3 additions & 2 deletions desktop/ovl_file_dialog.s
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ l1: lda winfo_file_dialog
sta screentowindow_window_id
MGTK_RELAY_CALL MGTK::ScreenToWindow, screentowindow_params
MGTK_RELAY_CALL MGTK::MoveTo, screentowindow_windowx
bit L51AE
bit focus_in_input2_flag
bmi l2
MGTK_RELAY_CALL MGTK::InRect, file_dialog_res::input1_rect
cmp #MGTK::inrect_inside
Expand All @@ -154,7 +154,8 @@ l5: MGTK_RELAY_CALL MGTK::InitPort, main_grafport
jmp event_loop
.endproc

L51AE: .byte 0
focus_in_input2_flag:
.byte 0

;;; ============================================================

Expand Down
6 changes: 3 additions & 3 deletions desktop/ovl_selector_edit.s
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ buffer: .res 16, 0
dex
bpl :-

copy #0, file_dialog::L51AE
copy #0, file_dialog::focus_in_input2_flag
copy #$80, file_dialog::dual_inputs_flag
copy #1, path_buf2
copy #kGlyphInsertionPoint, path_buf2+1
Expand Down Expand Up @@ -205,7 +205,7 @@ jt_entry_name:
bpl :-

lda #$80
sta file_dialog::L51AE
sta file_dialog::focus_in_input2_flag
sta file_dialog::L5105
lda LD8F0
sta LD8F1
Expand Down Expand Up @@ -320,7 +320,7 @@ ok: MGTK_RELAY_CALL MGTK::InitPort, main_grafport
jsr file_dialog::jt_redraw_input
lda #$00
sta file_dialog::L5105
sta file_dialog::L51AE
sta file_dialog::focus_in_input2_flag
lda LD8F1
sta LD8F0
rts
Expand Down

0 comments on commit 09d6a16

Please sign in to comment.