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:
2014-12-26 02:02:56 -05:00
parent d6cc7bae53
commit bdcd2fc67c
31 changed files with 3678 additions and 2271 deletions

View File

@@ -0,0 +1,224 @@
Give Item
Stuff Done Flag Part A
Stuff Done Flag Part B
First part of message
Second part of message
Unused
Unused
Unused
Item to give
Amount of gold to give
Unused
Amount of food to give
Special if item not given
Unused
Special to Jump To
--------------------
Give Special Item
Stuff Done Flag Part A
Stuff Done Flag Part B
First part of message
Second part of message
Unused
Unused
Unused
Num. of spec. item to give (0 .. 49)
0 - give item, 1 - take away
Unused
Unused
Unused
Unused
Special to Jump To
--------------------
One-Time Do Nothing
Stuff Done Flag Part A
Stuff Done Flag Part B
Unused
Unused
Unused
Unused
Unused
Unused
Unused
Unused
Unused
Unused
Unused
Special to Jump To
--------------------
One-Time and Set
Stuff Done Flag Part A
Stuff Done Flag Part B
Unused
Unused
Unused
Unused
Unused
Unused
Unused
Unused
Unused
Unused
Unused
Special to Jump To
--------------------
One-Time Text Message
Stuff Done Flag Part A
Stuff Done Flag Part B
First part of message
Second part of message
Unused
Unused
Unused
Unused
Unused
Unused
Unused
Unused
Unused
Special to Jump To
--------------------
Display Dialog (Dialog pic)
Stuff Done Flag Part A
Stuff Done Flag Part B
Number of first message in dialog
1 - add 'Leave'/'OK' button, else no
Unused
Dialog Picture number
Unused
Label of 2nd button (-1 - no button)
Special if button 2 pressed
Unused
Label of 3rd button (-1 - no button)
Special if button 3 pressed
Unused
Special if OK/Leave picked
--------------------
Display Dialog (Terrain pic)
Stuff Done Flag Part A
Stuff Done Flag Part B
Number of first message in dialog
1 - add 'Leave'/'OK' button, else no
Unused
Terrain Picture number
Unused
Label of 2nd button (-1 - no button)
Special if button 2 pressed
Unused
Label of 3rd button (-1 - no button)
Special if button 3 pressed
Unused
Special if OK/Leave picked
--------------------
Display Dialog (Monster pic)
Stuff Done Flag Part A
Stuff Done Flag Part B
Number of first message in dialog
1 - add 'Leave'/'OK' button, else no
Unused
Monster Picture number
Unused
Label of 2nd button (-1 - no button)
Special if button 2 pressed
Unused
Label of 3rd button (-1 - no button)
Special if button 3 pressed
Unused
Special if OK/Leave picked
--------------------
Give Item (Dialog pic)
Stuff Done Flag Part A
Stuff Done Flag Part B
Number of first message in dialog
Num. of spec. item to give (-1 none)
Unused
Dialog Picture number
Unused
Item to give
Amount of gold to give
Unused
Amount of food to give
Special if item IS taken
Unused
Special to Jump To
--------------------
Give Item (Terrain pic)
Stuff Done Flag Part A
Stuff Done Flag Part B
Number of first message in dialog
Num. of spec. item to give (-1 none)
Unused
Terrain Picture number
Unused
Item to give
Amount of gold to give
Unused
Amount of food to give
Special if item IS taken
Unused
Special to Jump To
--------------------
Give Item (Monster pic)
Stuff Done Flag Part A
Stuff Done Flag Part B
Number of first message in dialog
Num. of spec. item to give (-1 none)
Unused
Monster Picture number
Unused
Item to give
Amount of gold to give
Unused
Amount of food to give
Special if item IS taken
Unused
Special to Jump To
--------------------
One-Time Place Outdoor Enc.
Stuff Done Flag Part A
Stuff Done Flag Part B
First part of message
Second part of message
Unused
Unused
Unused
Special outdoor enc. to place (0 .. 3)
Unused
Unused
Unused
Unused
Unused
Special to Jump To
--------------------
One-Time Place Town Enc.
Stuff Done Flag Part A
Stuff Done Flag Part B
First part of message
Second part of message
Unused
Unused
Unused
Spec. enc. code to activate (0 .. 10)
Unused
Unused
Unused
Unused
Unused
Special to Jump To
--------------------
Trap
Stuff Done Flag Part A
Stuff Done Flag Part B
First part of message
Second part of message
Unused
Unused
Unused
Type of trap
Trap severity (0 .. 3)
Unused
Penalty (0 .. 100, higher is harder)
Unused
Unused
Special after trap finished
--------------------