Commit Graph

32 Commits

Author SHA1 Message Date
ALONSO Laurent
2106f45840 Scenario Editor: try to correct a problem when displaying terrain in zoom out mode,
Mac: add hack to avoid crashing when receiving an apple event,
+ various minor modifications
2022-06-30 01:10:46 -04:00
ALONSO Laurent
c20878ecd6 game[mac]: try to make openFile's apple event works... 2022-06-30 01:10:46 -04:00
ALONSO Laurent
8951d0efc1 game: begin to use the get_terrain method, ... 2022-06-30 01:10:46 -04:00
ALONSO Laurent
c229ac6543 clang analyze: try to correct some warnings, mainly unused variables... 2022-06-30 01:10:45 -04:00
ALONSO Laurent
a92a4b34d6 create files boe.minimap.*pp to regroup the minimap codes
+ try to improve this code but this is still not perfect :-~
2022-06-30 01:10:45 -04:00
ALONSO Laurent
4d0da8f6ac game: try to make Blades of Exile less CPU hungry... 2022-06-30 01:10:45 -04:00
ALONSO Laurent
418e242fda [calref/cboe]: Links in the welcome dialog are now clickable 2022-06-30 01:08:48 -04:00
Laurent Alonso(fr)
35e1599f71 UI scaling: try to also scale the mini_map 2022-06-30 01:08:48 -04:00
Laurent Alonso(fr)
3d7d465c7e boe, OSX and menu[hack]: try to avoid crashes by postponing the creation of dialogs in the main loop. 2022-06-30 01:08:47 -04:00
3d7f8f1d2a style fixup 2020-02-20 23:41:55 -05:00
760a172526 Some style tweaks 2020-02-09 18:24:09 -05:00
deac7b0cb6 Merge pull request #251 from x-qq/fix_scrollbar_segfaults
fix for scrollbar segfaults

* fixes #206
* fixes broken mousewheel scrolling of the scenedit palette
* removed boost threads dependency
* added foundation for further refactoring of the drawing and event handling code: interfaces and drawable manager with layering
* removed a bunch of unneeded redraw calls
* removed some repeated recalculation of effectively constant values (boe.actions)
* removed recalculation of effectively constant scrollbar and button positions (boe.graphics)

Closes #251
2020-02-09 15:55:51 -05:00
2a34447ab5 Merge pull request #252 from x-qq/fix_211 2020-02-05 23:54:56 -05:00
xq
60eece4b60 Fis Escape button not closing the minimap
fixes #211
2020-02-06 06:46:46 +02:00
xq
43d274f532 fixed barrier animation 2020-02-06 06:34:33 +02:00
72bd8265fa Game modes cleanup
- Fix some cases where modes were still referenced by number
- Replace most cases of mode range-comparison with is_out(), is_town(), and/or is_combat()

There could be some minor errors in the replacements.
2020-02-04 00:02:08 -05:00
3df4a2223e Fix broken keyboard shortcuts 2020-02-02 12:11:41 -05:00
91da0ed4d0 Update references to the online documentation 2020-02-01 22:28:25 -05:00
f9f4d5671c Factor out the framerate limiter into a class
Patch from @x-qq
2020-02-01 21:03:56 -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
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
166965fdd0 Fix merge error (calling show_logo twice) 2020-01-19 15:55:59 -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
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
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
4f785e2650 Use enums for most of the rest of the game constants.
This adds an "enum map" type that allows safe usage of an enum to index an array.
(That is, it enforces that the index is of the enum type.)
2019-11-24 20:28:52 -05:00
9c69e006d8 Refactor rendering to use an SFML view for placing the main UI within the overall interface 2017-09-04 14:36:55 -04:00
c2ce2a2cd1 Split up the graphtool files 2017-04-14 15:43:07 -04:00
82abdab695 Major code reorganization
This commit only updates the XCode project for the changes.
A later commit each will update it for scons and MSVC.

A few actual changes are mixed in:
- Add a prefix header for a handful of common definitions
- Moved current_cursor into the Cursor class as a static member
- Removed the make_cursor_sword and make_cursor_watch functions
- Include tests in the All target
- Remove redundant -l flags for Common and Common-Party (since they're included in the Link phases anyway)
2017-04-14 00:24:29 -04:00