ef734d60d3
Fixes for Linux build
2020-01-30 00:57:50 -05:00
589d919f13
Some tweaks and comments to try and satisfy @x-qq, plus fix scons build
2020-01-30 00:48:34 -05:00
4859fa70bc
Factor out the game toolbars into a class.
...
This includes the following related or incidental changes:
* Remove the win_from_rects global variable. With one minor exception, they were all equal to the relevant render texture's size anyway.
* Split out time advancement from the handle_action function into a separate function
* Split out each individual button action into its own function
* Thanks to the above two, button actions triggered from the keyboard (and menu spells) no longer pass thru handle_action
* Side-effect: keyboard shortcuts and menu spells no longer trigger the button press animation
* Button presses now behave like proper buttons
* Button clicks are now grouped by effect in the handling code, rather than by index
* Removed a variable that mysteriously caused dialogue to become blank
2020-01-30 00:00:40 -05:00
1d61d48ec3
Enable UI scaling in the scenario and implement Linux menus
...
Patch from @x-qq
Addresses #195
Note: UI scaling for the scenario editor still needs some work,
but it's basically functional.
2020-01-28 20:13:24 -05:00
c2cdeb4990
Fix broken (un)equip clicks
2020-01-27 20:00:41 -05:00
df4ab21ff1
Update README
...
- Add new Linux dependencies
- Fix broken and outdated links
2020-01-26 23:19:45 -05:00
726c46687b
Make sure inventory item graphics don't overflow onto the border
2020-01-26 20:29:52 -05:00
46f1e6ed86
Extra caution to avoid a segfault in the sound system
...
The earlier commit mostly avoids it, but it was still theoretically possible to segfault
2020-01-26 17:19:06 -05:00
d530abe00b
Make use of the new resource manager's purgeable flag
2020-01-26 16:14:39 -05:00
a2e73a0223
Fix small item icons being shrunk even further in the inventory screen
2020-01-26 16:07:12 -05:00
1a05d9c53f
Fix the OpenAL assert on exit
2020-01-26 15:41:38 -05:00
14e2597108
Expose the shared pointer instead of the raw pointer in the resource manager and rewrite the custom sheets list to use a vector instead of manual memory management
...
In particular, this should fix a segmentation fault in the sound system caused by the resource manager pulling a resource that's in use.
2020-01-26 15:10:57 -05:00
2d1ee24473
Fix scons and Linux builds
2020-01-26 13:33:02 -05:00
b0fddcd8a6
Update Xcode project and fix Mac build
2020-01-26 13:06:22 -05:00
542c037342
Integrate a new resource manager which should have better performance
2020-01-26 11:53:19 -05:00
29ef8b9c1e
Refactor the game event loop and add menus to the Linux build
...
Patch from @x-qq
Addresses #195
2020-01-25 17:57:32 -05:00
1fcbd8e922
Rearrange the dialog event loop a little
...
This patch is contributed by @x-qq
and should improve CPU usage on Linux.
2020-01-20 19:47:09 -05:00
fd139c59de
Fix incorrect Prevent Action special nodes in the scenarios, caused by incorrect import code
...
The fix was implemented by re-importing the legacy scenarios and re-exporting them,
then simply accepting any changes to a Prevent Action node.
2020-01-19 16:51:48 -05:00
9691470611
Fix the legacy special tests
2020-01-19 16:26:24 -05:00
488e5a2570
Fix import of legacy Wandering Will Fight special nodes
...
After checking legacy documentation, I determined that
the meaning of ex1a is reversed in the latest code.
2020-01-19 16:26:15 -05:00
cf3f20ffcc
Clean up outdoor wandering monsters function, removing a useless parameter
2020-01-19 16:25:35 -05:00
166965fdd0
Fix merge error (calling show_logo twice)
2020-01-19 15:55:59 -05:00
6d5b484ecd
Scons: debug builds should be unoptimized
2020-01-19 15:39:42 -05:00
56523f1623
Fix import issue with Can't Enter special nodes
2020-01-19 15:39:42 -05:00
3f38ce1fed
Rearrange the main game event loop a little
...
This patch is contributed by @x-qq
and should improve CPU usage on Linux.
2020-01-19 15:39:42 -05:00
a5a7f161c8
Remove the init thread from the scenario editor
...
The reasoning is the same as for the main game.
2020-01-19 15:39:41 -05:00
e4b98a1634
Add a hidden preference to skip the Spiderweb logo at startup
...
The same preference also skips the scenario editor startup splash
In order to enable that, the scenario editor now loads prefs.
2020-01-19 15:39:41 -05:00
36b4f6edc1
Remove an unused variable
...
(Thanks to @x-qq for noticing it was never assigned)
2020-01-19 15:38:05 -05:00
fa7158de03
Fix exportGraphics not checking previously-exported monsters
...
I'm actually not sure whether this is necessary,
but decided to err on the side of caution
(since check_item does the same thing).
2020-01-19 15:38:05 -05:00
0ffcdf3e5e
Print paths to console on startup, like Wesnoth does
2020-01-19 15:38:05 -05:00
cb8bf96832
Fix buffer overflow in exportGraphics
2020-01-19 15:38:05 -05:00
4fdd330d07
Setting up Apple Events needs to be done early in initialization, otherwise the event will time out and the Finder will show an error that the program doesn't know how to open the saved gane.
2020-01-12 17:36:16 -05:00
44f18420bd
Remove the init thread
...
It seems to cause problems on Linux and no benefit of it could be observed on Windows or Mac
2020-01-12 17:29:40 -05:00
fb28a4da2e
Fix Mac build
2020-01-12 13:19:32 -05:00
fa25beae6d
Apparently referencing the superclass by unqualified name is not allowed
2020-01-12 12:33:58 -05:00
c5dedeb2a7
Fix missile graphic not being written to the saved game
...
Should fix #202
2020-01-12 12:31:14 -05:00
e42baa0971
This should fix some ambiguities in the enum_map
2020-01-12 12:21:18 -05:00
e39ccf745b
VoDT: Fix various out-of-range message errors
2020-01-12 12:16:14 -05:00
409fe41030
Ignore numpad keys for keyToChar conversion
2020-01-12 10:58:33 -05:00
479cfb75f6
Fix improper loading order with saved games
2020-01-02 00:28:52 -05:00
b6aee36a0c
Write hidden/visible state for EVERY town in the save file, even if it's equal to the scenario default
...
This should fix #197 for any new saves created after the fix.
2019-12-30 01:48:00 -05:00
6ae8a313b5
Fix "Quit" and red button appearing over the credits when you click them
...
Fixes #205
2019-12-30 01:35:54 -05:00
5ca27fdad5
Fix items that cause a status effect or cast a spell
2019-12-29 14:11:19 -05:00
7233a8ba78
Change obsolete How to Order button to Preferences
...
This will allow Linux users to access the preferences UI while I work out how to implement menus on Linux
2019-12-29 13:29:58 -05:00
699e66a69c
Remove obsolete failing test
2019-12-29 13:26:00 -05:00
402f4eae01
Fix saving for double preferences (UIScale) on Windows/Linux
2019-12-29 13:19:42 -05:00
d12fd43d15
Fix the save action
...
- Prompt for filename if the game has never been saved
- Don't say the game was saved if file choice was cancelled (affects save as too)
2019-12-29 13:09:55 -05:00
1bd23ace69
Better detection of doubles in Windows/Linux preferences
2019-12-29 12:48:10 -05:00
45bbc12208
Linux builds require linking to pthread
2019-12-29 12:25:44 -05:00
13e61047d9
VoDT: Merge Bristow's shops into a single shop
2019-12-14 12:14:39 -05:00