Commit Graph

1929 Commits

Author SHA1 Message Date
121273bf57 Fix main window not receiving focus after leaving a file navigation dialog 2014-04-14 20:35:30 -04:00
441e0a5459 Fix text display while talking 2014-04-14 17:43:54 -04:00
a157c5358b Fix crash when talking to someone
- Also make a lot of talk stuff use std::string instead of char[]
2014-04-14 17:06:50 -04:00
db98f6245e Fixed first button in dialog without attached key being triggered by any unknown key 2014-04-14 17:03:05 -04:00
48f3335160 Fix "missing" Done button in PC info dialog
- Also fix wrong resource name - the pc-spell-info DITL was mistakenly named pc-info
2014-04-14 15:51:30 -04:00
dd02dcc5d3 Realign PC spell list dialog 2014-04-14 15:51:30 -04:00
7b194c26ba Fix mage/priest spell buttons in PC info dialog being labelled with the level of the skill 2014-04-14 15:51:30 -04:00
146eb5dd40 Fix crash when viewing PC spell list 2014-04-14 15:51:29 -04:00
8ecf76e758 Fix crash on viewing PC info 2014-04-14 15:51:29 -04:00
07140349a2 Fix white first character name and item charges being shown as boxes 2014-04-14 15:51:28 -04:00
854dae0576 Fix string dialogs attempting to play garbage sounds 2014-04-14 15:51:28 -04:00
1ce6c6cc94 Fixed crash when getting items and some other improper use of std::ostringstream 2014-04-14 15:51:27 -04:00
b68abf037d Slightly improved error messages in the dialog framework 2014-04-14 15:51:27 -04:00
a2ca0bf3b1 Catch exceptions and show an error dialog to the user 2014-04-14 15:51:27 -04:00
8a6d222083 Re-indent main() 2014-04-14 15:51:26 -04:00
b36c9778c6 Fix keyboard controls 2014-04-14 15:51:26 -04:00
fa551c8f43 Don't hide mouse cursor if it's outside the window 2014-04-14 15:51:26 -04:00
5f9be1cb6a Save help received to prefs file 2014-04-14 15:51:25 -04:00
45494d0c2e Fix some preferences having incorrect defaults and made all preferences save
- SDF preferences, which are also stored in the save file, are only saved if you're at the startup screen
- Also fixed a crash when saving prefs
2014-04-14 15:51:25 -04:00
a53c16c4a0 Skip startup music along with splash screen 2014-04-14 15:51:24 -04:00
0d53357955 Fix crash on seeing a monster 2014-04-14 15:51:24 -04:00
eeb5ca0f06 Rewrite prefs loading/saving to use Cocoa 2014-04-14 15:51:24 -04:00
a76755d961 Fix tip of the day setting not being saved 2014-04-14 13:55:54 -04:00
a641fdefc1 Fix preferences dialog not properly remembering settings 2014-04-14 13:55:53 -04:00
152f828e44 XSL dialog preview now shows default-state LEDs 2014-04-14 13:55:53 -04:00
8d76aed26c Add preferences option to skip splash screen on startup 2014-04-14 13:55:52 -04:00
85afa07382 Prefs dialog alignment tweaks 2014-04-14 13:55:52 -04:00
860305df91 Organize preferences dialog so that the elements are in display order 2014-04-14 13:55:51 -04:00
44044929cc Make custom 3-choice dialogs always have a default button 2014-04-14 13:55:51 -04:00
fccc1a8c54 Zap fancy apostrophes in strings and dialogs 2014-04-14 13:55:50 -04:00
672d4b88d0 Address major lag issues
- Now waits for events instead of busy polling
- Changes the cursor on receiving a mouse move rather than before checking for an event
- Make cursor sword when it's out of window
- Temporarily disable unseen mask as it didn't work properly and was the main cause of the lag
- Don't reset text bar on every loop
2014-04-14 13:55:49 -04:00
f79a300e76 Fix incorrect ID in 2str dialogs 2014-04-14 13:55:49 -04:00
0087731ddb Fix crash when quitting the game 2014-04-14 13:55:49 -04:00
2986ca80a8 Fix crash when adjusting the monster and spell menus 2014-04-14 13:55:48 -04:00
2a3b275259 Make everything display correctly on the main game screen 2014-04-14 13:55:48 -04:00
41c043ec27 Fix forgetting to initialize render textures and other minor things
- Removed now-unused render texture for the startup animation
- Don't place background after drawing buttons
- Fix conversion error in rectunion call
- A couple of TODO notes
2014-04-14 13:55:36 -04:00
904eb389c5 Fix custom dialogs having the wrong background and default text colours 2014-04-14 13:52:10 -04:00
dac305b1eb Fix custom dialogs attempting to check non-existent buttons 2014-04-14 13:52:10 -04:00
6b224145b2 Fix scrollbars being initialized with a garbage max value 2014-04-14 13:52:09 -04:00
5552dd9df8 Add sceondary offset method to Region class 2014-04-14 13:52:09 -04:00
5f6df4d76f Remove FlushAndPause() function 2014-04-14 13:52:08 -04:00
83a67395bb Remove create_clip_region() function 2014-04-14 13:52:08 -04:00
8e4e783df0 Sort most files alphabetically in the XCode project 2014-04-14 13:52:07 -04:00
9f5480ba8b Add methods to rectangle to get its corners as locations 2014-04-14 13:52:07 -04:00
7afaaf3a60 SFML doesn't like textures of size 0 2014-04-14 13:52:06 -04:00
9d6867d15b Suppress the superfluous "validates" messages from the xmllint output 2014-04-14 13:52:06 -04:00
a6a030052c Implement loading of .meg files using the Resource manager
- I extract pixel data from the resource without using QuickDraw
- Both resource-fork and data-fork .meg files work

Related changes:
- The custom graphics textures are now wrapped in a custom class
- bmp images are loaded if a meg is not found

Incidental changes:
- Various TODO notes
- Fix cScenario::spec_strs skipping several strings and potentially fetching out-of-bound entries
- oopsError now uses string streams instead of sprintf
2014-04-14 13:52:05 -04:00
4db8a0943b Convert legacy structs and endian-swapping routines to use exact-width types
- This because I discovered my compiler makes the long 8 bytes instead of 4
2014-04-14 13:52:04 -04:00
68c8ef7ba7 Import the TinyXML dependency into the repository 2014-04-14 13:52:03 -04:00
57abf3ab68 Make the XML validation phase check against the schema, and fixed all the errors it found 2014-04-14 13:52:03 -04:00