Commit graph

1605 commits

Author SHA1 Message Date
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
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
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
GenericHeroGuy
fd48ecd4ca Make the camera options work again 2025-06-09 23:26:56 +02:00
GenericHeroGuy
f14e5f2f56 Softcode server list page and sound options 2025-06-09 22:53:54 +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
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
8288eaf733 Port Saturn Tooltips 2025-06-04 21:35:24 -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
GenericHeroGuy
12dfdd2f11 Remove Pandora's Box and Emblem Hints 2025-06-03 19:16:12 +02:00
GenericHeroGuy
e680b12eac Remove character descriptions 2025-06-03 18:58:09 +02:00
GenericHeroGuy
308d2efb31 Deduplicate a bunch of routines 2025-06-03 18:48:35 +02:00
GenericHeroGuy
231b067af1 Pass argument for IT_CALL
and fix server list softlock
2025-06-03 17:01:25 +02:00
GenericHeroGuy
c3fe4fb71e Coordinates, arguments, tooltips, string buffers 2025-06-03 16:01:19 +02:00
NepDisk
989f01d644 Kill SF_HIGHRES 2025-05-31 09:23:36 -04:00
NepDisk
9cf5b4e79f Update stuff for new menu additions 2025-05-30 00:14:15 -04:00
NepDisk
df1da401b3 Server background in MS
Thanks luigibud
2025-05-27 15:11:18 -04:00
NepDisk
64e99e8c26 fix video menu coloring and add extra video modes 2025-05-21 10:43:31 -04:00
GenericHeroGuy
4d2dc53972 Fix warnings 2025-05-19 19:36:49 +02:00
GenericHeroGuy
4d3f43b8e4 Move skincolors definition from doomdef.h to info.h
Recompiling 80% of the codebase every time was getting on my nerves...
also clean up initialization a bit
2025-05-19 17:29:55 +02:00
GenericHeroGuy
360e7419e8 Merge branch 'blankart-dev' into infostuff 2025-05-19 15:23:51 +02:00
NepDisk
83312b6e26 Fix TA menu menucaps 2025-05-19 09:16:43 -04:00
NepDisk
bfa520f5a4 Add Menucaps to kartstats menu 2025-05-18 23:58:51 -04:00
NepDisk
05f1e18084 Large Menu commit
Ports 2.2's scrolling menu, port SRB2Kart Custom build Menucap cvar, register new menus
2025-05-18 23:55:03 -04:00
GenericHeroGuy
c3fe5e80ac Screw checking for nameofs being zero, just keep count of mobjs/states 2025-05-18 14:46:24 +02:00
GenericHeroGuy
e3f8019b84 And menus 2025-05-14 16:43:20 +02:00
NepDisk
8bf5180385 RA preset fixes 2025-04-13 06:53:47 -04:00
NepDisk
28a493dbc3 Tri map records pt.3: Finalize changes 2025-04-12 13:12:24 -04:00
NepDisk
807e95a011 Tri map records pt.2: prevent menu crashes 2025-04-12 09:38:17 -04:00
NepDisk
0ab033c497 Tri map records pt.1 2025-04-12 09:13:58 -04:00
NepDisk
e01b29ac09 Fix up some issues with TA mods commit
Thanks GHG for the help
2025-04-11 08:23:57 -04:00
NepDisk
9cd4294c21 TA support for extra game toggles 2025-04-10 19:53:44 -04:00
NepDisk
93d35d275d Minor fixes for menu and lua 2025-04-05 21:37:37 -04:00
GenericHeroGuy
c936c24d15 Replace mainwads with an enum
The mainwads check in G_SetGameModified is replaced by a modifiedgame check
in D_SRB2Main
2025-04-03 17:36:13 +02:00
NepDisk
f81c764057 Fix Splitscreen freecam
Based on fec0f13419 0b7a6ed7f5
2025-04-01 18:36:40 -04:00
NepDisk
911afb22a6 Move freecam state to camera_t
Based on fa89576f34 p1 still controls both cameras for now.
2025-04-01 13:57:27 -04:00
James R
c84d9f24fd P_DemoCameraMovement: don't let A button press from menu carry over to rise camera 2025-03-30 09:01:29 -04:00
James R
e0a191f4d5 Replace spectator movement with demo freecam 2025-03-30 08:55:40 -04:00
GenericHeroGuy
28eafd639e Fix D-pad inputs in menu from pads other than player 1's 2025-03-28 16:15:26 +01:00
GenericHeroGuy
dc791e494d Merge branch 'blankart-dev' into socmenus 2025-03-26 18:49:30 +01:00
GenericHeroGuy
3c3b509aa7 Remove M_MenuItemRange
I don't like else-if chains,
but I also don't like weird, unnecessary constraints
2025-03-26 00:11:08 +01:00
GenericHeroGuy
68a29ad0dc Don't use K&R syntax for messagebox routines which was removed in C23
Yup, that's not just a function declaration thing...
Starting to doubt if this is a net improvement
2025-03-25 23:33:33 +01:00