townforge/GameData/TB/cc/new-item.tb.txt
2021-03-26 20:37:15 +00:00

33 lines
1.6 KiB
Plaintext

WindowInfo
title New item
centered-relative-size: 0.6 0.6
modal: 1
TBLayout: axis: y, distribution-position: "left top", distribution: "gravity"
TBEditField: id: "name", gravity: "all", placeholder: "Item name"
TBClickLabel: text: "Item group", gravity: "left right"
TBCheckBox: id: "is-group", connection: "is-group"
TBToggleContainer: connection: "is-group", invert: 1, toggle: expanded, gravity: "left right"
TBLayout: axis: y
TBEditField: id: "amount", gravity: "left right", placeholder: "Amount to create"
TBLayout: axis: x, distribution: "gravity"
TBButton: id: "upload-file", text: "Upload file to IPFS"
TBButton: id: "ipfs-help", text: " ? "
TBEditField: id: "hash", gravity: "left right", placeholder: "Data hash or IPFS address/multihash/CID (optional)"
TBEditField: id: "gold", gravity: "left right", placeholder: "Amount of gold to add to each item (optional)"
TBToggleContainer: connection: "is-group", invert: 0, toggle: expanded, gravity: "left right"
TBClickLabel: text: "Public (anyone can make items in this group)", gravity: "left right"
TBCheckBox: id: "is-public", value: 0
TBLayout: axis: x, distribution: "gravity", size: "available"
TBTextField: text: "Group:"
TBSelectDropdown: id: "group", gravity: "left right"
TBEditField: id: "primary-description", gravity: "all", placeholder: "Primary description (immutable)"
multiline: 1
TBEditField: id: "secondary-description", gravity: "all", placeholder: "Secondary description (can be changed later)"
multiline: 1
TBLayout: axis: x
TBButton: text: "OK", id: "ok"
TBButton: text: "Cancel", id: "cancel"