Cosmetics Editor entry for Ivan the Fairy (#3718)
* First commit * Reverted MODDING.md Reverted a correction to MODDING.md (case-sensitive broken link?) as this is not a change related to this PR * Delete CMakeSettings.json Deleted CMakeSettings.json as this is not a change related to this PR. * checks for cosmetic changes ONCE for both body and sparles Please review carefully. I made these changes blindly as I figure out why I can't compile it in my machine anymore. Sorry! * correctly updates OUTER color when it's changed in Cosmetics Editor * Update soh/soh/Enhancements/cosmetics/CosmeticsEditor.cpp * Update soh/soh/Enhancements/cosmetics/CosmeticsEditor.cpp * Update soh/soh/Enhancements/cosmetics/CosmeticsEditor.cpp * Update soh/soh/Enhancements/cosmetics/CosmeticsEditor.cpp * Update soh/soh/Enhancements/cosmetics/CosmeticsEditor.cpp * Update soh/src/overlays/actors/ovl_En_Partner/z_en_partner.c * Update soh/src/overlays/actors/ovl_En_Partner/z_en_partner.c * Update soh/src/overlays/actors/ovl_En_Partner/z_en_partner.c Co-authored-by: briaguya <70942617+briaguya-ai@users.noreply.github.com> * Update soh/src/overlays/actors/ovl_En_Partner/z_en_partner.c Co-authored-by: briaguya <70942617+briaguya-ai@users.noreply.github.com> * Update soh/src/overlays/actors/ovl_En_Partner/z_en_partner.c Co-authored-by: briaguya <70942617+briaguya-ai@users.noreply.github.com> * Update soh/src/overlays/actors/ovl_En_Partner/z_en_partner.c Co-authored-by: briaguya <70942617+briaguya-ai@users.noreply.github.com> * Update soh/src/overlays/actors/ovl_En_Partner/z_en_partner.c --------- Co-authored-by: Garrett Cox <garrettjcox@gmail.com> Co-authored-by: briaguya <70942617+briaguya-ai@users.noreply.github.com>
This commit is contained in:
@@ -745,6 +745,28 @@ void EnPartner_Update(Actor* thisx, PlayState* play) {
|
||||
CollisionCheck_SetOC(play, &play->colChkCtx, &this->collider.base);
|
||||
}
|
||||
|
||||
if (CVarGetInteger("gCosmetics.Ivan_IdlePrimary.Changed", 0)) {
|
||||
Color_RGB8 ivanColor1 = CVarGetColor24("gCosmetics.Ivan_IdlePrimary.Value", (Color_RGB8){ 255, 255, 255 });
|
||||
this->innerColor.r = ivanColor1.r;
|
||||
this->innerColor.g = ivanColor1.g;
|
||||
this->innerColor.b = ivanColor1.b;
|
||||
} else {
|
||||
this->innerColor.r = 255;
|
||||
this->innerColor.g = 255;
|
||||
this->innerColor.b = 255;
|
||||
}
|
||||
|
||||
if (CVarGetInteger("gCosmetics.Ivan_IdleSecondary.Changed", 0)) {
|
||||
Color_RGB8 ivanColor2 = CVarGetColor24("gCosmetics.Ivan_IdleSecondary.Value", (Color_RGB8){ 0, 255, 0 });
|
||||
this->outerColor.r = ivanColor2.r;
|
||||
this->outerColor.g = ivanColor2.g;
|
||||
this->outerColor.b = ivanColor2.b;
|
||||
} else {
|
||||
this->outerColor.r = 0;
|
||||
this->outerColor.g = 255;
|
||||
this->outerColor.b = 0;
|
||||
}
|
||||
|
||||
SkelAnime_Update(&this->skelAnime);
|
||||
|
||||
EnPartner_UpdateLights(this, play);
|
||||
|
||||
Reference in New Issue
Block a user