Add GUI toggle for Ganon blood color, also fix minor unrelated typos in ImGui (#411)
* Add GUI toggle for Ganon blood color * Move to new Restoration section * rm accidental line break * Simplify booleans
This commit is contained in:
@@ -1209,19 +1209,15 @@ void BossGanon_ShatterWindows(u8 windowShatterState) {
|
||||
}
|
||||
|
||||
void BossGanon_DeathAndTowerCutscene(BossGanon* this, GlobalContext* globalCtx) {
|
||||
const bool originalBlood = CVar_GetS32("gOriginalBlood", 1);
|
||||
static Color_RGBA8 bloodPrimColor = { 0, 120, 0, 255 };
|
||||
static Color_RGBA8 bloodEnvColor = { 0, 120, 0, 255 };
|
||||
|
||||
static Color_RGBA8 bloodPrimColor = { 120, 0, 0, 255 };
|
||||
static Color_RGBA8 bloodEnvColor = { 120, 0, 0, 255 };
|
||||
if(CVar_GetS32("gRedGanonBlood", 0)) {
|
||||
bloodPrimColor.r = 120;
|
||||
bloodPrimColor.g = 0;
|
||||
|
||||
if(!originalBlood) {
|
||||
bloodPrimColor.r = 0;
|
||||
bloodPrimColor.g = 120;
|
||||
bloodPrimColor.b = 0;
|
||||
|
||||
bloodEnvColor.r = 0;
|
||||
bloodEnvColor.g = 120;
|
||||
bloodEnvColor.b = 0;
|
||||
bloodEnvColor.r = 120;
|
||||
bloodEnvColor.g = 0;
|
||||
}
|
||||
|
||||
s16 i;
|
||||
|
||||
@@ -1456,6 +1456,17 @@ void func_80901020(BossGanon2* this, GlobalContext* globalCtx) {
|
||||
void func_8090109C(BossGanon2* this, GlobalContext* globalCtx) {
|
||||
u8 i;
|
||||
|
||||
static Color_RGBA8 sPrimColor = { 0, 120, 0, 255 };
|
||||
static Color_RGBA8 sEnvColor = { 0, 120, 0, 255 };
|
||||
|
||||
if(CVar_GetS32("gRedGanonBlood", 0)) {
|
||||
sPrimColor.r = 120;
|
||||
sPrimColor.g = 0;
|
||||
|
||||
sEnvColor.r = 120;
|
||||
sEnvColor.g = 0;
|
||||
}
|
||||
|
||||
for (i = 0; i < 70; i++) {
|
||||
Vec3f velocity;
|
||||
Vec3f accel;
|
||||
|
||||
@@ -238,10 +238,6 @@ static ColliderJntSphInit sJntSphInit2 = {
|
||||
sJntSphItemsInit2,
|
||||
};
|
||||
|
||||
static Color_RGBA8 sPrimColor = { 0, 120, 0, 255 };
|
||||
|
||||
static Color_RGBA8 sEnvColor = { 0, 120, 0, 255 };
|
||||
|
||||
static Vec3f D_8090702C[] = {
|
||||
{ 10.0f, -10.0f, 0.0f },
|
||||
{ 0.0f, 0.0f, -60.0f },
|
||||
|
||||
Reference in New Issue
Block a user