game: wip - switch to turbo badger for ui

This commit is contained in:
Crypto City 2020-01-13 03:22:55 +00:00
parent 88ea3cf8c6
commit 06c92d3cec
144 changed files with 1828 additions and 809 deletions

6
.gitmodules vendored
View File

@ -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

View 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"

View 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"

View 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"

View 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

View 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

View 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"

View 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!

View File

@ -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

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 83 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 332 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 177 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 435 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 766 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1006 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 169 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 360 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 771 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 964 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 169 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 381 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 737 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 993 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 175 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 392 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 722 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 972 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 585 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 371 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 292 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 590 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 586 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 567 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 605 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 422 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 436 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 540 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 428 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 917 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 302 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 781 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 417 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 559 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 95 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 101 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 320 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 138 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 124 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 328 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 354 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 71 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 69 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 695 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 760 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 491 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 106 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 136 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 153 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 159 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 261 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 291 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 820 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 926 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 198 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 299 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 416 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 556 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 101 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 155 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 250 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 378 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 454 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 153 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 264 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 394 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 521 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

Some files were not shown because too many files have changed in this diff Show More