Galactica/content/ui.toml

81 lines
2.2 KiB
TOML

[ui.status]
# TODO: unified color value
# TODO: bar type: linear/radial
# TODO: bar as ui util struct
# TODO: mouse collider
# TODO: modular UI (how?)
# shield_bar.pos = [-19, -19]
# shield_bar.diameter = 182
# shield_bar.stroke = 5
# shield_bar.color = [0.3, 0.6, 0.8, 1.0]
#
# hull_bar.pos = [-27.0, -27.0]
# hull_bar.diameter = 166.0
# hull_bar.stroke = 5
# hull_bar.color = [0.8, 0.7, 0.5, 1.0]
# frame.sprite = "ui::status"
# frame.pos = [-10.0, -10.0]
# frame.dim = [200.0, 200.0]
[ui.landed]
frame.sprite = "ui::planet"
frame.rect.pos = [0.0, 0.0]
frame.rect.dim = [800.0, 800.0]
frame.rect.anchor_self = "center"
frame.rect.anchor_parent = "center"
landscape.mask = "ui::landscapemask"
landscape.rect.pos = [-350.0, 282.8]
landscape.rect.dim = [537.5, 270.31]
landscape.rect.anchor_self = "northwest"
landscape.rect.anchor_parent = "center"
button.sprite = "ui::planet::button"
button.rect.pos = [178.12, 254.6]
button.rect.dim = [175.16, 38.437]
button.rect.anchor_self = "northwest"
button.rect.anchor_parent = "center"
button.on_mouse_enter.edge = "on:top"
button.on_mouse_enter.duration = 0.1
button.on_mouse_leave.edge = "off:top"
button.on_mouse_leave.duration = 0.1
planet_name.rect.pos = [-143.89, 273]
planet_name.rect.dim = [121.98, 18.094]
planet_name.rect.anchor_self = "northwest"
planet_name.rect.anchor_parent = "center"
planet_name.font_size = 19
planet_name.line_height = 19
planet_name.align = "center"
planet_desc.rect.pos = [-358.43, -32]
planet_desc.rect.dim = [673.91, 153.75]
planet_desc.rect.anchor_self = "northwest"
planet_desc.rect.anchor_parent = "center"
planet_desc.font_size = 16
planet_desc.line_height = 18
planet_desc.align = "left"
[ui.outfitter]
se_box.sprite = "ui::outfitterbox"
se_box.rect.pos = [-10.0, -10.0]
se_box.rect.dim = [512.0, 337.0] # todo: auto aspect
se_box.rect.anchor_self = "southwest"
se_box.rect.anchor_parent = "southwest"
exit_button.sprite = "ui::button"
exit_button.rect.pos = [279.07, 135.38]
exit_button.rect.dim = [173.44, 45.01]
exit_button.rect.anchor_self = "northwest"
exit_button.rect.anchor_parent = "southwest"
exit_button.on_mouse_enter.edge = "on:top"
exit_button.on_mouse_enter.duration = 0.1
exit_button.on_mouse_leave.edge = "off:top"
exit_button.on_mouse_leave.duration = 0.1