Create dialog for editing large terrain object definitions

- Remove keybindings from terrain dialog arrow buttons
- Fix arrow buttons not bound-checking fields

Dialog engine:
- Fix fields crashing after text is set while it has focus
- Trigger focus handler on untoast() to balance that in toast()
This commit is contained in:
2015-01-22 10:22:59 -05:00
parent 5315655bc6
commit 6a08476d22
7 changed files with 142 additions and 8 deletions

View File

@@ -97,8 +97,8 @@
<field name='map' top='406' left='470' width='100' height='16'/>
<button name='done' type='regular' def-key='enter' top='455' left='517'>OK</button>
<button name='cancel' type='regular' def-key='esc' top='455' left='451'>Cancel</button>
<button name='left' type='left' def-key='left' top='455' left='11'/>
<button name='right' type='right' def-key='right' top='455' left='74'/>
<button name='left' type='left' top='455' left='11'/>
<button name='right' type='right' top='455' left='74'/>
<text top='7' left='451' height='131' width='137'>Enter properties for this terrain type. For a detailed description of the fields, see the documentation. Note that, for terrain types 90 and below, only changes to the picture and shortcut key will be recorded.</text>
<button name='help' type='help' def-key='/' key-mod='shift' top='5' left='588'/>
</dialog>