game: wip - switch to turbo badger for ui
6
.gitmodules
vendored
@ -21,3 +21,9 @@
|
||||
[submodule "external/procsky"]
|
||||
path = external/procsky
|
||||
url = https://github.com/moneromooo/procsky
|
||||
[submodule "external/glfw3"]
|
||||
path = external/glfw3
|
||||
url = https://github.com/moneromooo/glfw3
|
||||
[submodule "external/tb"]
|
||||
path = external/tb
|
||||
url = https://github.com/tesch1/turbobadger
|
||||
|
33
GameData/TB/cc/building-settings.tb.txt
Normal file
@ -0,0 +1,33 @@
|
||||
WindowInfo
|
||||
title Building settings
|
||||
modal: 1
|
||||
|
||||
TBLayout: axis: y, distribution: "available", gravity: "all"
|
||||
|
||||
TBLayout: axis: x, distribution: "available", gravity: "all"
|
||||
|
||||
TBLayout: axis: y, id: "left_layout": gravity: "all"
|
||||
|
||||
TBTextField: text: "Settings", text-align: "center", gravity: "left right top"
|
||||
|
||||
TBSelectDropdown: id: "role", gravity: "left right"
|
||||
|
||||
TBLayout: axis: x, distribution: "available", gravity: "left"
|
||||
TBTextField: text: "Economic power:"
|
||||
TBSelectDropdown: id: "economic_power"
|
||||
|
||||
TBEditField: id: "name", gravity: "left right", placeholder: "Name"
|
||||
|
||||
TBLayout: axis: x, distribution: "available", gravity: "left"
|
||||
TBCheckBox: id: "ignore_influence", gravity: "left"
|
||||
TBTextField: text: "Ignore influence"
|
||||
|
||||
TBLayout: axis: y, id: "right_layout": gravity: "all"
|
||||
text-color: #808080
|
||||
|
||||
TBTextField: text: "Construction budget", text-align: "center", gravity: "left right"
|
||||
TBTextField: text: "Dummy", text-align: "center", gravity: "left right"
|
||||
|
||||
TBLayout: axis: x
|
||||
TBButton: text: "OK", id: "ok"
|
||||
TBButton: text: "Cancel", id: "cancel"
|
40
GameData/TB/cc/last-update-events.tb.txt
Normal file
@ -0,0 +1,40 @@
|
||||
WindowInfo
|
||||
title Last update events
|
||||
modal: 1
|
||||
|
||||
TBLayout: axis: y, distribution-position: "left top", distribution: "available"
|
||||
|
||||
TBLayout: axis x, distribution-position: "left top", distribution: "available"
|
||||
|
||||
TBButton: skin: "TBButton.flat", text: "<<", id: "prev"
|
||||
font: size: 48px
|
||||
gravity: top bottom
|
||||
TBEditField: text: "", id: "block"
|
||||
skin: 0
|
||||
multiline: 1
|
||||
readonly: 1
|
||||
state: disabled
|
||||
text-align: center
|
||||
adapt-to-content: 1
|
||||
styling: 1
|
||||
TBButton: skin: "TBButton.flat", text: ">>", id: "next"
|
||||
font: size: 48px
|
||||
gravity: top bottom
|
||||
|
||||
TBLayout: axis x, distribution-position: "left top", distribution: "available"
|
||||
|
||||
TBSelectDropdown: id: "account-selector"
|
||||
TBSelectDropdown: id: "flag-selector"
|
||||
|
||||
TBEditField: id: "filter"
|
||||
distribution-position: "left top"
|
||||
placeholder: "search"
|
||||
type: "search"
|
||||
gravity: "left right"
|
||||
children
|
||||
TBEditField.search
|
||||
|
||||
TBSelectList: id: "event-list"
|
||||
gravity: "all"
|
||||
|
||||
|
32
GameData/TB/cc/main-commands.tb.txt
Normal file
@ -0,0 +1,32 @@
|
||||
WindowInfo
|
||||
title TownForge
|
||||
|
||||
TBLayout: axis: y, distribution-position: "left top", distribution: "available"
|
||||
|
||||
TBSection: value: 1, text: "Actions"
|
||||
TBLayout: axis: y, spacing: 0, size: available
|
||||
TBButton: skin: "TBButton.column", text: "Buy land", id: "actions-buy-land"
|
||||
TBButton: skin: "TBButton.column", text: "Building settings", id: "actions-building-settings"
|
||||
TBButton: skin: "TBButton.column", text: "Rename", id: "actions-rename"
|
||||
TBButton: skin: "TBButton.column", text: "Repair", id: "actions-repair"
|
||||
TBButton: skin: "TBButton.column", text: "Add block", id: "actions-add-block"
|
||||
TBButton: skin: "TBButton.column", text: "Remove block", id: "actions-remove-block"
|
||||
TBButton: skin: "TBButton.column", text: "Approve build", id: "actions-approve-build"
|
||||
TBButton: skin: "TBButton.column", text: "Abandon build", id: "actions-abandon-build"
|
||||
TBButton: skin: "TBButton.column", text: "Trade", id: "actions-trade"
|
||||
TBButton: skin: "TBButton.column", text: "Research", id: "actions-research"
|
||||
TBButton: skin: "TBButton.column", text: "Assign items", id: "actions-assign-items"
|
||||
TBButton: skin: "TBButton.column", text: "Demolish", id: "actions-demolish"
|
||||
TBButton: skin: "TBButton.column", text: "Undo", id: "actions-undo"
|
||||
TBButton: skin: "TBButton.column", text: "Redo", id: "actions-redo"
|
||||
TBButton: skin: "TBButton.column", text: "Import model" id: "actions-import-model"
|
||||
TBButton: skin: "TBButton.column", text: "Export model" id: "actions-export-model"
|
||||
TBButton: skin: "TBButton.column", text: "Chat", id: "actions-chat"
|
||||
TBButton: skin: "TBButton.column", text: "Options", id: "actions-options"
|
||||
|
||||
TBSection: value: 0, text: "Edit mode"
|
||||
TBLayout: axis: y, spacing: 0, size: available
|
||||
TBButton: skin: "TBButton.column", text: "Rectangle" id: "edit-rectangle"
|
||||
TBButton: skin: "TBButton.column", text: "Ellipse" id: "edit-ellipse"
|
||||
TBButton: skin: "TBButton.column", text: "Grow" id: "edit-grow"
|
||||
TBButton: skin: "TBButton.column", text: "Shrink" id: "edit-shrink"
|
34
GameData/TB/cc/skin-overrides.tb.txt
Normal file
@ -0,0 +1,34 @@
|
||||
elements
|
||||
TBButton.column
|
||||
text-color #fefefe
|
||||
padding 6 8
|
||||
spacing 0 -8
|
||||
children
|
||||
element TBButton.flat.hovered
|
||||
state hovered
|
||||
element TBButton.flat.pressed
|
||||
state pressed
|
||||
|
||||
TBButton.spectator
|
||||
bitmap ../resources/default_skin/item_hover.png
|
||||
text-color #6e6efe
|
||||
cut 17
|
||||
expand 7
|
||||
children
|
||||
element TBButton.spectator.hovered
|
||||
state hovered
|
||||
element TBButton.spectator.pressed
|
||||
state pressed
|
||||
|
||||
|
||||
TBButton.spectator.hovered
|
||||
text-color #00ffff
|
||||
cut 17
|
||||
expand 8
|
||||
bitmap ../resources/default_skin/item_hover.png
|
||||
|
||||
TBButton.spectator.pressed
|
||||
text-color #00ae00
|
||||
cut 17
|
||||
expand 6
|
||||
bitmap ../resources/default_skin/item_hover.png
|
13
GameData/TB/cc/spectator-mode.tb.txt
Normal file
@ -0,0 +1,13 @@
|
||||
WindowInfo
|
||||
|
||||
TBLayout: axis: y, distribution-position: "left top", distribution: "available"
|
||||
|
||||
TBTextField: text: "Spectator mode"
|
||||
font: size: 40px
|
||||
|
||||
TBLayout: axis x, distribution-position: "left top", distribution: "available"
|
||||
|
||||
TBButton: skin: "TBButton.spectator", text: " Load a wallet " id: "spectator-load-wallet"
|
||||
font: size: 40px
|
||||
TBTextField: text: "to start playing"
|
||||
font: size: 40px
|
23
GameData/TB/cc/wallet-password.tb.txt
Normal file
@ -0,0 +1,23 @@
|
||||
WindowInfo
|
||||
title Wallet password
|
||||
modal: 1
|
||||
|
||||
TBLayout: axis: y, distribution-position: "left top", distribution: "available"
|
||||
|
||||
TBTextField: text: "Enter wallet password:"
|
||||
gravity: "all"
|
||||
text-align: "left"
|
||||
|
||||
TBEditField: id: "password"
|
||||
distribution-position: "left top"
|
||||
placeholder: "password"
|
||||
type: "password"
|
||||
gravity: "left right"
|
||||
readonly: 0
|
||||
lp: min-width: 400
|
||||
|
||||
TBLayout: axis: x
|
||||
|
||||
TBButton: text: "OK", id: "ok"
|
||||
TBButton: text: "Cancel", id: "cancel"
|
||||
|
5
GameData/TB/resources/default_font/license.txt
Normal file
@ -0,0 +1,5 @@
|
||||
This folder has some default fonts for demo purposes.
|
||||
|
||||
The license of the files in this folder is Public Domain, however
|
||||
i can't guarantee that using rasterized graphics from copyrighted
|
||||
fonts as a bitmap font is ok. Use at your own risk!
|
@ -0,0 +1,15 @@
|
||||
info
|
||||
glyph_str !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ
|
||||
name Segoe
|
||||
size 14
|
||||
bitmap segoe_white_with_shadow_14.png
|
||||
ascent 15
|
||||
descent 5
|
||||
advance_delta -3
|
||||
space_advance 5
|
||||
size 28
|
||||
bitmap segoe_white_with_shadow_28.png
|
||||
ascent 31
|
||||
descent 10
|
||||
advance_delta -7
|
||||
space_advance 10
|
After Width: | Height: | Size: 29 KiB |
After Width: | Height: | Size: 83 KiB |
BIN
GameData/TB/resources/default_skin/TBSectionContainer.png
Normal file
After Width: | Height: | Size: 332 B |
BIN
GameData/TB/resources/default_skin/arrow_down.png
Normal file
After Width: | Height: | Size: 177 B |
BIN
GameData/TB/resources/default_skin/arrow_down@192.png
Normal file
After Width: | Height: | Size: 435 B |
BIN
GameData/TB/resources/default_skin/arrow_down@288.png
Normal file
After Width: | Height: | Size: 766 B |
BIN
GameData/TB/resources/default_skin/arrow_down@384.png
Normal file
After Width: | Height: | Size: 1006 B |
BIN
GameData/TB/resources/default_skin/arrow_left.png
Normal file
After Width: | Height: | Size: 169 B |
BIN
GameData/TB/resources/default_skin/arrow_left@192.png
Normal file
After Width: | Height: | Size: 360 B |
BIN
GameData/TB/resources/default_skin/arrow_left@288.png
Normal file
After Width: | Height: | Size: 771 B |
BIN
GameData/TB/resources/default_skin/arrow_left@384.png
Normal file
After Width: | Height: | Size: 964 B |
BIN
GameData/TB/resources/default_skin/arrow_right.png
Normal file
After Width: | Height: | Size: 169 B |
BIN
GameData/TB/resources/default_skin/arrow_right@192.png
Normal file
After Width: | Height: | Size: 381 B |
BIN
GameData/TB/resources/default_skin/arrow_right@288.png
Normal file
After Width: | Height: | Size: 737 B |
BIN
GameData/TB/resources/default_skin/arrow_right@384.png
Normal file
After Width: | Height: | Size: 993 B |
BIN
GameData/TB/resources/default_skin/arrow_up.png
Normal file
After Width: | Height: | Size: 175 B |
BIN
GameData/TB/resources/default_skin/arrow_up@192.png
Normal file
After Width: | Height: | Size: 392 B |
BIN
GameData/TB/resources/default_skin/arrow_up@288.png
Normal file
After Width: | Height: | Size: 722 B |
BIN
GameData/TB/resources/default_skin/arrow_up@384.png
Normal file
After Width: | Height: | Size: 972 B |
BIN
GameData/TB/resources/default_skin/button.png
Normal file
After Width: | Height: | Size: 585 B |
BIN
GameData/TB/resources/default_skin/button_flat_outline.png
Normal file
After Width: | Height: | Size: 371 B |
BIN
GameData/TB/resources/default_skin/button_flat_pressed.png
Normal file
After Width: | Height: | Size: 292 B |
After Width: | Height: | Size: 590 B |
BIN
GameData/TB/resources/default_skin/button_grouped_x_first_up.png
Normal file
After Width: | Height: | Size: 586 B |
After Width: | Height: | Size: 567 B |
BIN
GameData/TB/resources/default_skin/button_grouped_x_last_up.png
Normal file
After Width: | Height: | Size: 605 B |
After Width: | Height: | Size: 422 B |
After Width: | Height: | Size: 436 B |
BIN
GameData/TB/resources/default_skin/button_pressed.png
Normal file
After Width: | Height: | Size: 540 B |
BIN
GameData/TB/resources/default_skin/checkbox.png
Normal file
After Width: | Height: | Size: 428 B |
BIN
GameData/TB/resources/default_skin/checkbox@192.png
Normal file
After Width: | Height: | Size: 917 B |
BIN
GameData/TB/resources/default_skin/checkbox@288.png
Normal file
After Width: | Height: | Size: 1.5 KiB |
BIN
GameData/TB/resources/default_skin/checkbox@384.png
Normal file
After Width: | Height: | Size: 2.1 KiB |
BIN
GameData/TB/resources/default_skin/checkbox_mark.png
Normal file
After Width: | Height: | Size: 1.4 KiB |
BIN
GameData/TB/resources/default_skin/checkbox_mark@192.png
Normal file
After Width: | Height: | Size: 3.5 KiB |
BIN
GameData/TB/resources/default_skin/checkbox_mark@288.png
Normal file
After Width: | Height: | Size: 5.6 KiB |
BIN
GameData/TB/resources/default_skin/checkbox_mark@384.png
Normal file
After Width: | Height: | Size: 7.7 KiB |
BIN
GameData/TB/resources/default_skin/checkbox_pressed.png
Normal file
After Width: | Height: | Size: 302 B |
BIN
GameData/TB/resources/default_skin/checkbox_pressed@192.png
Normal file
After Width: | Height: | Size: 781 B |
BIN
GameData/TB/resources/default_skin/checkbox_pressed@288.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
GameData/TB/resources/default_skin/checkbox_pressed@384.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
GameData/TB/resources/default_skin/container.png
Normal file
After Width: | Height: | Size: 417 B |
BIN
GameData/TB/resources/default_skin/editfield.png
Normal file
After Width: | Height: | Size: 559 B |
BIN
GameData/TB/resources/default_skin/fadeout_x.png
Normal file
After Width: | Height: | Size: 95 B |
BIN
GameData/TB/resources/default_skin/fadeout_y.png
Normal file
After Width: | Height: | Size: 101 B |
BIN
GameData/TB/resources/default_skin/focus_r4.png
Normal file
After Width: | Height: | Size: 320 B |
BIN
GameData/TB/resources/default_skin/focus_tabbutton_left.png
Normal file
After Width: | Height: | Size: 138 B |
BIN
GameData/TB/resources/default_skin/focus_tabbutton_top.png
Normal file
After Width: | Height: | Size: 124 B |
BIN
GameData/TB/resources/default_skin/item_hover.png
Normal file
After Width: | Height: | Size: 328 B |
BIN
GameData/TB/resources/default_skin/item_selected.png
Normal file
After Width: | Height: | Size: 354 B |
BIN
GameData/TB/resources/default_skin/item_separator_x.png
Normal file
After Width: | Height: | Size: 71 B |
BIN
GameData/TB/resources/default_skin/item_separator_y.png
Normal file
After Width: | Height: | Size: 69 B |
BIN
GameData/TB/resources/default_skin/progress_spinner_strip.png
Normal file
After Width: | Height: | Size: 3.8 KiB |
After Width: | Height: | Size: 8.6 KiB |
BIN
GameData/TB/resources/default_skin/radio.png
Normal file
After Width: | Height: | Size: 695 B |
BIN
GameData/TB/resources/default_skin/radio@192.png
Normal file
After Width: | Height: | Size: 1.7 KiB |
BIN
GameData/TB/resources/default_skin/radio@288.png
Normal file
After Width: | Height: | Size: 2.7 KiB |
BIN
GameData/TB/resources/default_skin/radio@384.png
Normal file
After Width: | Height: | Size: 3.8 KiB |
BIN
GameData/TB/resources/default_skin/radio_mark.png
Normal file
After Width: | Height: | Size: 760 B |
BIN
GameData/TB/resources/default_skin/radio_mark@192.png
Normal file
After Width: | Height: | Size: 1.8 KiB |
BIN
GameData/TB/resources/default_skin/radio_mark@288.png
Normal file
After Width: | Height: | Size: 2.8 KiB |
BIN
GameData/TB/resources/default_skin/radio_mark@384.png
Normal file
After Width: | Height: | Size: 3.8 KiB |
BIN
GameData/TB/resources/default_skin/radio_pressed.png
Normal file
After Width: | Height: | Size: 491 B |
BIN
GameData/TB/resources/default_skin/radio_pressed@192.png
Normal file
After Width: | Height: | Size: 1.0 KiB |
BIN
GameData/TB/resources/default_skin/radio_pressed@288.png
Normal file
After Width: | Height: | Size: 1.7 KiB |
BIN
GameData/TB/resources/default_skin/radio_pressed@384.png
Normal file
After Width: | Height: | Size: 2.3 KiB |
BIN
GameData/TB/resources/default_skin/resizer.png
Normal file
After Width: | Height: | Size: 106 B |
BIN
GameData/TB/resources/default_skin/resizer@192.png
Normal file
After Width: | Height: | Size: 136 B |
BIN
GameData/TB/resources/default_skin/resizer@288.png
Normal file
After Width: | Height: | Size: 153 B |
BIN
GameData/TB/resources/default_skin/resizer@384.png
Normal file
After Width: | Height: | Size: 159 B |
BIN
GameData/TB/resources/default_skin/scroll_bg_x.png
Normal file
After Width: | Height: | Size: 261 B |
BIN
GameData/TB/resources/default_skin/scroll_bg_y.png
Normal file
After Width: | Height: | Size: 291 B |
BIN
GameData/TB/resources/default_skin/scroll_fg_x.png
Normal file
After Width: | Height: | Size: 820 B |
BIN
GameData/TB/resources/default_skin/scroll_fg_y.png
Normal file
After Width: | Height: | Size: 926 B |
BIN
GameData/TB/resources/default_skin/search.png
Normal file
After Width: | Height: | Size: 198 B |
BIN
GameData/TB/resources/default_skin/search@192.png
Normal file
After Width: | Height: | Size: 299 B |
BIN
GameData/TB/resources/default_skin/search@288.png
Normal file
After Width: | Height: | Size: 416 B |
BIN
GameData/TB/resources/default_skin/search@384.png
Normal file
After Width: | Height: | Size: 556 B |
BIN
GameData/TB/resources/default_skin/selection.png
Normal file
After Width: | Height: | Size: 101 B |
BIN
GameData/TB/resources/default_skin/slider_bg_x.png
Normal file
After Width: | Height: | Size: 155 B |
BIN
GameData/TB/resources/default_skin/slider_bg_x@192.png
Normal file
After Width: | Height: | Size: 250 B |
BIN
GameData/TB/resources/default_skin/slider_bg_x@288.png
Normal file
After Width: | Height: | Size: 378 B |
BIN
GameData/TB/resources/default_skin/slider_bg_x@384.png
Normal file
After Width: | Height: | Size: 454 B |
BIN
GameData/TB/resources/default_skin/slider_bg_y.png
Normal file
After Width: | Height: | Size: 153 B |
BIN
GameData/TB/resources/default_skin/slider_bg_y@192.png
Normal file
After Width: | Height: | Size: 264 B |
BIN
GameData/TB/resources/default_skin/slider_bg_y@288.png
Normal file
After Width: | Height: | Size: 394 B |
BIN
GameData/TB/resources/default_skin/slider_bg_y@384.png
Normal file
After Width: | Height: | Size: 521 B |
BIN
GameData/TB/resources/default_skin/slider_handle.png
Normal file
After Width: | Height: | Size: 1.0 KiB |
BIN
GameData/TB/resources/default_skin/slider_handle@192.png
Normal file
After Width: | Height: | Size: 2.4 KiB |
BIN
GameData/TB/resources/default_skin/slider_handle@288.png
Normal file
After Width: | Height: | Size: 3.8 KiB |