Commit Graph

1442 Commits

Author SHA1 Message Date
010c3c0b39 cDialog DRY recursive relative positioning code 2024-07-03 19:24:58 -06:00
f2b7372b15 make click sound handling DRY 2024-07-03 18:42:20 -06:00
c251fee834 Fix graphics flickering/stretching on Windows (#367)
* DRY, standardized window top offset
* handle_splash_events() handle multiple events per frame
* accurate windows menubar height for multiple rows
* Windows filter a resize event triggered by the menubar
* windows expand small window to fit menubar
* splash screens draw in view rect, not window rect
2024-06-27 08:40:34 -04:00
d6ae801203 fix #368 2024-06-24 21:47:14 -04:00
e74f1e1ca0 standardize cross-platform command line args for the editors 2024-06-12 22:38:50 -06:00
4fa4f0b92b remove args and windows logic from all set_up_apple_events 2024-06-12 22:38:31 -06:00
cb62505e8d reorder init calls to fix file loading 2024-06-12 15:35:54 -06:00
fa3d092dc9 check for ui initialization without game-only global var 2024-06-12 12:51:03 -06:00
a45b34ec42 all platforms load party from command line 2024-06-12 12:28:42 -06:00
8ddb99361d showError() use console when UI is not ready 2024-06-12 12:26:27 -06:00
4a7d145168 Fix win scons (#359)
* fix a link flag
* another hack to find weirdly named libraries
* Fix handling VCRedistInstall.exe
* add src folders to win-scons include paths
* use path.join
* more weird library suffixes
* fix old python syntax in an SConscript file
* find vcpkg libraries and headers
* add icon dir to windows include paths
* remove non-recursive os.listdir line
* remove bad lib paths
* tools build with env["bits"]
* hard-code vcvarsall.bat path, with a note
* pass in other lib paths
* fix syntax without trying to use f-strings
* more bundled libs on windows
* add bin folders for windows installation to find dlls
* fix CheckLib stuff
* test scons pass X86 correctly
* make 64-bit builds the default for scons
* add package flag for building installers
2024-06-12 13:52:19 -04:00
f8f5e05669 naively scale dialogs by ui scale 2024-05-30 21:01:31 -06:00
8af5a9e1ca Update and fix Mac CI builds
- GitHub discontinued Actions runners for macos-10 and macos-11, so we
  build cboe on macos-12 now
- The path to Xcode.app has changed
- mac scons build wanted a new include statement for vector
- hint scons to look for boost 1.85, not 1.58.
2024-05-29 19:39:03 -04:00
1bb0927ecb Update and fix Windows CI builds
- boost-spirit dependency needed to be installed
- Visual Studio wanted boost/filesystem.hpp included in more places
- a deprecated enum was removed from new versions of boost, so we use
  its replacement enum now
- vcpkg repository is now pinned to a commit where boost 1.84 libraries
  work smoothly, there should be no more surprises
- vcpkg dependencies now cache, so successive CI runs are dramatically
  faster
- for win-scons, we need to use 'call' in our batch script to source
  vcvarsall.bat
- I updated the includepath and libpath we pass to win-scons to match
  reality, but it still can't find any vcpkg libraries. This will need
  further sleuthing
2024-05-29 19:39:03 -04:00
c691b908a6 Only hide left/right buttons for empty vector 2023-02-04 18:54:07 -05:00
1bc7524ec2 Fix underground starter scenario town terrain 2023-02-02 23:30:48 -05:00
cf28d61035 Scenario editor initialize new town bounds/entrances 2023-02-02 23:30:40 -05:00
ca816995ba Make the XML printer output formatted XML again
This is mainly just to keep consistency with the old printer so that the output can be cleanly diffed without any difficulty
2023-01-30 20:05:11 -05:00
35050aedc7 Some minor special node fixes 2023-01-30 00:10:56 -05:00
1ac7132733 Add option for move items node to pull from containers 2023-01-30 00:10:56 -05:00
0bfa325060 Refine and fix up numeric response node 2023-01-30 00:10:56 -05:00
49ea9da713 Rearrange spell pattern code to enable switch statements to make use of missing case warnings 2023-01-30 00:08:31 -05:00
8a2cfbae7e Fix some issues rendering animated terrains in dialogs, and avoid a crash if a graphics sheet cannot be found 2023-01-30 00:07:25 -05:00
f2b438d5c5 const-correctness in location/rectangle 2023-01-29 23:37:34 -05:00
3c36338407 Fix crash when checking a dialog's format value 2023-01-29 19:39:51 -05:00
491a81fdda Fix Stealth and Firewalk icons being swapped 2023-01-29 19:39:13 -05:00
8f6450417b Remove double-swap of adventurer array 2023-01-28 22:05:36 -05:00
748f960b38 Disable [[fallthrough]] declarations 2023-01-28 22:05:14 -05:00
31d83c00f1 rename INFINITE to INFINITE_AMOUNT 2023-01-28 22:05:14 -05:00
1442e290a0 Specify overloads for visual studio 2023-01-28 22:05:14 -05:00
ed9a8b035a #include <bitset> so visual studio finds it 2023-01-28 22:05:14 -05:00
32f24b40d6 Update TinyXML 2023-01-26 01:41:39 -05:00
d5ea213edd Update swap functions to recommended ADL-friendly format 2023-01-25 23:09:13 -05:00
64c7e4a5a0 Replace C-style 2D arrays with nested std::array 2023-01-25 23:09:13 -05:00
1a0da3c4d7 Fix incorrect loop bound for traits 2023-01-24 20:28:47 -05:00
b03c34396d Split quest flags into two separate boolean values 2023-01-22 18:56:50 -05:00
b19356757d Small code simplification in dialogxml formatting system 2023-01-22 17:59:47 -05:00
2adbafd3dc Add missing getter cControl::getLabelCtrl 2023-01-22 17:58:29 -05:00
d3283e466d Add optional label to cControl::setTextToNum 2023-01-22 17:57:07 -05:00
47bf06c15b const-correctness in universe classes 2023-01-22 17:53:18 -05:00
346be973a6 Add override annotations on iLiving hierarchy 2023-01-22 17:32:31 -05:00
9931ef8ffe const-correctness in scenario classes 2023-01-22 17:25:16 -05:00
cd8f73344f Tiny cleanup, add a bounds check 2023-01-22 17:21:26 -05:00
a416368e0d const-correctness in dialogxml (dialogs) 2023-01-22 17:12:56 -05:00
455af36c81 const-correctness in dialogxml (widgets) 2023-01-22 17:04:32 -05:00
ALONSO Laurent
702fcec887 boat/horse: try to avoid drawing ghost vehicles... 2023-01-22 14:15:35 -05:00
17e89c9ecd Use deque instead of vector for cPopulation
This means that saved references to elements will be preserved if a new monster is added onto the end.

Thanks to @fosnola for noticing that this is an issue.
2023-01-22 14:07:26 -05:00
9d78fa09b3 Make sure we don't try to move off the map
Thanks to @fosnola for spotting this.
2023-01-22 14:07:26 -05:00
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