mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-02-24 23:01:47 -05:00
vb should let it snow
This commit is contained in:
parent
a0fcd7ab32
commit
a8d29a2ae3
@ -98,7 +98,7 @@ extern "C" void CustomLogoTitle_Draw(TitleContext* titleContext, uint8_t logoToD
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Draw ice block around spinning N or ship.
|
// Draw ice block around spinning N or ship.
|
||||||
if (CVarGetInteger(CVAR_GENERAL("LetItSnow"), 0)) {
|
if (GameInteractor_Should(VB_DRAW_ICE_ON_LOGO, false)) {
|
||||||
f32 scale = 0.4f;
|
f32 scale = 0.4f;
|
||||||
|
|
||||||
gSPSegment(POLY_OPA_DISP++, 0x08,
|
gSPSegment(POLY_OPA_DISP++, 0x08,
|
||||||
@ -205,3 +205,12 @@ static RegisterShipInitFunc initFuncBootsequence(RegisterCustomLogoTitleBootsequ
|
|||||||
// Let it Snow
|
// Let it Snow
|
||||||
//
|
//
|
||||||
|
|
||||||
|
#define CVAR_LETITSNOW_NAME CVAR_GENERAL("LetItSnow")
|
||||||
|
#define CVAR_LETITSNOW_DEFAULT 0
|
||||||
|
#define CVAR_LETITSNOW_VALUE CVarGetInteger(CVAR_LETITSNOW_NAME, CVAR_LETITSNOW_DEFAULT)
|
||||||
|
|
||||||
|
void RegisterCustomLogoTitleLetItSnow() {
|
||||||
|
COND_VB_SHOULD(VB_DRAW_ICE_ON_LOGO, CVAR_LETITSNOW_VALUE != CVAR_LETITSNOW_DEFAULT, { *should = true; });
|
||||||
|
}
|
||||||
|
|
||||||
|
static RegisterShipInitFunc initFuncLetItSnow(RegisterCustomLogoTitleLetItSnow, { CVAR_LETITSNOW_NAME });
|
||||||
|
@ -64,6 +64,7 @@ typedef enum {
|
|||||||
} GITeleportDestinations;
|
} GITeleportDestinations;
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
|
VB_DRAW_ICE_ON_LOGO,
|
||||||
// Vanilla condition: gSaveContext.showTitleCard
|
// Vanilla condition: gSaveContext.showTitleCard
|
||||||
VB_SHOW_TITLE_CARD,
|
VB_SHOW_TITLE_CARD,
|
||||||
// Opt: *EnWonderTalk2
|
// Opt: *EnWonderTalk2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user