Commit Graph

5541 Commits

Author SHA1 Message Date
Tamás Bálint Misius
1ffc2055ca Extend the BETA part of the intro text
So it now includes a warning about local saves and stamps made in a beta potentially being incompatible with older versions.
2022-12-29 12:57:49 +01:00
Tamás Bálint Misius
c5c9c046aa Fix an uninitialized variable warning
Not an issue in practice because that value is never used unless the accompanying isValid is true, but the compiler can't know that.
2022-12-29 08:46:35 +01:00
Tamás Bálint Misius
26eabca9de Tweak "Small 3" character (\uE032) in the font
This should make it easier to tell apart from Small 9.
2022-12-29 08:31:51 +01:00
jacob1
932f28bcd7 Fix property tool converting x / y values as temperatures 2022-12-28 22:57:03 -05:00
Tamás Bálint Misius
476be15e77 Get build.sh app constants from prepare.py v97.0.351b 2022-12-27 18:41:23 +01:00
jacob1
d318424038 Update readme date and version numbers 2022-12-27 12:08:47 -05:00
jacob1
f1cf0ade70 Merge pull request #847 from xphere07/temperaturescales
Add temperature scales option
2022-12-27 11:59:16 -05:00
jacob1
2a83d49979 Make CRMC immune to ACID, fixes #851 2022-12-27 11:48:15 -05:00
jacob1
d481bef647 Sent SessionKey in a few more places in Client.cpp 2022-12-27 11:47:57 -05:00
Tamás Bálint Misius
86b6084baf Vote editing 2022-12-27 17:42:15 +01:00
jacob1
b6cb6801df Use RenderTemperature method in OptionsView, always re-render it on defocus, and remove degree symbol 2022-12-27 11:33:44 -05:00
xphere07
fe67ec8550 Add temperature scales option
Make the PROP tool default to the current temperature scale
Make the PROP tool's temp suffixes work in the console(This is currently blocked by AnyType doing resource management wrong)

Signed-off-by: xphere07 <xphere07@outlook.com>
2022-12-27 22:07:52 +09:00
Tamás Bálint Misius
6b133aced6 Fix renderer table gradients
The unsigned type would overflow when it was asked to represent negative values.
2022-12-27 08:49:32 +01:00
Tamás Bálint Misius
4304bda6d1 Fix loading of "version 1" PSv saves
These are apparently the ones without sign data. Was broken by c31267b06f.
2022-12-27 07:10:12 +01:00
Tamás Bálint Misius
16df10bc39 Have the intro text hide the HUD completely
Including the right portion, which hadn't been hidden until now.
2022-12-25 22:43:34 +01:00
Tamás Bálint Misius
a3fe59a2c8 Silence a few libcurl warnings
About CURLOPT_PROTOCOLS and CURLOPT_REDIR_PROTOCOLS being deprecated in 7.85.0.
2022-12-25 11:16:54 +01:00
Tamás Bálint Misius
d3ab2e231e Merge data/ into resources/ 2022-12-25 11:13:46 +01:00
Tamás Bálint Misius
3e3ee8a722 Convert hmap data to gradients 2022-12-25 11:09:08 +01:00
Tamás Bálint Misius
bb6c371aa8 Convert images.cpp to actual images
Also remove some dead code.
2022-12-25 11:09:06 +01:00
Tamás Bálint Misius
6e9b9cd861 Use different app constants for betas and snapshots 2022-12-24 08:41:10 +01:00
Tamás Bálint Misius
762208356a Bump macos minimum version to 10.13, update tpt-libs
The version bump was made necessary by 7173650df9.
snapshot-251
2022-12-23 19:43:07 +01:00
Tamás Bálint Misius
7173650df9 Migrate AnyType to std::variant
AnyType did resource management wrong. Not that it's particularly nice now, but it's at least correct. There's a change I want to make later that was blocked by this.
2022-12-23 12:15:28 +01:00
Tamás Bálint Misius
50ef07c339 Add underline escape sequence to text renderer
This allows us to do underline the app name in the intro text correctly. More important than it used to be now that the app name can be changed.
2022-12-23 07:39:58 +01:00
jacob1
952c3a6975 Add sim.historyRestore and sim.historyForward 2022-12-22 22:05:05 -05:00
Cracker1000
81bd1fd9e7 Make GLAS strengthening reaction more controllable and not so arbitrary (#856) 2022-12-22 21:36:50 -05:00
jacob1
87ba01d018 Add discord link to intro text 2022-12-22 21:35:10 -05:00
jacob1
94406a4320 Fix "End of particles reached" not printing if manually simulating to particle 235008 2022-12-22 21:08:18 -05:00
Tamás Bálint Misius
543bd5f5c0 Add diff verb to fonttool.py 2022-12-22 18:44:05 +01:00
Tamás Bálint Misius
06802949ab Add Lua support for partial sim updates 2022-12-22 17:44:06 +01:00
Tamás Bálint Misius
ca93e69b19 UpdateParticles takes a range that is inclusive on both ends 2022-12-22 17:34:43 +01:00
jacob1
888e0f2065 Remove pmap hack in BOMB.cpp 2022-12-20 23:59:17 -05:00
CanGonenc
ed9d405742 FIRE.cpp: minor improvements on readibility (#872) 2022-12-20 20:39:10 -05:00
Tamás Bálint Misius
3be884513d Do macos packaging on ghactions 2022-12-20 08:25:48 +01:00
jacob1
1c459a7e1a Fix compilation with LUACONSOLE turned off 2022-12-19 22:45:08 -05:00
jacob1
63661a752c Add evt.beforesim and evt.aftersim for running code only when simulation advances
Only triggered when simulation is unpaused or simulating via subframe debugging. beforesim is the location where most vanilla sim handlers are run.
2022-12-19 22:31:21 -05:00
jacob1
299781bf13 Block solids from being created in detect wall in IsWallBlocking instead, fixes #881 2022-12-19 21:38:42 -05:00
jacob1
74adc9e4b2 Use bitmap in FloodParts to prevent infinite loops in unusual situations, fixes #882
"unusual situations" include all particle slots filling up
2022-12-19 21:38:42 -05:00
Tamás Bálint Misius
7768450e74 Fix document icons on windows
I was wrong in dd7178dbc8, we do need resource.h after all.
2022-12-19 20:51:54 +01:00
Tamás Bálint Misius
467049d4dd Ignore mod_id.txt if the mod ID is set in meson_options.txt
Fixes forward-incompatible behaviour introduced by 0ff08c276f. The idea is to have mod owners migrate from using mod_id.txt to using meson_options.txt, but if prepare.py unconditionally prefers the former, nobody can use the latter.
2022-12-19 20:08:47 +01:00
Tamás Bálint Misius
0ff08c276f Bring back mod_id.txt
Removed in 59f89f9a46, brought back to minimize discomfort downstream. prepare.py will still default to the mod_id in meson_options.txt if mod_id.txt is deleted though.
2022-12-19 15:42:47 +01:00
Tamás Bálint Misius
dd7178dbc8 Stop setting window icons on windows
Also fix font editor builds on windows and add more font editor builds to the ghactions workflow.

Funny, we don't really need resource.h anymore. The resource compiler does, but we don't.
2022-12-18 19:32:12 +01:00
Tamás Bálint Misius
7bfce3e4a8 Fix local browser offering to open broken saves
It wouldn't actually open them, it'd just exit back to the currently open save. It's better to tell the user the reason why the save is broken instead.
2022-12-18 15:32:45 +01:00
Tamás Bálint Misius
e5c88f154a Unify icons 2022-12-18 15:00:08 +01:00
Tamás Bálint Misius
9e2185c8a2 Keep thumbnails of SaveButtons with lazily loaded SaveFiles 2022-12-18 10:38:37 +01:00
Tamás Bálint Misius
5ae7755025 Fix the zoom window producing out of bounds coordinates
Also fixes sim.adjustCoords doing the same.
2022-12-18 09:05:55 +01:00
Tamás Bálint Misius
59f89f9a46 Let mods customize app constants
Mainly via meson_options.txt.
2022-12-17 19:45:01 +01:00
Tamás Bálint Misius
2140d6db4b Clean up the feature line a bit
Also fix the icon name in the desktop file not including the vendor string.
2022-12-17 13:07:07 +01:00
Tamás Bálint Misius
1beaebb928 Fix nullptr deref in SaveButtons without an associated SaveFile
I've seen the nullptr deref, but I don't see how it's possible at all. A condition for file->LazyUnload to be called is for SaveButton::wantsDraw to be false, but for that to happen, SaveButton::Tick has to be called after a call to SaveButton::Draw to reset it to false, and then *again* for it to see it being false on entry.

Whatever, the bug is genuinely there and is bad, and easy to fix, no need to figure out in what way it is bad exactly.
snapshot-250
2022-12-15 07:46:41 +01:00
Tamás Bálint Misius
2cd1f7bad3 Fix local browser handling large amounts saves badly
So instead of loading every save in sight and rendering the thumbnails for them too, SaveButtons will only do this when they are actually visible, and unload saves and thumbnails when they are not.

Also remove the "Rendering thumbnails" progress bar, which did absolutely nothing.
snapshot-249
2022-12-14 19:04:59 +01:00
Tamás Bálint Misius
54cd259a18 Fix PSv parsing
I took extra care to not mess up signedness in readOPS in ab600780d0, but apparently didn't do the same in readPSv.

Also fix a bound check that was broken since aac6b7258c. It's a good thing this was broken, because this allowed negative type values from broken signedness readPSv to get past and cause a crash later on, rather than just cause particles to disappear or something.
snapshot-248
2022-12-11 08:55:46 +01:00