mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-08-21 13:53:49 -07:00
vb should let it snow
This commit is contained in:
parent
a0fcd7ab32
commit
a8d29a2ae3
2 changed files with 11 additions and 1 deletions
|
@ -98,7 +98,7 @@ extern "C" void CustomLogoTitle_Draw(TitleContext* titleContext, uint8_t logoToD
|
|||
}
|
||||
|
||||
// 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;
|
||||
|
||||
gSPSegment(POLY_OPA_DISP++, 0x08,
|
||||
|
@ -205,3 +205,12 @@ static RegisterShipInitFunc initFuncBootsequence(RegisterCustomLogoTitleBootsequ
|
|||
// 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;
|
||||
|
||||
typedef enum {
|
||||
VB_DRAW_ICE_ON_LOGO,
|
||||
// Vanilla condition: gSaveContext.showTitleCard
|
||||
VB_SHOW_TITLE_CARD,
|
||||
// Opt: *EnWonderTalk2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue