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:
45
lib/states/manage_presets.rb
Normal file
45
lib/states/manage_presets.rb
Normal file
@@ -0,0 +1,45 @@
|
||||
module TAC
|
||||
class States
|
||||
class ManagePresets < CyberarmEngine::GuiState
|
||||
def setup
|
||||
theme(THEME)
|
||||
|
||||
stack width: 1.0, height: 0.1 do
|
||||
background [TAC::Palette::TIMECRAFTERS_PRIMARY, TAC::Palette::TIMECRAFTERS_SECONDARY]
|
||||
label "Manage Presets", text_size: 28
|
||||
button "Close", text_size: 18 do
|
||||
pop_state
|
||||
end
|
||||
end
|
||||
flow width: 1.0, height: 0.9 do
|
||||
stack width: 0.33, height: 1.0 do
|
||||
background TAC::Palette::GROUPS_PRIMARY
|
||||
|
||||
label "Group Presets"
|
||||
# TAC::Storage.group_presets.each do |preset|
|
||||
%w{ Hello World How Are You }.each do |preset|
|
||||
button preset, width:1.0, text_size: 18
|
||||
end
|
||||
|
||||
label "Action Presets"
|
||||
# TAC::Storage.action_presets.each do |preset|
|
||||
%w{ Hello World How Are You }.each do |preset|
|
||||
button preset, width:1.0, text_size: 18
|
||||
end
|
||||
end
|
||||
|
||||
stack width: 0.6698, height: 1.0 do
|
||||
background TAC::Palette::EDITOR_PRIMARY
|
||||
|
||||
label "Editor"
|
||||
|
||||
@editor = stack width: 1.0, height: 1.0, margin: 10 do
|
||||
background TAC::Palette::EDITOR_SECONDARY
|
||||
label "HELLO WORLD"
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user