Commit graph

21564 commits

Author SHA1 Message Date
GenericHeroGuy
205d1401f6 Start reviving menupres stuff
I may or may not regret this
2025-06-17 00:53:42 +02:00
GenericHeroGuy
11b9cd993d Expanded styles (ITF_THIN2 and IT_RIGHT), rename CvarSlider to Slider 2025-06-16 21:11:14 +02:00
NepDisk
e340a7f1e6 Merge branch 'socmenus2' into viewserver2 2025-06-15 12:36:44 -04:00
GenericHeroGuy
955da518ca Replace TextHeader and TextWhite with styles 2025-06-15 18:06:52 +02:00
GenericHeroGuy
8ded7ad542 More styles, more softcoding, patches actually usable now! 2025-06-15 17:19:21 +02:00
NepDisk
d96c16b157 Fix skynum skyboxes being broken in clang due to undefined behaviour 2025-06-14 16:59:48 -04:00
NepDisk
38495d4449 Fix some clang warnings 2025-06-14 16:46:49 -04:00
NepDisk
e8bafe7fc5 Add kartdebugshrink and remove NOSHOWHELP from kart vars 2025-06-14 08:09:28 -04:00
NepDisk
1947eb6277 Remove GS_CONTINUING and GS_GAMEEND 2025-06-13 10:25:52 -04:00
Oni
3eff2ef292 Merge branch 'dont-rewrite-the-past' into 'master'
Don't rewrite the past if we might still need to send it

See merge request KartKrew/Kart!1333
2025-06-13 09:46:30 -04:00
toaster
30e63490cd Merge branch 'max-errors' into 'master'
CMakeLists.txt: add -fmax-errors=5 for GNU

See merge request KartKrew/Kart!1357
2025-06-13 09:42:05 -04:00
NepDisk
de5434ea23 Add support for using custom SDL2 mappings 2025-06-13 09:40:57 -04:00
James R
1553224270 D_SRB2Main: set music volume on init :) 2025-06-13 09:36:40 -04:00
Oni
3d475504e3 Merge branch 'reset-command' into 'master'
Add 'reset' command to reset a cvar to its default value

See merge request KartKrew/Kart!1382
2025-06-13 09:34:46 -04:00
GenericHeroGuy
e276709d0c A whole lot of refactoring and updates to cvars
cvar items now use their argument to specify the amount to add for each key
press, replacing IT_CV_INTEGERSTEP
cvar items are automatically displayed as strings if they don't have
PossibleValues, replacing IT_CV_STRING
2025-06-12 22:21:49 +02:00
NepDisk
614506381d Make Ring Burnout sound Only play for local players 2025-06-12 10:58:33 -04:00
GenericHeroGuy
f30ddcfad2 Three(!?) new methods for placing menu items
Relative: changes the coordinates relative to the current ones
Temporary relative: displaces the coordinates temporarily
Overlay: draws at absolute coordinates, no clipping

Along with custom cursor offsets and Item Styles(tm), this eliminates
M_DrawControl
2025-06-12 16:54:43 +02:00
NepDisk
6a122b0600 Implement ring spam nerf
Less impactful in vanilla + rings. With Chaining and Stacking on however this makes a big difference since it prevents you from having a large stack count forever if you can keep chugging rings
2025-06-11 19:02:06 -04:00
NepDisk
457527d77a GL renderer changes
Always draw the skybox to prevent it from randomly going black and remove deprecated polyskys define. Thaanks Alug for suggestion and assistance.
2025-06-11 13:40:11 -04:00
NepDisk
12c93988e6 Experiment: always stack rubberband boost 2025-06-11 00:39:15 -04:00
NepDisk
a306d117a8 Fix music going away on unfocus 2025-06-11 00:38:15 -04:00
NepDisk
b93a8215c8 Make bonuschars.kart an Iwad 2025-06-10 18:41:20 -04:00
NepDisk
64fd5b93ac raise skinlimit to 4096
Why not UINT16_MAX? Thats 22gb of allocation lmao
2025-06-10 15:38:11 -04:00
GenericHeroGuy
fd48ecd4ca Make the camera options work again 2025-06-09 23:26:56 +02:00
NepDisk
41e3d9b285 Fix broken MS menu 2025-06-09 17:05:50 -04:00
GenericHeroGuy
f14e5f2f56 Softcode server list page and sound options 2025-06-09 22:53:54 +02:00
NepDisk
7c712836f3 Refactor and rework viewserver
Thanks to the srb2 classic team and luigi budd for the original version
2025-06-09 15:43:40 -04:00
Alug
37ea829b2f fix the horrible ffloorclip clearing loops
if yall ever decide to get rid of the static screensize buffer, the compiler will just straight up never optimize those loops and it will turn some maps into absolute cache miss hell, using std::fill only cause it looks fancy lmao
2025-06-08 22:16:30 +02:00
Alug
cd3715bfaa fix portals not accounting for slopes (only for kartmaps)
fixes the last portal paths on ante station
2025-06-08 22:07:30 +02:00
Alug
e63f68e732 fix portal clipping being completely completely broken on kart maps
truly amazing
2025-06-08 22:01:41 +02:00
GenericHeroGuy
56edab2480 Remove a TON of special-case menu code
You can now combine submenu/cvar/call to allow for more complex behavior,
without the need for keyhandlers. All those dummy menuitems relying on
keyhandlers now use cvars, like everything else does.

Yes, several things are still hardcoded, but player setup no longer
needs its own miniature menu system :^)
2025-06-08 17:15:17 +02:00
GenericHeroGuy
acb2cb752e Factor out item drawing into a separate function 2025-06-07 22:47:08 +02:00
GenericHeroGuy
2252c16acb Rewritten scrolling and coordinate logic 2025-06-07 21:01:29 +02:00
GenericHeroGuy
d18ebe8827 The five-for-one menu drawing special! 2025-06-07 13:58:01 +02:00
Alug
1c5dc89b33 fix non papersprite clipping in R_ProjectSprite overflowing 2025-06-06 15:31:38 +02:00
Alug
7247768278 fix 2560x1440 resolution crashing 2025-06-06 15:12:11 +02:00
GenericHeroGuy
df30f44c35 nice job dumbass 2025-06-06 02:23:43 +02:00
GenericHeroGuy
e9d764eaa6 Move keyhandler from menuitems to menu (and clean up event handling)
Also make empty menus work
2025-06-06 02:16:21 +02:00
GenericHeroGuy
1a0285d193 Let keyhandlers pass through events
Hooray, keyhandlers no longer eat your entire keyboard!
2025-06-05 22:29:51 +02:00
GenericHeroGuy
e6dc870b2b Wire up and start using enterroutines 2025-06-05 19:47:08 +02:00
GenericHeroGuy
5a0a889cd1 Menu functions now return INT32
Just my best guess what everything should return. Doesn't matter right now
2025-06-05 19:47:08 +02:00
NepDisk
dcc8b1d868 Stop bots from moving when exiting properly. 2025-06-05 08:35:53 -04:00
NepDisk
8288eaf733 Port Saturn Tooltips 2025-06-04 21:35:24 -04:00
NepDisk
a47594d4be Make this code look less ass 2025-06-04 17:52:23 -04:00
GenericHeroGuy
a8b8510188 Menu flags rework
As I found out the hard way, shit's still hardcoded...
So now, hidden/grayed out/secret are completely separate flags rather than
being baked into the other status fields!
Lots of cleanup and refactoring along the way...

You can now change an item from a call to a submenu without segfaulting
due to hardcode messing with the flags :^)
Also, completely blank items now default to being non-interactible, much
more sensible than defaulting to call
2025-06-04 21:41:05 +02:00
NepDisk
656268f31d Merge pull request 'Port I_Video refactor' (#62) from ivideorefactor into blankart-dev
Reviewed-on: https://codeberg.org/NepDisk/blankart/pulls/62
2025-06-03 20:15:14 +02:00
NepDisk
6c10edcdb4 Fix OpenGL gif recording issues 2025-06-03 14:07:08 -04:00
NepDisk
c958ce87ca I_RegisterSysCommands so video cvars are registerd before menu init happens 2025-06-03 13:47:29 -04:00
NepDisk
d0d8236bad Fix waterpanel in deh_tables 2025-06-03 13:21:47 -04:00
GenericHeroGuy
12dfdd2f11 Remove Pandora's Box and Emblem Hints 2025-06-03 19:16:12 +02:00