Complete rewrite of special node edit dialog
- Now has space for the additional fields that have been added. - The dialog text has been updated so that labels, names, etc reflect all (or at least most) changes that have been made to specials so far. - A lot more fields provide a Choose button than previously. A few of these are still unimplemented though. - Rect specials have their own button now, instead of being filed under Town specials. - New help button (not yet implemented) - You can now cancel when deep into a node chain. You're given a choice of discarding the entire chain or just the current node; choosing the latter is similar to clicking "Go Back", but doesn't save your changes. - Nodes are no longer saved prior to clicking OK (which saves all the nodes you were working on) or "Go Back" (which saves just the current node). So, choosing the first option when clicking Cancel could lead to a lot lost. - Incidental change: The arithmetic special nodes now use the message 1 and 2 fields in the standard way. Supporting dialog engine changes: - Picture choice dialog now has a way to get the index of the selection, rather than just the picture selected. - Picture choice dialog no longer sorts the list of pictures. If sorting is desired, the list should be sorted prior to passing it in. - Picture and string choice dialogs now support attaching a "select handler" to be called when the selected item changes, because the normal way to do this would override the all-important focus handler that the dialog uses to track the currently selected item.
This commit is contained in:
@@ -4,10 +4,10 @@
|
||||
<!--
|
||||
TODO: Assign numeric types (type = 'int' or 'uint') to fields as appropriate
|
||||
-->
|
||||
<text name='num' top='8' left='314' width='38' height='14'/>
|
||||
<pict type='dlog' num='16' top='8' left='8'/>
|
||||
<text size='large' top='6' left='50' width='158' height='16'>Edit Special Node</text>
|
||||
<text name='title' size='large' top='6' left='50' width='158' height='16'>Edit Special Node</text>
|
||||
<text top='8' left='222' width='90' height='14'>Node number:</text>
|
||||
<text name='num' top='8' left='314' width='38' height='14'/>
|
||||
<text top='147' left='469' width='125' height='124'>
|
||||
Enter properties for this special encounter node.
|
||||
For a detailed description of how this window works, see the documentation.
|
||||
@@ -19,10 +19,12 @@
|
||||
<button name='ifthen' type='large' top='73' left='229'>If-Thens</button>
|
||||
<button name='town' type='large' top='49' left='356'>Town Specs</button>
|
||||
<button name='out' type='large' top='73' left='356'>Out Specs</button>
|
||||
<button name='rect' type='large' top='49' left='483'>Rect Specs</button>
|
||||
|
||||
|
||||
<text size='large' top='28' left='50' width='158' height='16'>Special Type:</text>
|
||||
<text name='type' framed='true' top='28' left='214' width='187' height='16'/>
|
||||
<button name='node-help' type='help' top='28' left='410'/>
|
||||
|
||||
|
||||
<text size='large' top='102' left='8' width='158' height='16'>Stuff Done Flags:</text>
|
||||
@@ -42,38 +44,54 @@
|
||||
<field name='msg2' top='187' left='270' width='51' height='16'/>
|
||||
<button name='msg2-edit' type='large' top='185' left='329'>Create/Edit</button>
|
||||
|
||||
<text name='pict-lbl' framed='true' top='212' left='22' width='238' height='15'/>
|
||||
<field name='pict' top='211' left='270' width='51' height='16'/>
|
||||
<button name='pict-edit' type='large' top='209' left='329'>Choose</button>
|
||||
<text name='msg3-lbl' framed='true' top='212' left='22' width='238' height='15'/>
|
||||
<field name='msg3' top='211' left='270' width='51' height='16'/>
|
||||
<button name='msg3-edit' type='large' top='209' left='329'>Create/Edit</button>
|
||||
|
||||
<text name='pict-lbl' framed='true' top='236' left='22' width='238' height='15'/>
|
||||
<field name='pict' top='235' left='270' width='51' height='16'/>
|
||||
<button name='pict-edit' type='large' top='233' left='329'>Choose</button>
|
||||
|
||||
<text name='pictype-lbl' framed='true' top='260' left='22' width='238' height='15'/>
|
||||
<field name='pictype' top='259' left='270' width='51' height='16'/>
|
||||
<button name='pictype-edit' type='large' top='257' left='329'>Choose</button>
|
||||
|
||||
|
||||
<text size='large' top='233' left='8' width='158' height='16'>Extra 1:</text>
|
||||
<text name='x1a-lbl' framed='true' top='254' left='22' width='238' height='15'/>
|
||||
<field name='x1a' top='253' left='270' width='51' height='16'/>
|
||||
<button name='x1a-edit' type='large' top='250' left='330'>Choose</button>
|
||||
<text size='large' top='281' left='8' width='158' height='16'>Extra 1:</text>
|
||||
<text name='x1a-lbl' framed='true' top='302' left='22' width='238' height='15'/>
|
||||
<field name='x1a' top='301' left='270' width='51' height='16'/>
|
||||
<button name='x1a-edit' type='large' top='298' left='330'>Choose</button>
|
||||
|
||||
<text name='x1b-lbl' framed='true' top='278' left='22' width='238' height='15'/>
|
||||
<field name='x1b' top='277' left='270' width='51' height='16'/>
|
||||
<button name='x1b-edit' type='large' top='274' left='330'>Create/Edit</button>
|
||||
<text name='x1b-lbl' framed='true' top='326' left='22' width='238' height='15'/>
|
||||
<field name='x1b' top='325' left='270' width='51' height='16'/>
|
||||
<button name='x1b-edit' type='large' top='322' left='330'>Create/Edit</button>
|
||||
|
||||
<text name='x1c-lbl' framed='true' top='350' left='22' width='238' height='15'/>
|
||||
<field name='x1c' top='349' left='270' width='51' height='16'/>
|
||||
<button name='x1c-edit' type='large' top='346' left='330'>Create/Edit</button>
|
||||
|
||||
|
||||
<text size='large' top='300' left='8' width='158' height='16'>Extra 2:</text>
|
||||
<text name='x2a-lbl' framed='true' top='322' left='22' width='238' height='15'/>
|
||||
<field name='x2a' top='322' left='270' width='51' height='16'/>
|
||||
<button name='x2a-edit' type='large' top='319' left='330'>Choose</button>
|
||||
<text size='large' top='372' left='8' width='158' height='16'>Extra 2:</text>
|
||||
<text name='x2a-lbl' framed='true' top='394' left='22' width='238' height='15'/>
|
||||
<field name='x2a' top='394' left='270' width='51' height='16'/>
|
||||
<button name='x2a-edit' type='large' top='391' left='330'>Choose</button>
|
||||
|
||||
<text name='x2b-lbl' framed='true' top='347' left='22' width='238' height='15'/>
|
||||
<field name='x2b' top='346' left='270' width='51' height='16'/>
|
||||
<button name='x2b-edit' type='large' top='344' left='330'>Create/Edit</button>
|
||||
<text name='x2b-lbl' framed='true' top='419' left='22' width='238' height='15'/>
|
||||
<field name='x2b' top='418' left='270' width='51' height='16'/>
|
||||
<button name='x2b-edit' type='large' top='416' left='330'>Create/Edit</button>
|
||||
|
||||
<text name='x2c-lbl' framed='true' top='443' left='22' width='238' height='15'/>
|
||||
<field name='x2c' top='442' left='270' width='51' height='16'/>
|
||||
<button name='x2c-edit' type='large' top='440' left='330'>Create/Edit</button>
|
||||
|
||||
|
||||
<text size='large' top='375' left='8' width='87' height='16'>Jump To:</text>
|
||||
<text name='jump-lbl' framed='true' top='376' left='99' width='182' height='14'/>
|
||||
<field name='jump' top='375' left='291' width='52' height='15'/>
|
||||
<button name='jump-edit' type='large' top='372' left='349'>Create/Edit</button>
|
||||
<text size='large' top='471' left='8' width='87' height='16'>Jump To:</text>
|
||||
<text name='jump-lbl' framed='true' top='472' left='99' width='182' height='14'/>
|
||||
<field name='jump' top='471' left='291' width='52' height='15'/>
|
||||
<button name='jump-edit' type='large' top='468' left='349'>Create/Edit</button>
|
||||
|
||||
|
||||
<button name='okay' type='regular' top='398' left='522'>OK</button>
|
||||
<button name='cancel' type='regular' def-key='esc' top='398' left='456'>Cancel</button>
|
||||
<button name='back' type='large' top='401' left='10'>Go Back</button>
|
||||
<button name='okay' type='regular' top='494' left='522'>OK</button>
|
||||
<button name='cancel' type='regular' def-key='esc' top='494' left='456'>Cancel</button>
|
||||
<button name='back' type='large' top='494' left='10'>Go Back</button>
|
||||
</dialog>
|
Reference in New Issue
Block a user