forked from townforge/townforge
245 lines
14 KiB
Plaintext
245 lines
14 KiB
Plaintext
WindowInfo
|
|
title Coru
|
|
centered-relative-size: 0.9 0.9
|
|
modal: 1
|
|
|
|
TBTabContainer
|
|
gravity: "all"
|
|
id: "tab-container"
|
|
tabs
|
|
TBButton: text: "Games"
|
|
TBButton: text: "Requests"
|
|
TBButton: text: "Decks"
|
|
TBButton: text: "Tournaments"
|
|
|
|
TBLayout: axis: x, distribution: "gravity", size: "available"
|
|
TBLayout: axis: y, distribution: "gravity"
|
|
TBToggleContainer: id: "coru-games-empty", toggle: "expanded", connection: "coru-games-empty", gravity: "all"
|
|
TBLayout: axis: y, distribution: "gravity", gravity: "all"
|
|
TBTextField: text: "There are no games at this time", gravity: "all"
|
|
TBToggleContainer: connection: "coru-games-empty", toggle: "expanded", invert: 1, gravity: "all"
|
|
TBLayout: axis: y, distribution: "gravity"
|
|
TBTextField: text: "Coru games"
|
|
TBSelectList: id: "coru-games", gravity: "all"
|
|
TBEditField: id: "coru-games-search", gravity: "left right":, placeholder: "Search"
|
|
TBLayout: axis: x
|
|
TBClickLabel: text: "Include old games"
|
|
TBCheckBox: id: "coru-games-include-old-games"
|
|
TBClickLabel: text: "My games only"
|
|
TBCheckBox: id: "coru-games-my-games-only"
|
|
TBLayout: axis: y, distribution: "gravity", id: "games-main"
|
|
TBToggleContainer: id: "coru-game-board-container", toggle: "opacity", gravity: "all"
|
|
TBLayout: axis: y, distribution: "gravity"
|
|
TBLayout: axis: x, distribution: "gravity"
|
|
TBLayout: axis: y, position: "left"
|
|
TBTextField: id: "coru-game-player0-name", gravity: "left", text-align: "left"
|
|
TBTextField: id: "coru-game-player0-title", gravity: "left", text-align: "left"
|
|
TBLayout: axis: x, gravity: "left", distribution: "gravity"
|
|
TBLayout: axis: x, id: "coru-game-player0-rounds-won", distribution: "gravity", gravity: "left"
|
|
TBTextField: id: "coru-game-player0-points", gravity: "left"
|
|
TBTextField: gravity: "left right"
|
|
TBLayout: axis: y, position: "right"
|
|
TBTextField: id: "coru-game-player1-name", gravity: "right", text-align: "right"
|
|
TBTextField: id: "coru-game-player1-title", gravity: "right", text-align: "right"
|
|
TBLayout: axis: x, gravity: "right", distribution: "gravity"
|
|
TBTextField: id: "coru-game-player1-points", gravity: "right"
|
|
TBLayout: axis: x, id: "coru-game-player1-rounds-won", distribution: "gravity", gravity: "right"
|
|
TBWidget: id: "coru-game-board-and-decks", gravity: "all"
|
|
UITBClipper: id: "coru-game-board-clipper"
|
|
UITBCoruGameBoard: id: "coru-game-board", size: 5, hex: 0, infinite: 1, min-size: 5
|
|
UITBCoruGameDeck: id: "coru-game-player0-deck", axis: y, distribution-position: "top", overview: 0, side: 0
|
|
UITBCoruGameDeck: id: "coru-game-player1-deck", axis: y, distribution-position: "top", overview: 0, side: 1
|
|
UITBHTMLView: id: "coru-game-overlay-widget", ignore-input: 1, focusable: 0, adapt-to-content: 1
|
|
TBButton: id: "coru-game-jeopardy-pick", text: "Pick a coin or rune from your opponent's deck"
|
|
TBToggleContainer: id: "coru-game-turn-container", toggle: "opacity"
|
|
TBLayout: axis: y
|
|
TBLayout: axis: x
|
|
TBTextField: id: "coru-game-turn"
|
|
TBToggleContainer: id: "coru-game-cancel-command-container", toggle: "expanded"
|
|
TBButton: id: "coru-game-cancel-command", text: "Cancel"
|
|
TBLayout: axis: x
|
|
TBTextField: text: "Approximately"
|
|
TBTextField: id: "coru-game-time-left"
|
|
TBTextField: text: "left"
|
|
TBToggleContainer: id: "coru-game-actions-container", toggle: "opacity"
|
|
TBLayout: axis: y
|
|
TBLayout: axis: x
|
|
TBToggleContainer: id: "coru-game-select-deck-container", toggle: "expanded"
|
|
TBButton: id: "coru-game-select-deck", text: "Select deck"
|
|
TBToggleContainer: id: "coru-game-unveil-deck-container", toggle: "expanded"
|
|
TBButton: id: "coru-game-unveil-deck", text: "Unveil deck"
|
|
TBToggleContainer: id: "coru-game-pass-container", toggle: "expanded"
|
|
TBButton: id: "coru-game-pass", text: "Pass"
|
|
TBToggleContainer: id: "coru-game-place-pieces-container", toggle: "expanded"
|
|
TBButton: id: "coru-game-place-pieces", text: "Place"
|
|
TBLayout: axis: x
|
|
TBTextField: text: "Current move:"
|
|
TBTextField: id: "coru-game-current-move-error"
|
|
|
|
TBLayout: axis: y, distribution: "gravity"
|
|
TBLayout: axis: y, distribution: "gravity"
|
|
TBToggleContainer: id: "coru-requests-empty", toggle: "expanded", connection: "coru-requests-empty", gravity: "all"
|
|
TBLayout: axis: y
|
|
TBTextField: text: "There are no requests at this time"
|
|
TBToggleContainer: connection: "coru-requests-empty", toggle: "expanded", invert: 1, gravity: "all"
|
|
TBSelectList: id: "coru-requests", gravity: "all"
|
|
TBLayout: axis: y, distribution: "gravity"
|
|
TBToggleContainer: connection: "coru-request-active", toggle: "expanded", invert: 1
|
|
TBLayout: axis: y, distribution: "available"
|
|
TBTextField: text: "You can play a Coru game against another player"
|
|
TBTextField: text: "If two players make compatible requests, a game will start"
|
|
TBContainer:
|
|
TBLayout: axis: y
|
|
TBLayout: axis: x
|
|
TBClickLabel: text: "Any player"
|
|
TBCheckBox: id: "coru-request-any-player", connection: "coru-request-any-player", value: 1
|
|
TBTextField: text: " "
|
|
TBToggleContainer: connection: "coru-request-any-player", toggle: "enabled", invert: 1
|
|
TBLayout: axis: x
|
|
TBTextField: id: "coru-request-player-name"
|
|
TBButton: id: "coru-request-player", text: "Select player"
|
|
TBLayout: axis: x, position: "top"
|
|
TBClickLabel: text: "Wager gold"
|
|
TBCheckBox: id: "coru-request-wager-gold", connection: "coru-request-wager-gold"
|
|
TBTextField: text: " "
|
|
TBToggleContainer: connection: "coru-request-wager-gold", toggle: "enabled"
|
|
TBLayout: axis: y
|
|
TBLayout: axis: x
|
|
TBTextField: text: "min:"
|
|
TBEditField: id: "coru-request-min-wager", text: "0"
|
|
TBTextField: text: "max:"
|
|
TBEditField: id: "coru-request-max-wager", text: "5"
|
|
TBToggleContainer: id: "coru-request-wager-error-container", toggle: "expanded", gravity: "left right"
|
|
TBLayout: axis: x, distribution: "gravity", distribution-position: "left"
|
|
TBImageWidget: filename: "images/warning.png"
|
|
lp:
|
|
width: 24
|
|
height: 24
|
|
TBTextField: id: "coru-request-wager-error", gravity: "left right", text-align: "left", skin: "text-error"
|
|
TBLayout: axis: x
|
|
TBTextField: text: "Current balance:"
|
|
TBTextField: id: "coru-request-balance"
|
|
|
|
TBLayout: axis: x, position: "top"
|
|
TBClickLabel: text: "Rating range"
|
|
TBCheckBox: id: "coru-request-rating-range", connection: "coru-request-rating-range"
|
|
TBTextField: text: " "
|
|
TBToggleContainer: connection: "coru-request-rating-range", toggle: "enabled"
|
|
TBLayout: axis: y
|
|
TBLayout: axis: x
|
|
TBTextField: text: "min:"
|
|
TBInlineSelect: id: "coru-request-min-rating", min: 0, max: 9999
|
|
TBTextField: text: "max:"
|
|
TBInlineSelect: id: "coru-request-max-rating", min: 0, max: 9999
|
|
TBToggleContainer: id: "coru-request-rating-error-container", toggle: "expanded", gravity: "left right"
|
|
TBLayout: axis: x, distribution: "gravity", distribution-position: "left"
|
|
TBImageWidget: filename: "images/warning.png"
|
|
lp:
|
|
width: 24
|
|
height: 24
|
|
TBTextField: id: "coru-request-rating-error", gravity: "left right", text-align: "left", skin: "text-error"
|
|
|
|
TBLayout: axis: x
|
|
TBClickLabel: text: "Allow jeopardy"
|
|
TBCheckBox: id: "coru-request-jeopardy"
|
|
TBEditField: readonly: 1, adapt-to-content: 1, skin: 0, is-focusable: 0, multiline: 1, wrap: 1, gravity: "all"
|
|
text: "Note: If <b>both</b> players have agreed to jeopardy for a game, the winner will be able to win one coin or rune of thier choice in the loser's deck upon winning that game."
|
|
TBLayout: axis: x
|
|
TBTextField: text: "Deck:"
|
|
TBSelectDropdown: id: "coru-request-deck", data: 0
|
|
TBEditField: readonly: 1, adapt-to-content: 1, skin: 0, is-focusable: 0, multiline: 1, wrap: 1, gravity: "all"
|
|
text: "Note: if you select one, your deck will be hidden from your opponent until the game starts."
|
|
TBEditField: readonly: 1, adapt-to-content: 1, skin: 0, is-focusable: 0, multiline: 1, wrap: 1, gravity: "all"
|
|
text: "If you do not select one now, you will have to do so as your first move once the game starts"
|
|
TBEditField: readonly: 1, adapt-to-content: 1, skin: 0, is-focusable: 0, multiline: 1, wrap: 1, gravity: "all"
|
|
text: "Selecting one now will make the game start faster, at the cost of not allowing you a last minute change of mind."
|
|
TBEditField: readonly: 1, adapt-to-content: 1, skin: 0, is-focusable: 0, multiline: 1, wrap: 1, gravity: "all"
|
|
text: "Note: you must still have all the coins in your deck when the game starts, or you will lose the game outright."
|
|
TBLayout: axis: x
|
|
TBTextField: text: "Valid for:"
|
|
TBInlineSelect: id: "coru-request-lifetime", min: 10, max: 9999, step: 1, value: 30
|
|
TBTextField: text: "minutes"
|
|
TBToggleContainer: id: "coru-request-lifetime-error-container", toggle: "expanded", gravity: "left right"
|
|
TBLayout: axis: x, distribution: "gravity", distribution-position: "left"
|
|
TBImageWidget: filename: "images/warning.png"
|
|
lp:
|
|
width: 24
|
|
height: 24
|
|
TBTextField: id: "coru-request-lifetime-error", gravity: "left right", text-align: "left", skin: "text-error"
|
|
TBEditField: readonly: 1, adapt-to-content: 1, skin: 0, is-focusable: 0, multiline: 1, wrap: 1, gravity: "all"
|
|
text: "Validity time is only approximative, and depends on the speed at which blocks are found.\nCoru games are timed, and if you do not make a move in time when it is your turn, you will automatically pass.\nWarning: if you delete your wallet cache, your secret request data will be lost and you will lose the game if someone accepts your request before it times out is is cancelled"
|
|
TBButton: id: "coru-request-request", text: "Request a game"
|
|
|
|
TBToggleContainer: id: "coru-request-active", toggle: "expanded", value: 0, connection: "coru-request-active"
|
|
TBLayout: axis: y
|
|
TBTextField: text: "You are currently requesting a game"
|
|
TBButton: id: "coru-request-cancel", text: "Cancel request"
|
|
|
|
TBLayout: axis: y, distribution: "gravity"
|
|
TBToggleContainer: connection: "coru-decks-edit-container", invert: 1, toggle: "expanded", gravity: "all"
|
|
TBSelectList: id: "coru-decks-saved-decks", data: 1, gravity: "all"
|
|
TBToggleContainer: id: "coru-decks-edit-container", toggle: "expanded", connection: "coru-decks-edit-container", gravity: "all"
|
|
TBLayout: axis: y, gravity: "all", distribution: "gravity"
|
|
TBLayout: axis: x, distribution: "gravity", gravity: "all"
|
|
UITBCoruPieceSet: id: "coru-decks-edit-coins-set", header-text: "Coins", gravity: "all"
|
|
UITBCoruPieceSet: id: "coru-decks-edit-runes-set", header-text: "Runes", gravity: "all"
|
|
TBLayout: axis: x, distribution: "gravity", gravity: "left right"
|
|
TBLayout: axis: y, gravity: "left right"
|
|
TBLayout: axis: x, gravity: "left right", distribution: "gravity"
|
|
TBTextField: "Name:"
|
|
TBEditField: id: "coru-decks-name", gravity: "left right"
|
|
UITBCoruGameDeck: id: "coru-decks-deck", axis: x, distribution-position: "left", overview: 1
|
|
TBLayout: axis: y
|
|
TBButton: id: "coru-decks-save", text: "Save"
|
|
TBButton: id: "coru-decks-cancel", text: "Cancel"
|
|
TBToggleContainer: toggle: "expanded", connection: "coru-decks-edit-container", invert: 1
|
|
TBLayout: axis: x
|
|
TBButton: id: "coru-decks-new", text: "Create new deck"
|
|
|
|
TBLayout: axis: y, distribution: "gravity"
|
|
TBLayout: axis: y, distribution: "gravity"
|
|
TBToggleContainer: id: "coru-tournaments-empty", toggle: "expanded", connection: "coru-tournaments-empty", gravity: "all"
|
|
TBLayout: axis: y
|
|
TBTextField: text: "There are no tournaments at this time"
|
|
TBToggleContainer: connection: "coru-tournaments-empty", toggle: "expanded", invert: 1, gravity: "all"
|
|
TBSelectList: id: "coru-tournaments", gravity: "all"
|
|
TBContainer:
|
|
TBLayout: axis: y, distribution: "gravity"
|
|
TBLayout: axis: x
|
|
TBTextField: text: "Create a Coru tournament:"
|
|
TBButton: id: "coru-tournament-help", text: "?"
|
|
TBLayout: axis: x, distribution: "gravity"
|
|
TBTextField: text: "Name:"
|
|
TBEditField: id: "coru-tournament-name", gravity: "left right"
|
|
TBToggleContainer: id: "coru-tournament-name-error-container", toggle: "expanded", gravity: "left right"
|
|
TBLayout: axis: x, distribution: "gravity", distribution-position: "left"
|
|
TBImageWidget: filename: "images/warning.png"
|
|
lp:
|
|
width: 24
|
|
height: 24
|
|
TBTextField: id: "coru-tournament-name-error", gravity: "left right", text-align: "left", skin: "text-error"
|
|
TBLayout: axis: x
|
|
TBTextField: text: "Registration fee:"
|
|
TBEditField: id: "coru-tournament-registration-fee", text: "0"
|
|
TBToggleContainer: id: "coru-tournament-registration-fee-error-container", toggle: "expanded", gravity: "left right"
|
|
TBLayout: axis: x, distribution: "gravity", distribution-position: "left"
|
|
TBImageWidget: filename: "images/warning.png"
|
|
lp:
|
|
width: 24
|
|
height: 24
|
|
TBTextField: id: "coru-tournament-registration-fee-error", gravity: "left right", text-align: "left", skin: "text-error"
|
|
TBLayout: axis: x
|
|
TBButton: id: "coru-tournament-prizes" text: "Prizes"
|
|
TBLayout: axis: x
|
|
TBTextField: text: "Time till tournament start:"
|
|
TBEditField: id: "coru-tournament-delay", text: "1.0"
|
|
TBTextField: text: "days"
|
|
TBToggleContainer: id: "coru-tournament-delay-error-container", toggle: "expanded", gravity: "left right"
|
|
TBLayout: axis: x, distribution: "gravity", distribution-position: "left"
|
|
TBImageWidget: filename: "images/warning.png"
|
|
lp:
|
|
width: 24
|
|
height: 24
|
|
TBTextField: id: "coru-tournament-delay-error", gravity: "left right", text-align: "left", skin: "text-error"
|
|
TBButton: id: "coru-tournament-create", text: "Create tournament"
|