mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
* Set view context in the player HUD loop inside `ST_overlayDrawer()`. * The HUD code now gets all interpolated camera data from the view context instead of half-heartedly recreating it. * Move Lua HUDlib data to the view context system instead of an else ladder. * View roll support in HUD tracking, because the other changes made this trivial. * Remove old_viewrollangle as it is now redundant.
40 lines
1.2 KiB
C
40 lines
1.2 KiB
C
// SONIC ROBO BLAST 2 KART
|
|
//-----------------------------------------------------------------------------
|
|
// Copyright (C) 2018-2020 by Kart Krew
|
|
//
|
|
// This program is free software distributed under the
|
|
// terms of the GNU General Public License, version 2.
|
|
// See the 'LICENSE' file for more details.
|
|
//-----------------------------------------------------------------------------
|
|
/// \file k_hud.h
|
|
/// \brief HUD drawing functions exclusive to Kart
|
|
|
|
#include "doomtype.h"
|
|
#include "doomstat.h"
|
|
#include "hu_stuff.h"
|
|
|
|
#ifndef __K_HUD__
|
|
#define __K_HUD__
|
|
|
|
#define RINGANIM_NUMFRAMES 10
|
|
#define RINGANIM_DELAYMAX 5
|
|
|
|
void K_AdjustXYWithSnap(INT32 *x, INT32 *y, UINT32 options, INT32 dupx, INT32 dupy);
|
|
|
|
typedef struct trackingResult_s
|
|
{
|
|
fixed_t x, y;
|
|
fixed_t scale;
|
|
boolean onScreen;
|
|
} trackingResult_t;
|
|
|
|
void K_ObjectTracking(trackingResult_t *result, vector3_t *point, boolean reverse);
|
|
|
|
const char *K_GetItemPatch(UINT8 item, boolean tiny);
|
|
void K_LoadKartHUDGraphics(void);
|
|
void K_drawKartHUD(void);
|
|
void K_drawKartFreePlay(void);
|
|
void K_drawKartTimestamp(tic_t drawtime, INT32 TX, INT32 TY, INT16 emblemmap, UINT8 mode);
|
|
void K_DrawTabRankings(INT32 x, INT32 y, playersort_t *tab, INT32 scorelines, INT32 whiteplayer, INT32 hilicol);
|
|
|
|
#endif
|