forked from townforge/townforge
27 lines
1.2 KiB
Plaintext
27 lines
1.2 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"
|
|
TBEditField: id: "amount", gravity: "left right", placeholder: "Amount to create"
|
|
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"
|