mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-11-19 09:49:21 +01:00
change Disk-Shadow (looks better)
This commit is contained in:
parent
52fbd15569
commit
e42e38eca2
@ -52,7 +52,7 @@ void GuiDiskCover::Draw()
|
|||||||
return;
|
return;
|
||||||
float currScale = this->GetScale();
|
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_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);
|
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)
|
if(eff_step)
|
||||||
|
@ -1219,44 +1219,54 @@ int GameWindowPrompt()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
diskImg.SetImage(diskCover);
|
|
||||||
|
|
||||||
|
|
||||||
if (changed == 3){
|
if (changed == 3){
|
||||||
diskImg.SetBeta(180);
|
diskImg.SetImage(diskCover2);
|
||||||
|
diskImg.SetBeta(0);
|
||||||
diskImg.SetBetaRotateEffect(-90, 15);
|
diskImg.SetBetaRotateEffect(-90, 15);
|
||||||
diskImg2.SetImage(diskCover2);
|
diskImg2.SetImage(diskCover);
|
||||||
diskImg2.SetAngle(diskImg.GetAngle());
|
diskImg2.SetAngle(diskImg.GetAngle());
|
||||||
diskImg2.SetBeta(0);
|
diskImg2.SetBeta(180);
|
||||||
diskImg2.SetBetaRotateEffect(-90, 15);
|
diskImg2.SetBetaRotateEffect(-90, 15);
|
||||||
sizeTxt.SetEffect(EFFECT_FADE, -17);
|
sizeTxt.SetEffect(EFFECT_FADE, -17);
|
||||||
nameTxt.SetEffect(EFFECT_FADE, -17);
|
nameTxt.SetEffect(EFFECT_FADE, -17);
|
||||||
ResumeGui();
|
ResumeGui();
|
||||||
while(nameTxt.GetEffect() > 0 || diskImg.GetBetaRotateEffect()) usleep(50);
|
while(nameTxt.GetEffect() > 0 || diskImg.GetBetaRotateEffect()) usleep(50);
|
||||||
HaltGui();
|
HaltGui();
|
||||||
|
diskImg.SetImage(diskCover);
|
||||||
|
diskImg.SetBeta(90);
|
||||||
diskImg.SetBetaRotateEffect(-90, 15);
|
diskImg.SetBetaRotateEffect(-90, 15);
|
||||||
|
diskImg2.SetImage(diskCover2);
|
||||||
|
diskImg2.SetBeta(270);
|
||||||
diskImg2.SetBetaRotateEffect(-90, 15);
|
diskImg2.SetBetaRotateEffect(-90, 15);
|
||||||
sizeTxt.SetEffect(EFFECT_FADE, 17);
|
sizeTxt.SetEffect(EFFECT_FADE, 17);
|
||||||
nameTxt.SetEffect(EFFECT_FADE, 17);
|
nameTxt.SetEffect(EFFECT_FADE, 17);
|
||||||
}
|
}
|
||||||
else if (changed == 4){
|
else if (changed == 4){
|
||||||
diskImg.SetBeta(180);
|
diskImg.SetImage(diskCover2);
|
||||||
|
diskImg.SetBeta(0);
|
||||||
diskImg.SetBetaRotateEffect(90, 15);
|
diskImg.SetBetaRotateEffect(90, 15);
|
||||||
diskImg2.SetImage(diskCover2);
|
diskImg2.SetImage(diskCover);
|
||||||
diskImg2.SetAngle(diskImg.GetAngle());
|
diskImg2.SetAngle(diskImg.GetAngle());
|
||||||
diskImg2.SetBeta(0);
|
diskImg2.SetBeta(180);
|
||||||
diskImg2.SetBetaRotateEffect(90, 15);
|
diskImg2.SetBetaRotateEffect(90, 15);
|
||||||
sizeTxt.SetEffect(EFFECT_FADE, -17);
|
sizeTxt.SetEffect(EFFECT_FADE, -17);
|
||||||
nameTxt.SetEffect(EFFECT_FADE, -17);
|
nameTxt.SetEffect(EFFECT_FADE, -17);
|
||||||
ResumeGui();
|
ResumeGui();
|
||||||
while(nameTxt.GetEffect() > 0 || diskImg.GetBetaRotateEffect()) usleep(50);
|
while(nameTxt.GetEffect() > 0 || diskImg.GetBetaRotateEffect()) usleep(50);
|
||||||
HaltGui();
|
HaltGui();
|
||||||
|
diskImg.SetImage(diskCover);
|
||||||
|
diskImg.SetBeta(270);
|
||||||
diskImg.SetBetaRotateEffect(90, 15);
|
diskImg.SetBetaRotateEffect(90, 15);
|
||||||
|
diskImg2.SetImage(diskCover2);
|
||||||
|
diskImg2.SetBeta(90);
|
||||||
diskImg2.SetBetaRotateEffect(90, 15);
|
diskImg2.SetBetaRotateEffect(90, 15);
|
||||||
sizeTxt.SetEffect(EFFECT_FADE, 17);
|
sizeTxt.SetEffect(EFFECT_FADE, 17);
|
||||||
nameTxt.SetEffect(EFFECT_FADE, 17);
|
nameTxt.SetEffect(EFFECT_FADE, 17);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
diskImg.SetImage(diskCover);
|
||||||
sizeTxt.SetText(sizeText);
|
sizeTxt.SetText(sizeText);
|
||||||
nameTxt.SetText(gameName);
|
nameTxt.SetText(gameName);
|
||||||
char* pch;
|
char* pch;
|
||||||
|
@ -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_Begin(GX_QUADS, GX_VTXFMT0,4);
|
||||||
GX_Position3f32(-width, -height, 0);
|
GX_Position3f32(-width, -height, 0);
|
||||||
GX_Color4u8(0x60,0x60,0x60,alpha);
|
GX_Color4u8(0,0,0,alpha);
|
||||||
GX_TexCoord2f32(0, 0);
|
GX_TexCoord2f32(0, 0);
|
||||||
|
|
||||||
GX_Position3f32(width, -height, 0);
|
GX_Position3f32(width, -height, 0);
|
||||||
GX_Color4u8(0x60,0x60,0x60,alpha);
|
GX_Color4u8(0,0,0,alpha);
|
||||||
GX_TexCoord2f32(1, 0);
|
GX_TexCoord2f32(1, 0);
|
||||||
|
|
||||||
GX_Position3f32(width, height, 0);
|
GX_Position3f32(width, height, 0);
|
||||||
GX_Color4u8(0x60,0x60,0x60,alpha);
|
GX_Color4u8(0,0,0,alpha);
|
||||||
GX_TexCoord2f32(1, 1);
|
GX_TexCoord2f32(1, 1);
|
||||||
|
|
||||||
GX_Position3f32(-width, height, 0);
|
GX_Position3f32(-width, height, 0);
|
||||||
GX_Color4u8(0x60,0x60,0x60,alpha);
|
GX_Color4u8(0,0,0,alpha);
|
||||||
GX_TexCoord2f32(0, 1);
|
GX_TexCoord2f32(0, 1);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user