Commit Graph

460 Commits

Author SHA1 Message Date
da58f09fca All dialogs now use default skin and foreground colour
(The attributes are still available in the schema though, and will not be removed.)
2015-10-03 03:00:22 -04:00
893fa1e4ff Dialog formatting
- Newlines at end of file
- Remove debug attribute
- Indentation in the XSL
2015-10-03 02:50:44 -04:00
84dc913241 Improve dialog preview XSL sheet
- Now uses apply-templates, meaning output is in the same order as input
- Fully accounts for stack and pane, including adjusting coordinates
2015-10-03 02:33:40 -04:00
03bc3d05e6 Remove key-mod attribute from dialog schema
- Modifiers are now given in the def-key attribute, as originally intended
- Dialogs that have a help button now assign F1 to that button (replacing shift+/ in some cases)
- F1 also brings up help in the main game (in addition to shift+/)
2015-10-03 00:53:32 -04:00
0f273eba7e Fix resize outdoors dialog using the dark skin 2015-10-03 00:07:08 -04:00
2645818aeb Fix two minor graphical glitches in alternate scrollbar style 2015-10-03 00:02:26 -04:00
1b75bb4755 Add constraint for defbtn attribute to refer to a valid name in the dialog schema 2015-10-02 23:31:02 -04:00
b39ac35298 New alternate scrollbar style, used by default in dialogs 2015-10-02 23:31:01 -04:00
4aea031914 Add linked element to scrollbars
The linked element will be updated dynamically as the scrollbar's value changes.
Also: Added long-missing hasControl() method to cDialog
2015-10-02 22:59:04 -04:00
f7daba4ead Scrollbars are finally a first-class citizen in the dialog engine.
- Add <slider> tag to put an unbound scrollbar in the dialog
- Add support for horizontal scrollbars
2015-10-02 21:44:17 -04:00
5f7654046d Update About Blades of Exile dialog
- Some text in this update contributed by ADoS

Also:
- Make scroll panes scroll 5 pixels per click instead of 1
- Make scroll pane page size depend on the height
2015-10-02 18:46:21 -04:00
a455941d92 New scroll pane control in the dialog engine
Also:
- Use a scroll pane for the credits in the about dialog, so that new credits can be added without altering other elements
- Use a scroll pane for the list of sections to be deleted in the resize outdoors dialog
- New cContainer superclass for controls that contain other controls
- Scrollbars consider their maximum as part of their state
2015-10-02 17:03:25 -04:00
f6183cad63 Separate "Splits When Hit" from "Immune to Assassinate" 2015-10-01 22:53:32 -04:00
b465e3e498 Display "One-Time" for all one-time node types, for clarity 2015-10-01 03:17:40 -04:00
56c533f419 Fix scons build and tests 2015-09-30 18:57:52 -04:00
43e82281af More read/write tests for town and outdoors, including maps/dialogue
Fixes:
- For towns, the "has tavern" flag was not saved or loaded
- Outdoor roads were not saved or loaded
- For outdoor encounters, the "can't flee" and "forced" flags were not loaded, and "forced" was not saved
--> These two flags have also been separated in the code
2015-09-30 17:00:05 -04:00
c68b01c3a2 Make roads an overlay instead of a terrain trim type
Game:
- Roads now show on the automap again!
- Possible fix for undetected issue in displaying outdoor special spots
- Road conversion code for legacy scenarios now applied in towns too

Editor:
- New tool for placing roads, works the same as special dots
- Roads appear at all zoom levels

Other:
- Removed all terrain graphics that used the small road dot, replacing them with blank (white) space
- Make obvious out-of-bounds array accesses an error in the project settings
2015-09-27 22:37:12 -04:00
1222cb57f5 Move Set Town Start to Town menu and make it work the same as Set Out Start
- Also fix problem with initial starting town in new scenarios (it was uninitialized)
2015-09-27 14:50:00 -04:00
eb3c463130 Tweak look/drop cursors 2015-09-27 12:05:54 -04:00
082e3fc9d9 Implement flood-fill tool 2015-09-27 03:15:05 -04:00
add0ea48cf More tweaks to the colour cursors 2015-09-27 01:49:07 -04:00
18bb16df9c More read/write test cases for monsters, especially monster abilities
Fixes:
- For radiate abilities, the pattern was not saved and defaulted to single instead of square on load
- For summon abilities, what to summon was not saved and chance was incorrectly saved
2015-09-27 01:20:33 -04:00
ab232bb31a Generalize the editor's terrain frills mechanism 2015-09-26 15:05:49 -04:00
196f9a71df Tweak some cursors 2015-09-26 00:24:49 -04:00
bd6506f353 New dress item graphic by ADoS
(replacing a fancy shield; other shield was tweaked too)
2015-09-25 22:43:01 -04:00
054f32dec2 Split out icon from pcedit title graphic 2015-09-25 00:35:36 -04:00
da9b65118e Add readable books as a special item ability 2015-09-24 18:25:02 -04:00
249e0e0027 Add UI for scenario init special and hail townsperson special 2015-09-24 10:13:36 -04:00
fd53d210c6 New colour cursors by ADoS 2015-09-21 00:03:06 -04:00
152fd6a3ed Typos 2015-09-20 22:20:47 -04:00
2e9f217ff9 scons+Mac: Assign folder icons for the data folders 2015-09-14 23:31:29 -04:00
21a797fc03 Fix arrow keys activating buttons in edit monster dialog 2015-09-14 23:30:58 -04:00
651e5882c6 Remove Win32/ directory 2015-09-14 02:28:36 -04:00
43e057949d scons: Generate Windows installer
Also:
- scons: Fix copying wrong scenario graphics on Windows
- MSVC: Fix output filenames for release builds
2015-09-14 02:15:40 -04:00
19197a64e7 scons: Improve validation of XML dialogs, and make it work on Windows if xmllint is installed 2015-09-13 23:55:32 -04:00
71584d4401 Remove obsolete commented doctype declarations from dialogs 2015-09-13 14:32:03 -04:00
fa1689d7fe scons: Validate dialog definitions 2015-09-13 11:56:26 -04:00
09b117776a Move Windows resource scripts to rsrc/ directory 2015-09-12 17:28:07 -04:00
832b8b5f91 Set up scons build system
- In its current state, it produces a valid, launchable Mac application package, though one that's not redistributable (relies on system-installed libraries)
- Partial support is already in-place for a Windows build
2015-09-11 23:10:37 -04:00
a0e2cb6e8d Update graphics credits, fix missing E in start scroll 2015-09-10 12:50:39 -04:00
13801e83ab Several tweaks/bugfixes
- Preview terrain step sound when selecting it
- Fix uninitialized start locations
- Fix missing strings in copy files build phase
- Fix mislabelled terrain flag 3 for Call Special When Used
2015-09-10 12:50:38 -04:00
0c7c64dfc9 Rearrange resource structure
- All resources are now under data/
- Editors and Blades of Exile Base are no longer in Scenario Editor subfolder
- User scenarios are now stored in %APPDATA% / "Application Support"
2015-09-03 19:26:19 -04:00
44f485cc9c Add lots of new terrain graphics by ADoS
- And also remove that Wyrmfire scenario icon
2015-09-01 22:34:12 -04:00
47217b12b0 Several new status icons
- Remove staticonhelp.png in favour of placing this information directly in the relevant help dialog definition
- New status icons for enlightenment, magic attract, forcecage, hyperactivity, flight, detect life, firewalk, stealth (replacing the BoA-sourced ones)
- Status icons for fear, drunkenness, charm (none of which are currently implemented as PC status effects)
2015-08-31 13:22:15 -04:00
960e4cdf23 Remove map and text bar patterns, move dither patterns to separate sheet 2015-08-31 11:37:27 -04:00
86dc17b7bc Scrub hard-coded text and buttons from inventory and stat area images 2015-08-31 11:31:51 -04:00
15ca61f869 Lots of new tiny editor icons
- Several new icons for specific damage/status terrains
- New icon for light-emitting terrains (only shown in town)
- New icons for diagonal conveyors (even though they're still not implemented in the game)
- Some old icons updated, tweaked, or (in the case of crumbling) replaced
- Many new icons for developer use, including a complete set of letters and digits
- Choose button to select small icon for terrains that call a special node or have no special property (you select from a list of descriptions)
2015-08-31 08:53:55 -04:00
bbd47088e1 Basic test cases for reading town, dialogue, and outdoor records 2015-08-28 13:38:08 -04:00
e1f833a400 Fix remove-bg script to work on filenames with spaces 2015-08-27 16:34:52 -04:00
c0c3093140 Encode cursor hotspots into GIF comments 2015-08-21 14:27:39 -04:00