Commit graph

527 commits

Author SHA1 Message Date
James R
3939966a7f Fix saycmd message buffer handling
- Properly bounds check say_pak
- Fix off-by-one read in Got_Saycmd
2024-05-20 16:42:31 -07:00
James R
bf381730bd Fix displayed delay number for HU_drawPing and HU_drawMiniPing 2024-04-30 16:09:49 -07:00
James R
8103bd21c1 HUD: fix delay indicator online
- As a bonus, the mindelay setting of other players is now
  visible to everyone
2024-04-27 15:44:43 -07:00
James R
64a4bcad34 HUD: fix alignment of delay indicator digits
- Tab
  - Fix alignment on right side of tab rankings
  - Fix alignment in milliseconds mode
- Fix packet loss indicator overlapping ms graphic
2024-04-27 04:18:37 -07:00
James R
1bf2b9a7db HUD: fix packet loss indicator offset for Brazil 2024-04-27 04:11:59 -07:00
toaster
4132e04dcf More airtight roundqueue check 2024-04-15 15:40:13 +01:00
toaster
4c9d1b7425 Tab rankings: Add behaviour for Round Star - show ??? instead of round number 2024-04-15 14:53:14 +01:00
Sally Coolatta
7dfa597c7d SRB2 -> DRRR copyright in src, acs, android folder
Be consistent with toaster's recent changes to copyright
2024-04-05 02:08:23 -04:00
James R
bed0e5b754 Fix packet loss indicator in non-green resolutions 2024-04-01 17:49:39 -07:00
Gunla
20d6dcda88 Merge branch 'discord-rp-update' into 'master'
Update Discord Rich Presence for Ring Racers

See merge request KartKrew/Kart!2155
2024-03-29 20:30:20 +00:00
James R
360bbf6552 Remove VHS filter
- It does not seem to be working and hasn't for a while.
- Was interfering with 3d rendering skipping.
2024-03-26 17:41:49 -07:00
Sally Coolatta
af6340741e Add speed to gametype
Set a specific gamespeed per gametype. KARTSPEED_AUTO for it to be decided by game settings.

Wanted this for a while, but also it makes game speed display logic for DRP very straightforward.
2024-03-22 16:58:36 -04:00
AJ Martinez
57e7a735ce drawPing: Remove packet loss debug condition 2024-03-18 18:43:19 -07:00
AJ Martinez
50aadee23e drawPing: Colored border packet loss indicator 2024-03-18 18:08:48 -07:00
AJ Martinez
3d4f201abd Include gamespeed / GP difficulty on the Pause menu 2024-03-17 02:23:37 -07:00
James R
d07291690d HUD: display "Finish" and "Best Lap" times underneath timer when watching Time Attack replays
- Replace replay tab screen
2024-03-07 12:09:43 -08:00
James R
c1cb76128c HUD: fix delay graphic offset on tab rankings
This shifts it down in the bottom right too but I actually
think it looks better!
2024-03-07 09:46:05 -08:00
James R
9a7af6c592 srb2::Draw: add fonts kRollingNum and kRollingNum4P 2024-03-04 01:42:29 -08:00
James R.
989305fb20 Merge branch 'move-up-menu-credit' into 'master'
Menus: move up music credit slightly

See merge request KartKrew/Kart!1941
2024-02-24 07:08:14 +00:00
James R
6bc6d0901c Menus: move up music credit slightly
This is so it doesn't obscure the Grand Prix cup trophies
(1 row).
2024-02-22 18:07:24 -08:00
Sally Coolatta
b4a8249b68 Display grading points on podium 2024-02-22 10:03:57 -05:00
James R
4ee00d4333 Pass const pointer to all netxcmd handlers
Ensure buffer data is read-only and not modified by
handler
2024-02-11 05:42:07 -08:00
James R
6d64d15216 Got_Saycmd: copy message content into intermediate buffer
This prevents modifying the original buffer at the cleanup
step as well as potentially writing out of bounds.
2024-02-11 05:38:12 -08:00
James R
d7e0a4d01a Add S_LoadSongCredit/S_UnloadSongCredit, refactor cursongcredit
- cursongcredit behaves the same as before
- Always compose song credit string
- g_realsongcredit always stores the song credit for the
  current music, even if no song credit is displayed on
  the HUD
2024-02-09 18:13:35 -08:00
Oni
bc80233f1f Merge branch 'vote-level-names' into 'master'
Vote level names

See merge request KartKrew/Kart!1873
2024-01-28 23:29:44 +00:00
Sally Coolatta
a7df7aa637 Add Medium Font
Monospaced in-between of Console & Thin
2024-01-27 20:38:52 -05:00
James R
3a8a7f3cf5 Add thin timer font 2024-01-22 16:42:30 -08:00
Oni
df5c866573 Merge branch 'map-access-flingerdinger' into 'master'
Stronger Course progression restriction

Closes #832, #859, and #839

See merge request KartKrew/Kart!1795
2024-01-09 08:11:12 +00:00
toaster
601b39378d Precache static level graphics 2024-01-06 23:17:45 +00:00
James R
2bfad76c1e Add HU_DoTitlecardCEchoForDuration; letter disappearing time scales by total cecho duration 2024-01-05 15:56:23 -08:00
AJ Martinez
15338c4e32 Packet loss indicator 2023-10-20 20:33:37 -07:00
James R
2e748636d7 Create V_CenteredTitleCardStringOffset
- V_TitleCardStringWidth no longer has the special case
  for punctuation, moved to this function instead.
- Handles both leading and trailing punctuation, and even
  spaces.

toaster-assisted, thank-you-toaster
2023-08-27 15:06:51 -07:00
toaster
908022c821 Fix overlapping Title CEcho text
If an admin title cecho is active, do not render individual viewport title cechos.

Some information is lost, but currently everything expressed through them is not unique while admin title cechos generally are, so they're a safe thing to sacrifice given limited screen space.
2023-08-26 21:44:51 +01:00
James R
baf7f82af3 HU_DoTitlecardCEcho: add splitscreen support and interrupt feature
- Takes player argument and only appears on the screen if
  they're a display player.
- Uses 4P font when in splitscreen.
- Uses 1P font if not in splitscreen, or player argument
  is NULL -- message to everyone.
- Interrupt argument controls whether the message should
  overwrite another message that's already playing.
  - Global and player specific messages are considered
    separately.
2023-08-26 21:39:18 +01:00
James R
4f60d046ba V_DrawTitleCardString, V_TitleCardStringWidth: add 4P font support 2023-08-26 21:39:18 +01:00
toaster
4d08f5e888 Move Song Credits down by 8 pixels to avoid overlap with top-region MOTD 2023-08-25 21:41:49 +01:00
toaster
c7f57614de Fix the accidential reduction in wordwrap width for New Chat messages 2023-07-12 09:00:30 +01:00
toaster
631336db39 "New" Chat (2018 onwards) has completely been moved to string drawer system
Has some minor kinks but Jartha wanted to take it over once I laid the groundwork so I'm not losing sleep over this
2023-07-12 09:00:30 +01:00
toaster
9e4e996a5e V_ScaledWordWrap API changes
- The function is back to producing zone-allocated memory copies, like its precursor V_WordWrap
    - The author of this commit got rid of that dependency originally because it seemed like a fair part of the API, and meant static buffers could be used in certain circumstances, but it was necessary to revert for the following change.
- Newlines can now be inserted mid-word, treating the width provided as ironclad except in the case of single characters wider than the region.
    - This will be necessary for future work with the in-game chat.
    - Reserves 8 characters at first, then Z_Reallocs double that every time it runs out.
2023-07-12 09:00:30 +01:00
toaster
c5dc430b50 V_6WIDTHSPACE no longer a pitfall for using V_DrawThinString
The bunched text behaviour is now the primary mode of operation for TINY_FONT.
2023-07-12 09:00:29 +01:00
toaster
277f7c51a3 V_ScaledWordWrap
Moves WordWrap to the font/V_GetFontSpecification system.

Much healthier long-term for our purposes, including the possibility of changing fonts for various contexts freely.
2023-07-12 09:00:29 +01:00
toaster
86784ae91a Add Menu Font (without using it anywhere)
Content of commit was originally written by Sal, but as a monolithic commit. The author of this commit is chunking it up for easier review.

Adds the additional font. This requires a little cleanup before we can use it as the primary menu font, but worth at least putting this in the relevant places for later.
2023-07-12 09:00:29 +01:00
toaster
a536f884ce V_ALLOWLOWERCASE --> V_FORCEUPPERCASE
Content of commit was originally written by Sal, but as a monolithic commit. The author of this commit is chunking it up for easier review.

Simple inversion on the face of things, but with a long tail of consequences, including 19 changed files.

Forced uppercase has been applied in a handful of locations where it was aesthetically imperative. Most menus will follow in another commit, so that that may be reverted if we change the default menu font.
2023-07-12 09:00:29 +01:00
toaster
8845f36a3d HU_DrawRankings: Adjust slightly
- Only show `Lap 0/Lap 1` if numlaps > 1, to match other circumstances where laps aren't real
- Only show player roundscore if gametype supports roundscore
- Otherwise accept a blank right side of the player bar in custom gametypes. (one day for Lua..?)
2023-05-22 15:32:07 +01:00
AJ Martinez
6184ba60c5 Fix chat messages being krangled on dedicated servers 2023-05-14 21:34:25 -07:00
toaster
de22fc8ff1 Merge branch 'master' of https://git.do.srb2.org/KartKrew/Kart into profile-restrictions
# Conflicts:
#	src/hu_stuff.c
#	src/y_inter.c
2023-05-12 13:42:50 +01:00
toaster
9ec6a6bbe0 HU_DrawRankings: Fix finish time (was using laps converted to seconds instead of realtime) 2023-05-12 00:02:51 +01:00
toaster
c9b438d50d Show Round Queue on Pause menu
Also includes secret support for widescreen.
I was planning to put this on tab rankings, which doesn't have borders.
Pause menu does, but it would be a waste to strip it back out again.
2023-05-11 22:44:09 +01:00
toaster
c1eb01c03d Ping for Y_PlayerStandingsDrawer
TODO: CPU indicator
2023-05-11 21:39:06 +01:00
toaster
36d8bce14d Replace K_DrawTabRankings with Y_PlayerStandingsDrawer
TODO: Ping, LAGLESS
2023-05-11 18:11:40 +01:00