From 34f9fb98863f5972588e6dccc8f8866096e19361 Mon Sep 17 00:00:00 2001 From: krm01 Date: Thu, 30 Mar 2023 02:57:26 -0700 Subject: [PATCH] [Doc] small, names for mayor dotour's eye and eyebrow textures (#1220) * some naming and tlut assignments to dt eye textures * update dotour overlays with new texture names * critical formatting fix --- assets/xml/objects/object_dt.xml | 16 ++++++++-------- .../actors/ovl_En_Ending_Hero/z_en_ending_hero.c | 16 ++++++++-------- .../ovl_En_Ending_Hero6/z_en_ending_hero6.c | 10 +++++----- 3 files changed, 21 insertions(+), 21 deletions(-) diff --git a/assets/xml/objects/object_dt.xml b/assets/xml/objects/object_dt.xml index f1e62d59a8..3acf0c4426 100644 --- a/assets/xml/objects/object_dt.xml +++ b/assets/xml/objects/object_dt.xml @@ -28,8 +28,8 @@ - - + + @@ -37,15 +37,15 @@ - + - - - + + + - - + + diff --git a/src/overlays/actors/ovl_En_Ending_Hero/z_en_ending_hero.c b/src/overlays/actors/ovl_En_Ending_Hero/z_en_ending_hero.c index 6cdf54d701..1786380ac2 100644 --- a/src/overlays/actors/ovl_En_Ending_Hero/z_en_ending_hero.c +++ b/src/overlays/actors/ovl_En_Ending_Hero/z_en_ending_hero.c @@ -71,13 +71,13 @@ void EnEndingHero_Update(Actor* thisx, PlayState* play) { Actor_UpdateBgCheckInfo(play, &this->actor, 20.0f, 20.0f, 50.0f, 0x1D); } -static TexturePtr D_80C1E970[] = { - object_dt_Tex_007350, object_dt_Tex_009590, object_dt_Tex_009F90, object_dt_Tex_00A790, object_dt_Tex_00AB90, +static TexturePtr sEyeTextures[] = { + gDotourEyeShockTex, gDotourEyeOpenTex, gDotourEyeClosedTex, gDotourEyeLookDownTex, gDotourEyeSquintTex, }; -static TexturePtr D_80C1E984[] = { - object_dt_Tex_007750, - object_dt_Tex_00A390, - object_dt_Tex_00A490, +static TexturePtr sEyebrowTextures[] = { + gDotourEyebrowHighTex, + gDotourEyebrowMidTex, + gDotourEyebrowLowTex, }; void EnEndingHero_Draw(Actor* thisx, PlayState* play) { @@ -88,13 +88,13 @@ void EnEndingHero_Draw(Actor* thisx, PlayState* play) { func_8012C28C(play->state.gfxCtx); func_8012C2DC(play->state.gfxCtx); - gSPSegment(POLY_OPA_DISP++, 0x08, Lib_SegmentedToVirtual(D_80C1E970[this->unk242])); + gSPSegment(POLY_OPA_DISP++, 0x08, Lib_SegmentedToVirtual(sEyeTextures[this->unk242])); if (this->unk242 < 3) { index = this->unk242; } - gSPSegment(POLY_OPA_DISP++, 0x09, Lib_SegmentedToVirtual(D_80C1E984[index])); + gSPSegment(POLY_OPA_DISP++, 0x09, Lib_SegmentedToVirtual(sEyebrowTextures[index])); SkelAnime_DrawFlexOpa(play, this->skelAnime.skeleton, this->skelAnime.jointTable, this->skelAnime.dListCount, NULL, NULL, &this->actor); diff --git a/src/overlays/actors/ovl_En_Ending_Hero6/z_en_ending_hero6.c b/src/overlays/actors/ovl_En_Ending_Hero6/z_en_ending_hero6.c index 8f19fe9f8c..06f973265c 100644 --- a/src/overlays/actors/ovl_En_Ending_Hero6/z_en_ending_hero6.c +++ b/src/overlays/actors/ovl_En_Ending_Hero6/z_en_ending_hero6.c @@ -121,9 +121,9 @@ void EnEndingHero6_PostLimbDraw(PlayState* play, s32 limbIndex, Gfx** dList, Vec } void EnEndingHero6_Draw(Actor* thisx, PlayState* play) { - static TexturePtr D_80C24280[] = { object_dt_Tex_007350, object_dt_Tex_009590, object_dt_Tex_009F90, - object_dt_Tex_00A790, object_dt_Tex_00AB90 }; - static TexturePtr D_80C24294[] = { object_dt_Tex_007750, object_dt_Tex_00A390, object_dt_Tex_00A490 }; + static TexturePtr sEyeTextures[] = { gDotourEyeShockTex, gDotourEyeOpenTex, gDotourEyeClosedTex, + gDotourEyeLookDownTex, gDotourEyeSquintTex }; + static TexturePtr sEyebrowTextures[] = { gDotourEyebrowHighTex, gDotourEyebrowMidTex, gDotourEyebrowLowTex }; s32 pad; EnEndingHero6* this = THIS; s32 index = 0; @@ -156,13 +156,13 @@ void EnEndingHero6_Draw(Actor* thisx, PlayState* play) { } if (this->npcIndex == 0) { - gSPSegment(POLY_OPA_DISP++, 0x08, Lib_SegmentedToVirtual(D_80C24280[this->eyeState])); + gSPSegment(POLY_OPA_DISP++, 0x08, Lib_SegmentedToVirtual(sEyeTextures[this->eyeState])); if (this->eyeState < 3) { index = this->eyeState; } - gSPSegment(POLY_OPA_DISP++, 0x09, Lib_SegmentedToVirtual(D_80C24294[index])); + gSPSegment(POLY_OPA_DISP++, 0x09, Lib_SegmentedToVirtual(sEyebrowTextures[index])); } SkelAnime_DrawFlexOpa(play, this->skelAnime.skeleton, this->skelAnime.jointTable,