Allow edited action to keep its name when editing it (fixes: #1), made dialogs respond to enter and escape, Confirm dialog now shows dark red color for dangerous operations and prevents enter for accepting it

This commit is contained in:
2021-02-10 22:21:53 -06:00
parent 9999026969
commit 3cc4c204a7
12 changed files with 94 additions and 44 deletions

View File

@@ -6,7 +6,7 @@ module TAC
@message_label = label $window.backend.tacnet.full_status
button "Close", width: 1.0, margin_top: THEME_DIALOG_BUTTON_PADDING do
close
try_commit
end
@timer = CyberarmEngine::Timer.new(1000.0) do
@@ -14,6 +14,10 @@ module TAC
end
end
def try_commit
close
end
def update
super