c8df04ab04
More taking advantage of the common superclass of cTown and cOutdoors
2023-01-22 14:07:26 -05:00
2539c28fe2
Prefer to call is_on_map() for terrain bounds checking whenever possible
...
Fix some cCurTown field functions not having bound checking
Scenario editor now takes better advantage of cTown and cOutdoors sharing a superclass
2023-01-22 14:07:26 -05:00
5bce71d59f
Make implicit switch fallthrough an error in the Xcode project and fix all places that do it
...
Since we can't directly use C++11 attributes, I've chosen BOOST_FALLTHROUGH to annotate intentional fallthroughs.
Thanks to @fosnola for spotting a missing break, which triggered this.
2023-01-21 22:39:33 -05:00
80b6a6decf
Undo e47b7e6a22
...
I forgot that each program already has a separate settings file. Duh!
2023-01-21 20:35:56 -05:00
584ba11a5f
Apply the more advanced scaling options also to the editors
2023-01-21 20:33:28 -05:00
d88ec6a08d
Fix cases of assigning get_float_pref() to a float variable
...
It's called "get_float_pref" because it returns a floating-point.
However, that floating-point is in double precision.
2023-01-21 20:18:16 -05:00
e47b7e6a22
Allow setting UI scale and sounds differently in each program
2023-01-21 19:10:28 -05:00
ALONSO Laurent
26d2328fe7
pc/scenario editor: add a basic preferences's menu.
2023-01-21 19:10:28 -05:00
6b56f4af86
Add bounds-checking to coord_to_ter in the scenario editor
2023-01-18 10:00:08 -05:00
492e4b0cf9
Add 10 scenario timers to editor in a stack
2023-01-14 01:26:49 -05:00
e0418c685a
Track modifier state in the main loops
...
Really fixes #291
2023-01-13 19:55:24 -05:00
7055d5eba4
Don't crash when canceling scenario import pick ( #308 )
2023-01-13 19:23:28 -05:00
3bdcf02be0
Handle modifier keys differently to avoid Apple flagging us as wishing to monitor input from other applications
...
Fixes #291
2023-01-12 21:43:45 -05:00
e3d6a4748e
Dialog XML definitions are now loaded thru the resource manager
2023-01-07 11:59:42 -05:00
0714004f1c
Fix a few compiler warnings
2023-01-06 22:02:05 -05:00
Morel Berenger
8809af121f
Minor fixes to special node edit dialog.
2023-01-06 20:49:08 -05:00
ALONSO Laurent
e2a4fcc788
OsX[AppleEvents]: try to avoid some crash by delaying the function which is called
...
by such events...
Fixes #292
2023-01-06 13:57:01 -05:00
cb73719af3
Make item abil_data a bit more readable
...
A two-element array is an ugly thing to behold
2023-01-06 02:13:46 -05:00
f70f63eead
Update and clean up the Visual Studio 2017 project files
...
These were very shoddily put together!
It seems the person who made them never really tried building
the editors or the tests.
Also included here are a couple of minor source changes that are needed
to make the project files build.
2023-01-05 19:29:16 -05:00
e2de459bd3
make include paths absolute within src
2023-01-05 09:28:57 -05:00
d860422c6d
Update to TGUI 0.9.x
2022-12-29 10:18:06 -05:00
5b2561d034
Disable header maps in Xcode 12
2022-07-12 20:35:41 -04:00
x-qq
55a105a0f6
make the game buildable on linux ( #283 )
...
- Scons -> python3
- include issues
2022-03-13 15:38:22 -04:00
f14c99f14b
Split out cContainer, cLed, and cLedGroup into their own files
2020-12-21 17:16:15 -05:00
3ba6266cd4
Fix editors launching in the top left corner of the screen
2020-02-23 23:29:44 -05:00
7b93726383
Replace 4-character constants with enums
...
This covers only the places where they were used to indicate
a preset selection in constructors.
The usage in qdpict where they're actually passed to the Resource Manager,
as well as the 4-character constants representing file types and creator
codes, are still present.
2020-02-21 00:16:58 -05:00
43b4379772
Fix Edit Custom Sheets option not working in an unpacked scenario
2020-02-10 08:35:59 -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
335fb87e51
Store custom graphics classifications as symbols instead of integers
2020-02-09 12:10:52 -05:00
7e73a21f5c
Add "Add Item" and F1 menu key accelerator on Linux
...
Patch from @x-qq
Closes #195
2020-02-02 22:38:42 -05:00
c4c201db6e
Implement the most important menu key accelerators for Linux
...
Patch from @x-qq
2020-02-02 21:40:58 -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
3e686cb908
Tweak text colours to be less blindingly bright and closer to the original Mac BoE
2020-02-01 19:55:30 -05:00
5675ab8c71
Add menus to Linux character editor
...
Patch from @x-qq
2020-02-01 19:55:30 -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
d530abe00b
Make use of the new resource manager's purgeable flag
2020-01-26 16:14:39 -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
542c037342
Integrate a new resource manager which should have better performance
2020-01-26 11:53:19 -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
6f96222c37
Remove the 30-item limit in shops
2019-12-02 01:16:34 -05:00
4ad84e6cf8
Missed some when fixing #191
2018-04-07 09:38:13 -04:00
9073063423
Merge branch 'merge_linux' of https://github.com/murlock/cboe
2018-03-03 17:52:59 -05:00
Mark Clark
e70c360e11
Minor fixes to get build working for vs2017 project;
2018-02-25 14:55:13 -05:00
8759aad90a
Move Xcode project to a separate tree parallel to src
2018-02-19 02:11:29 -05:00
c21b0b8de7
Fix #155
2018-02-18 16:26:10 -05:00
Michael Bonfils
12c3ce26f8
Fix compilation of linux
2018-02-10 17:08:33 +01:00
Michael Bonfils
d940f2c39d
Merge branch 'linux' into merge_linux
2018-02-08 20:36:46 +01:00