2014-03-15 16:59:03 +00:00
|
|
|
// SONIC ROBO BLAST 2
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// Copyright (C) 1993-1996 by id Software, Inc.
|
|
|
|
// Copyright (C) 1998-2000 by DooM Legacy Team.
|
2018-11-25 12:35:38 +00:00
|
|
|
// Copyright (C) 1999-2018 by Sonic Team Junior.
|
2014-03-15 16:59:03 +00:00
|
|
|
//
|
|
|
|
// 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 st_stuff.h
|
|
|
|
/// \brief Status bar header
|
|
|
|
|
|
|
|
#ifndef __STSTUFF_H__
|
|
|
|
#define __STSTUFF_H__
|
|
|
|
|
|
|
|
#include "doomtype.h"
|
|
|
|
#include "d_event.h"
|
|
|
|
#include "d_player.h"
|
|
|
|
#include "r_defs.h"
|
|
|
|
|
|
|
|
//
|
|
|
|
// STATUS BAR
|
|
|
|
//
|
|
|
|
|
|
|
|
// Called by main loop.
|
2018-07-07 15:52:01 +00:00
|
|
|
void ST_Ticker(void);
|
2014-03-15 16:59:03 +00:00
|
|
|
|
2019-03-25 03:40:52 +00:00
|
|
|
// Called when naming a replay.
|
|
|
|
void ST_DrawDemoTitleEntry(void);
|
|
|
|
|
2014-03-15 16:59:03 +00:00
|
|
|
// Called by main loop.
|
2016-04-07 01:01:01 +00:00
|
|
|
void ST_Drawer(void);
|
2014-03-15 16:59:03 +00:00
|
|
|
|
|
|
|
// Called when the console player is spawned on each level.
|
|
|
|
void ST_Start(void);
|
|
|
|
|
|
|
|
// Called by startup code.
|
|
|
|
void ST_Init(void);
|
|
|
|
|
|
|
|
// Called by G_Responder() when pressing F12 while viewing a demo.
|
|
|
|
void ST_changeDemoView(void);
|
|
|
|
|
|
|
|
void ST_UnloadGraphics(void);
|
|
|
|
void ST_LoadGraphics(void);
|
|
|
|
|
|
|
|
// face load graphics, called when skin changes
|
Stupidbad-big commit, but PLEASE don't ask me to re-do this on another branch, I swear to god. I know it makes things more difficult on you, and I'm sorry for that, but I'm definitely feeling the goddamn crunch right now and I wanna take a step back from this spaghetti nightmare and clear my head.
* Do that thing where the character icons are ALWAYS 1x sized, through having two seperate lumps.
* Revamp the S_SKIN parameters to be `facerank` (rankings - equivalent of half-scale old face), `facewant` (WANTED - equivalent of old face), and `facemmap` (equivalent of old iconprefix).
* Do that thing Oni wanted where it shows two postions above and two positions below your current ranking (and you) to the left of the screen, instead of always the top 4, with some limits to avoid drawing outside of everything.
* Replace the last few shitty Mario numbers (for the left rankings) with cool, new Oni numbers.
* Change a bunch of offsets and things so the tab rankings and the intermission work nicer with 9+ players.
2018-10-28 16:27:55 +00:00
|
|
|
void ST_LoadFaceGraphics(char *rankstr, char *wantstr, char *mmapstr, INT32 playernum);
|
2014-03-15 16:59:03 +00:00
|
|
|
void ST_ReloadSkinFaceGraphics(void);
|
|
|
|
#ifdef DELFILE
|
|
|
|
void ST_UnLoadFaceGraphics(INT32 skinnum);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
void ST_doPaletteStuff(void);
|
|
|
|
|
|
|
|
// return if player a is in the same team as player b
|
|
|
|
boolean ST_SameTeam(player_t *a, player_t *b);
|
|
|
|
|
|
|
|
//--------------------
|
|
|
|
// status bar overlay
|
|
|
|
//--------------------
|
|
|
|
|
|
|
|
extern boolean st_overlay; // sb overlay on or off when fullscreen
|
2019-01-02 03:41:52 +00:00
|
|
|
extern INT32 st_palette; // 0 is default, any others are special palettes.
|
2014-03-15 16:59:03 +00:00
|
|
|
|
|
|
|
extern lumpnum_t st_borderpatchnum;
|
|
|
|
// patches, also used in intermission
|
|
|
|
extern patch_t *tallnum[10];
|
|
|
|
extern patch_t *sboscore;
|
|
|
|
extern patch_t *sbotime;
|
|
|
|
extern patch_t *sbocolon;
|
2014-03-25 02:17:59 +00:00
|
|
|
extern patch_t *sboperiod;
|
Stupidbad-big commit, but PLEASE don't ask me to re-do this on another branch, I swear to god. I know it makes things more difficult on you, and I'm sorry for that, but I'm definitely feeling the goddamn crunch right now and I wanna take a step back from this spaghetti nightmare and clear my head.
* Do that thing where the character icons are ALWAYS 1x sized, through having two seperate lumps.
* Revamp the S_SKIN parameters to be `facerank` (rankings - equivalent of half-scale old face), `facewant` (WANTED - equivalent of old face), and `facemmap` (equivalent of old iconprefix).
* Do that thing Oni wanted where it shows two postions above and two positions below your current ranking (and you) to the left of the screen, instead of always the top 4, with some limits to avoid drawing outside of everything.
* Replace the last few shitty Mario numbers (for the left rankings) with cool, new Oni numbers.
* Change a bunch of offsets and things so the tab rankings and the intermission work nicer with 9+ players.
2018-10-28 16:27:55 +00:00
|
|
|
extern patch_t *facerankprefix[MAXSKINS]; // ranking
|
|
|
|
extern patch_t *facewantprefix[MAXSKINS]; // wanted
|
|
|
|
extern patch_t *facemmapprefix[MAXSKINS]; // minimap
|
2014-03-15 16:59:03 +00:00
|
|
|
extern patch_t *livesback;
|
|
|
|
extern patch_t *ngradeletters[7];
|
|
|
|
|
|
|
|
/** HUD location information (don't move this comment)
|
|
|
|
*/
|
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
INT32 x, y;
|
|
|
|
} hudinfo_t;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
HUD_LIVESNAME,
|
|
|
|
HUD_LIVESPIC,
|
|
|
|
HUD_LIVESNUM,
|
|
|
|
HUD_LIVESX,
|
2014-03-21 18:42:55 +00:00
|
|
|
|
2014-03-15 16:59:03 +00:00
|
|
|
HUD_RINGS,
|
2014-03-21 18:42:55 +00:00
|
|
|
HUD_RINGSSPLIT,
|
2014-03-15 16:59:03 +00:00
|
|
|
HUD_RINGSNUM,
|
2014-03-21 18:42:55 +00:00
|
|
|
HUD_RINGSNUMSPLIT,
|
|
|
|
|
2014-03-15 16:59:03 +00:00
|
|
|
HUD_SCORE,
|
|
|
|
HUD_SCORENUM,
|
2014-03-21 18:42:55 +00:00
|
|
|
|
|
|
|
HUD_TIME,
|
2014-03-15 16:59:03 +00:00
|
|
|
HUD_TIMESPLIT,
|
2014-03-21 18:42:55 +00:00
|
|
|
HUD_MINUTES,
|
2014-03-15 16:59:03 +00:00
|
|
|
HUD_MINUTESSPLIT,
|
2014-03-21 18:42:55 +00:00
|
|
|
HUD_TIMECOLON,
|
2014-03-15 16:59:03 +00:00
|
|
|
HUD_TIMECOLONSPLIT,
|
|
|
|
HUD_SECONDS,
|
2014-03-21 18:42:55 +00:00
|
|
|
HUD_SECONDSSPLIT,
|
2014-03-15 16:59:03 +00:00
|
|
|
HUD_TIMETICCOLON,
|
2014-03-21 18:42:55 +00:00
|
|
|
HUD_TICS,
|
|
|
|
|
2014-03-15 16:59:03 +00:00
|
|
|
HUD_SS_TOTALRINGS,
|
2014-03-21 18:42:55 +00:00
|
|
|
HUD_SS_TOTALRINGS_SPLIT,
|
|
|
|
|
2014-03-15 16:59:03 +00:00
|
|
|
HUD_GETRINGS,
|
|
|
|
HUD_GETRINGSNUM,
|
|
|
|
HUD_TIMELEFT,
|
|
|
|
HUD_TIMELEFTNUM,
|
|
|
|
HUD_TIMEUP,
|
|
|
|
HUD_HUNTPICS,
|
|
|
|
HUD_GRAVBOOTSICO,
|
|
|
|
HUD_LAP,
|
|
|
|
|
|
|
|
NUMHUDITEMS
|
|
|
|
} hudnum_t;
|
|
|
|
|
|
|
|
extern hudinfo_t hudinfo[NUMHUDITEMS];
|
|
|
|
|
|
|
|
extern UINT16 objectsdrawn;
|
|
|
|
|
|
|
|
#endif
|