mirror of
https://github.com/TimeCrafters/timecrafters_configuration_tool_desktop.git
synced 2025-12-16 05:42:35 +00:00
Stubbed preset manager state, added confirm and variable dialogs, variables can now be created, everything is now mutatable
This commit is contained in:
21
lib/dialogs/confirm_dialog.rb
Normal file
21
lib/dialogs/confirm_dialog.rb
Normal file
@@ -0,0 +1,21 @@
|
||||
module TAC
|
||||
class Dialog
|
||||
class ConfirmDialog < Dialog
|
||||
def build
|
||||
background Gosu::Color::GRAY
|
||||
label @options[:message], text_size: 18
|
||||
|
||||
flow width: 1.0 do
|
||||
button "Cancel", width: 0.475, text_size: 18 do
|
||||
close
|
||||
end
|
||||
button "Okay", width: 0.475, text_size: 18 do
|
||||
@options[:callback_method].call
|
||||
|
||||
close
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user