From e42e38eca27adafb25b46b02d59dc5276469fdfa Mon Sep 17 00:00:00 2001 From: "ardi@ist-einmalig.de" Date: Wed, 20 May 2009 21:58:59 +0000 Subject: [PATCH] change Disk-Shadow (looks better) --- source/libwiigui/gui_diskcover.cpp | 2 +- source/menu.cpp | 26 ++++++++++++++++++-------- source/video.cpp | 8 ++++---- 3 files changed, 23 insertions(+), 13 deletions(-) diff --git a/source/libwiigui/gui_diskcover.cpp b/source/libwiigui/gui_diskcover.cpp index b803bc54..07dc5189 100644 --- a/source/libwiigui/gui_diskcover.cpp +++ b/source/libwiigui/gui_diskcover.cpp @@ -52,7 +52,7 @@ void GuiDiskCover::Draw() return; float currScale = this->GetScale(); // Menu_DrawDiskCoverShadow(this->GetLeft(), this->GetTop(), 190, width, height, 40, image, imageangle, deg_beta, widescreen ? currScale*0.8 : currScale, currScale, this->GetAlpha(), true); - Menu_DrawDiskCover(this->GetLeft(), this->GetTop(), 50, width, height, 55, image, imageangle, deg_beta, widescreen ? currScale*0.8 : currScale, currScale, 128, true); + Menu_DrawDiskCover(this->GetLeft(), this->GetTop(), 50, width, height, 55, image, imageangle, deg_beta, widescreen ? currScale*0.8 : currScale, currScale, 64, true); Menu_DrawDiskCover(this->GetLeft(), this->GetTop(), 50, width, height, 55, image, imageangle, deg_beta, widescreen ? currScale*0.8 : currScale, currScale, this->GetAlpha(), false); if(eff_step) diff --git a/source/menu.cpp b/source/menu.cpp index 9a5ad11a..9b143afb 100644 --- a/source/menu.cpp +++ b/source/menu.cpp @@ -1219,44 +1219,54 @@ int GameWindowPrompt() } } - diskImg.SetImage(diskCover); if (changed == 3){ - diskImg.SetBeta(180); + diskImg.SetImage(diskCover2); + diskImg.SetBeta(0); diskImg.SetBetaRotateEffect(-90, 15); - diskImg2.SetImage(diskCover2); + diskImg2.SetImage(diskCover); diskImg2.SetAngle(diskImg.GetAngle()); - diskImg2.SetBeta(0); + diskImg2.SetBeta(180); diskImg2.SetBetaRotateEffect(-90, 15); sizeTxt.SetEffect(EFFECT_FADE, -17); nameTxt.SetEffect(EFFECT_FADE, -17); ResumeGui(); while(nameTxt.GetEffect() > 0 || diskImg.GetBetaRotateEffect()) usleep(50); HaltGui(); + diskImg.SetImage(diskCover); + diskImg.SetBeta(90); diskImg.SetBetaRotateEffect(-90, 15); + diskImg2.SetImage(diskCover2); + diskImg2.SetBeta(270); diskImg2.SetBetaRotateEffect(-90, 15); sizeTxt.SetEffect(EFFECT_FADE, 17); nameTxt.SetEffect(EFFECT_FADE, 17); } else if (changed == 4){ - diskImg.SetBeta(180); + diskImg.SetImage(diskCover2); + diskImg.SetBeta(0); diskImg.SetBetaRotateEffect(90, 15); - diskImg2.SetImage(diskCover2); + diskImg2.SetImage(diskCover); diskImg2.SetAngle(diskImg.GetAngle()); - diskImg2.SetBeta(0); + diskImg2.SetBeta(180); diskImg2.SetBetaRotateEffect(90, 15); sizeTxt.SetEffect(EFFECT_FADE, -17); nameTxt.SetEffect(EFFECT_FADE, -17); ResumeGui(); while(nameTxt.GetEffect() > 0 || diskImg.GetBetaRotateEffect()) usleep(50); HaltGui(); + diskImg.SetImage(diskCover); + diskImg.SetBeta(270); diskImg.SetBetaRotateEffect(90, 15); + diskImg2.SetImage(diskCover2); + diskImg2.SetBeta(90); diskImg2.SetBetaRotateEffect(90, 15); sizeTxt.SetEffect(EFFECT_FADE, 17); nameTxt.SetEffect(EFFECT_FADE, 17); } - + else + diskImg.SetImage(diskCover); sizeTxt.SetText(sizeText); nameTxt.SetText(gameName); char* pch; diff --git a/source/video.cpp b/source/video.cpp index 0d7d7fd0..88f1ac21 100644 --- a/source/video.cpp +++ b/source/video.cpp @@ -378,19 +378,19 @@ void Menu_DrawDiskCover(f32 xpos, f32 ypos, f32 zpos, u16 width, u16 height, u16 { GX_Begin(GX_QUADS, GX_VTXFMT0,4); GX_Position3f32(-width, -height, 0); - GX_Color4u8(0x60,0x60,0x60,alpha); + GX_Color4u8(0,0,0,alpha); GX_TexCoord2f32(0, 0); GX_Position3f32(width, -height, 0); - GX_Color4u8(0x60,0x60,0x60,alpha); + GX_Color4u8(0,0,0,alpha); GX_TexCoord2f32(1, 0); GX_Position3f32(width, height, 0); - GX_Color4u8(0x60,0x60,0x60,alpha); + GX_Color4u8(0,0,0,alpha); GX_TexCoord2f32(1, 1); GX_Position3f32(-width, height, 0); - GX_Color4u8(0x60,0x60,0x60,alpha); + GX_Color4u8(0,0,0,alpha); GX_TexCoord2f32(0, 1); } else