mirror of
https://github.com/TimeCrafters/timecrafters_configuration_tool_desktop.git
synced 2025-12-16 13:52:34 +00:00
Replace usages of label with para, WIP new Editor (v3)
This commit is contained in:
@@ -6,33 +6,33 @@ module TAC
|
||||
|
||||
body.clear do
|
||||
stack(width: 1.0, height: 1.0) do
|
||||
label TAC::NAME, width: 1.0, text_size: 48, text_align: :center
|
||||
para TAC::NAME, width: 1.0, text_size: 48, text_align: :center
|
||||
|
||||
stack(width: 1.0, height: 8) do
|
||||
background 0xff_006000
|
||||
end
|
||||
|
||||
if window.backend.settings.config.empty?
|
||||
label "TODO: Introduction"
|
||||
label "Get Started", text_size: 28
|
||||
para "TODO: Introduction"
|
||||
para "Get Started", text_size: 28
|
||||
button "1. Create a configuration" do
|
||||
page(TAC::Pages::Configurations)
|
||||
end
|
||||
label "2. Add a group"
|
||||
label "3. Add an action"
|
||||
label "4. Add a variable"
|
||||
label "5. Profit?"
|
||||
para "2. Add a group"
|
||||
para "3. Add an action"
|
||||
para "4. Add a variable"
|
||||
para "5. Profit?"
|
||||
else
|
||||
label "Display config stats or something?"
|
||||
para "Display config stats or something?"
|
||||
|
||||
config = window.backend.config
|
||||
groups = config.groups
|
||||
actions = config.groups.map { |g| g.actions }.flatten
|
||||
variables = actions.map { |a| a.variables }.flatten
|
||||
|
||||
label "Total groups: #{groups.size}"
|
||||
label "Total actions: #{actions.size}"
|
||||
label "Total variables: #{variables.size}"
|
||||
para "Total groups: #{groups.size}"
|
||||
para "Total actions: #{actions.size}"
|
||||
para "Total variables: #{variables.size}"
|
||||
end
|
||||
|
||||
stack(width: 1.0, fill: true, scroll: true, margin_top: 32) do
|
||||
|
||||
Reference in New Issue
Block a user