townforge/GameData/TB/cc/new-mortgage.tb.txt
2020-10-26 13:09:35 +00:00

91 lines
3.0 KiB
Plaintext

WindowInfo
title New mortgage
centered-relative-size: 0.7 0.8
modal: 1
TBLayout: axis: y, distribution-position: "left top", distribution: "gravity"
TBTextField: text: "You can raise gold by mortgaging a building."
TBButton: id: "help", text: "How does this work ?"
TBLayout: axis: x, size: "available", distribution: "gravity"
TBTextField: text: "Mortgage name:"
TBEditField: id: "name", gravity: "left right"
TBLayout: axis: x, size: "available", distribution: "gravity"
TBTextField: text: "Description:"
TBEditField: id: "description", gravity: "all", multiline: 1
TBContainer
TBLayout: axis: y, distribution-position: "left"
TBTextField: text: "Mortgage repayments will be made in:"
TBLayout: axis: x
TBClickLabel: text: "gold"
lp: min-width: 200
TBRadioButton: id: "distribution-type-gold", group-id: "distribution-type", data: 0, value: 1
TBLayout: axis: x
TBRadioButton: id: "distribution-type-item", group-id: "distribution-type", data: 1
TBSelectDropdown: id: "distributed-item", gravity: "left right"
lp: min-width: 200
TBSeparator
TBLayout: axis: y
TBLayout: axis: x, size: "available", distribution: "gravity"
TBTextField: text: "Number of repayments:"
TBEditField: id: "num-tick-payments", text: "0", gravity: "left right"
TBSelectDropdown: id: "num-payments-unit"
items
item: id: "unit-tick", text: "game updates"
item: id: "unit-day", text: "days"
item: id: "unit-week", text: "weeks (game year)"
TBLayout: axis: x, size: "available", distribution: "gravity"
TBTextField: text: "Repayment per Share:"
TBEditField: id: "tick-payment", value: "0", gravity: "left right"
TBSeparator
TBLayout: axis: y
TBLayout: axis: x, size: "available", distribution: "gravity"
TBTextField: text: "Maturity payment per share:"
TBEditField: id: "maturity-payment", value: "0", gravity: "left right"
TBSeparator
TBLayout: axis: y
TBLayout: axis: x, size: "available", distribution: "gravity"
TBTextField: text: "Delay before first repayment:"
TBEditField: id: "num-ticks-delay", value: "0", gravity: "left right"
TBSelectDropdown: id: "delay-unit"
items
item: id: "unit-tick", text: "game updates"
item: id: "unit-day", text: "days"
item: id: "unit-week", text: "weeks (game year)"
TBSeparator
TBLayout: axis: x
TBTextField: text: "Total payment:"
TBTextField: id: "total-payment"
TBTextField: text: "("
TBTextField: id: "outstanding-payment"
TBTextField: text: "outstanding)"
TBLayout: axis: x
TBTextField: text: "Total payment per share:"
TBTextField: id: "total-payment-per-share"
TBTextField: text: "("
TBTextField: id: "outstanding-payment-per-share"
TBTextField: text: "outstanding)"
TBSeparator
TBLayout: axis: x, size: "available", distribution: "gravity"
TBTextField: text: "Number of shares:"
TBEditField: id: "shares", gravity: "left right"
TBLayout: axis: x
TBButton: text: "OK", id: "ok"
TBButton: text: "Cancel", id: "cancel"