Stubbed preset manager state, added confirm and variable dialogs, variables can now be created, everything is now mutatable

This commit is contained in:
2020-06-08 08:58:47 -05:00
parent 151df4ca57
commit f7a3e282f1
9 changed files with 393 additions and 58 deletions

View 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