mirror of
https://github.com/wiidev/usbloadergx.git
synced 2025-02-16 19:39:14 +01:00
*more fixes
*quick and ugly widescreen text fix which needs to be changed later
This commit is contained in:
parent
0c7ac826c3
commit
06e5f81c3a
@ -150,9 +150,9 @@ void FreeTypeGX::InitFreeType(uint8_t* fontBuffer, FT_Long bufferSize, bool load
|
|||||||
ftSlot = ftFace->glyph;
|
ftSlot = ftFace->glyph;
|
||||||
}
|
}
|
||||||
|
|
||||||
void FreeTypeGX::ChangeFontSize(FT_UInt pixelSize)
|
void FreeTypeGX::ChangeFontSize(FT_UInt pixelSize, FT_UInt pixelSizeHorz)
|
||||||
{
|
{
|
||||||
FT_Set_Pixel_Sizes(ftFace, 0, pixelSize);
|
FT_Set_Pixel_Sizes(ftFace, pixelSizeHorz, pixelSize);
|
||||||
}
|
}
|
||||||
|
|
||||||
uint8_t FreeTypeGX::GetMaxCharWidth()
|
uint8_t FreeTypeGX::GetMaxCharWidth()
|
||||||
|
@ -286,7 +286,7 @@ class FreeTypeGX {
|
|||||||
~FreeTypeGX();
|
~FreeTypeGX();
|
||||||
|
|
||||||
void InitFreeType(uint8_t* fontBuffer, FT_Long bufferSize, bool loadcustomfont);
|
void InitFreeType(uint8_t* fontBuffer, FT_Long bufferSize, bool loadcustomfont);
|
||||||
void ChangeFontSize(FT_UInt pixelSize);
|
void ChangeFontSize(FT_UInt pixelSize, FT_UInt pixelSizeHorz = 0);
|
||||||
uint8_t GetMaxCharWidth();
|
uint8_t GetMaxCharWidth();
|
||||||
|
|
||||||
void setVertexFormat(uint8_t vertexIndex);
|
void setVertexFormat(uint8_t vertexIndex);
|
||||||
|
@ -150,7 +150,7 @@ int MenuHomebrewBrowse() {
|
|||||||
backBtnTxt.SetMaxWidth(btnOutline.GetWidth()-30);
|
backBtnTxt.SetMaxWidth(btnOutline.GetWidth()-30);
|
||||||
GuiImage backBtnImg(&btnOutline);
|
GuiImage backBtnImg(&btnOutline);
|
||||||
if (Settings.wsprompt == yes) {
|
if (Settings.wsprompt == yes) {
|
||||||
//backBtnTxt.SetWidescreen(CFG.widescreen);
|
backBtnTxt.SetWidescreen(CFG.widescreen);
|
||||||
backBtnImg.SetWidescreen(CFG.widescreen);
|
backBtnImg.SetWidescreen(CFG.widescreen);
|
||||||
}
|
}
|
||||||
GuiButton backBtn(&backBtnImg,&backBtnImg, 2, 3, -180, 400, &trigA, &btnSoundOver, &btnClick,1);
|
GuiButton backBtn(&backBtnImg,&backBtnImg, 2, 3, -180, 400, &trigA, &btnSoundOver, &btnClick,1);
|
||||||
|
@ -760,6 +760,8 @@ class GuiText : public GuiElement
|
|||||||
//!\param font bufferblock
|
//!\param font bufferblock
|
||||||
//!\param font filesize
|
//!\param font filesize
|
||||||
bool SetFont(const u8 *font, const u32 filesize);
|
bool SetFont(const u8 *font, const u32 filesize);
|
||||||
|
//!SetWidescreen
|
||||||
|
void SetWidescreen(bool w);
|
||||||
//!Constantly called to draw the text
|
//!Constantly called to draw the text
|
||||||
void Draw();
|
void Draw();
|
||||||
protected:
|
protected:
|
||||||
|
@ -38,7 +38,7 @@ GuiText::GuiText(const char * t, int s, GXColor c)
|
|||||||
firstLine = 0;
|
firstLine = 0;
|
||||||
linestodraw = 8;
|
linestodraw = 8;
|
||||||
totalLines = 0;
|
totalLines = 0;
|
||||||
widescreen = 0; //added
|
widescreen = false; //added
|
||||||
LineBreak = NULL;
|
LineBreak = NULL;
|
||||||
textDyn = NULL;
|
textDyn = NULL;
|
||||||
font = NULL;
|
font = NULL;
|
||||||
@ -85,7 +85,7 @@ GuiText::GuiText(const char * t)
|
|||||||
firstLine = 0;
|
firstLine = 0;
|
||||||
linestodraw = 8;
|
linestodraw = 8;
|
||||||
totalLines = 0;
|
totalLines = 0;
|
||||||
widescreen = 0; //added
|
widescreen = false; //added
|
||||||
LineBreak = NULL;
|
LineBreak = NULL;
|
||||||
textDyn = NULL;
|
textDyn = NULL;
|
||||||
font = NULL;
|
font = NULL;
|
||||||
@ -211,7 +211,11 @@ void GuiText::SetText(const wchar_t * t)
|
|||||||
{
|
{
|
||||||
int len = wcslen(t);
|
int len = wcslen(t);
|
||||||
text = new wchar_t[len+1];
|
text = new wchar_t[len+1];
|
||||||
if(text) wcscpy(text, t);
|
if(text)
|
||||||
|
{
|
||||||
|
wcscpy(text, t);
|
||||||
|
textWidth = fontSystem[currentSize]->getWidth(text);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -465,6 +469,12 @@ bool GuiText::SetFont(const u8 *fontbuffer, const u32 filesize)
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void GuiText::SetWidescreen(bool w)
|
||||||
|
{
|
||||||
|
LOCK(this);
|
||||||
|
widescreen = w;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Draw the text on screen
|
* Draw the text on screen
|
||||||
*/
|
*/
|
||||||
@ -498,6 +508,9 @@ void GuiText::Draw()
|
|||||||
currentSize = newSize;
|
currentSize = newSize;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(widescreen)
|
||||||
|
(font ? font : fontSystem[currentSize])->ChangeFontSize(currentSize, currentSize*0.8);
|
||||||
|
|
||||||
if(maxWidth > 0 && maxWidth <= textWidth)
|
if(maxWidth > 0 && maxWidth <= textWidth)
|
||||||
{
|
{
|
||||||
if(wrapMode == LONGTEXT) // text wrapping
|
if(wrapMode == LONGTEXT) // text wrapping
|
||||||
@ -711,4 +724,7 @@ void GuiText::Draw()
|
|||||||
(font ? font : fontSystem[currentSize])->drawText(this->GetLeft(), this->GetTop(), text, c, style);
|
(font ? font : fontSystem[currentSize])->drawText(this->GetLeft(), this->GetTop(), text, c, style);
|
||||||
}
|
}
|
||||||
this->UpdateEffects();
|
this->UpdateEffects();
|
||||||
|
|
||||||
|
if(widescreen)
|
||||||
|
(font ? font : fontSystem[currentSize])->ChangeFontSize(currentSize, 0);
|
||||||
}
|
}
|
||||||
|
@ -173,7 +173,7 @@ int DiscBrowse(struct discHdr * header) {
|
|||||||
cancelBtnTxt.SetMaxWidth(btnOutline.GetWidth()-30);
|
cancelBtnTxt.SetMaxWidth(btnOutline.GetWidth()-30);
|
||||||
GuiImage cancelBtnImg(&btnOutline);
|
GuiImage cancelBtnImg(&btnOutline);
|
||||||
if (Settings.wsprompt == yes) {
|
if (Settings.wsprompt == yes) {
|
||||||
//cancelBtnTxt.SetWidescreen(CFG.widescreen);
|
cancelBtnTxt.SetWidescreen(CFG.widescreen);
|
||||||
cancelBtnImg.SetWidescreen(CFG.widescreen);
|
cancelBtnImg.SetWidescreen(CFG.widescreen);
|
||||||
}
|
}
|
||||||
GuiButton cancelBtn(&cancelBtnImg,&cancelBtnImg, 2, 3, 180, 400, &trigA, &btnSoundOver, &btnClick,1);
|
GuiButton cancelBtn(&cancelBtnImg,&cancelBtnImg, 2, 3, 180, 400, &trigA, &btnSoundOver, &btnClick,1);
|
||||||
|
@ -90,7 +90,7 @@ int OnScreenKeyboard(char * var, u32 maxlen, int min) {
|
|||||||
GuiText okBtnTxt(tr("OK"), 22, THEME.prompttext);
|
GuiText okBtnTxt(tr("OK"), 22, THEME.prompttext);
|
||||||
GuiImage okBtnImg(&btnOutline);
|
GuiImage okBtnImg(&btnOutline);
|
||||||
if (Settings.wsprompt == yes) {
|
if (Settings.wsprompt == yes) {
|
||||||
//okBtnTxt.SetWidescreen(CFG.widescreen);
|
okBtnTxt.SetWidescreen(CFG.widescreen);
|
||||||
okBtnImg.SetWidescreen(CFG.widescreen);
|
okBtnImg.SetWidescreen(CFG.widescreen);
|
||||||
}
|
}
|
||||||
GuiButton okBtn(&okBtnImg,&okBtnImg, 0, 4, 5, 15, &trigA, &btnSoundOver, &btnClick,1);
|
GuiButton okBtn(&okBtnImg,&okBtnImg, 0, 4, 5, 15, &trigA, &btnSoundOver, &btnClick,1);
|
||||||
@ -98,7 +98,7 @@ int OnScreenKeyboard(char * var, u32 maxlen, int min) {
|
|||||||
GuiText cancelBtnTxt(tr("Cancel"), 22, THEME.prompttext);
|
GuiText cancelBtnTxt(tr("Cancel"), 22, THEME.prompttext);
|
||||||
GuiImage cancelBtnImg(&btnOutline);
|
GuiImage cancelBtnImg(&btnOutline);
|
||||||
if (Settings.wsprompt == yes) {
|
if (Settings.wsprompt == yes) {
|
||||||
//cancelBtnTxt.SetWidescreen(CFG.widescreen);
|
cancelBtnTxt.SetWidescreen(CFG.widescreen);
|
||||||
cancelBtnImg.SetWidescreen(CFG.widescreen);
|
cancelBtnImg.SetWidescreen(CFG.widescreen);
|
||||||
}
|
}
|
||||||
GuiButton cancelBtn(&cancelBtnImg,&cancelBtnImg, 1, 4, -5, 15, &trigA, &btnSoundOver, &btnClick,1);
|
GuiButton cancelBtn(&cancelBtnImg,&cancelBtnImg, 1, 4, -5, 15, &trigA, &btnSoundOver, &btnClick,1);
|
||||||
@ -459,7 +459,7 @@ WindowPrompt(const char *title, const char *msg, const char *btn1Label,
|
|||||||
GuiText btn1Txt(btn1Label, 22, THEME.prompttext);
|
GuiText btn1Txt(btn1Label, 22, THEME.prompttext);
|
||||||
GuiImage btn1Img(&btnOutline);
|
GuiImage btn1Img(&btnOutline);
|
||||||
if (Settings.wsprompt == yes) {
|
if (Settings.wsprompt == yes) {
|
||||||
//btn1Txt.SetWidescreen(CFG.widescreen);
|
btn1Txt.SetWidescreen(CFG.widescreen);
|
||||||
btn1Img.SetWidescreen(CFG.widescreen);
|
btn1Img.SetWidescreen(CFG.widescreen);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -470,7 +470,7 @@ WindowPrompt(const char *title, const char *msg, const char *btn1Label,
|
|||||||
GuiText btn2Txt(btn2Label, 22, THEME.prompttext);
|
GuiText btn2Txt(btn2Label, 22, THEME.prompttext);
|
||||||
GuiImage btn2Img(&btnOutline);
|
GuiImage btn2Img(&btnOutline);
|
||||||
if (Settings.wsprompt == yes) {
|
if (Settings.wsprompt == yes) {
|
||||||
//btn2Txt.SetWidescreen(CFG.widescreen);
|
btn2Txt.SetWidescreen(CFG.widescreen);
|
||||||
btn2Img.SetWidescreen(CFG.widescreen);
|
btn2Img.SetWidescreen(CFG.widescreen);
|
||||||
}
|
}
|
||||||
GuiButton btn2(&btn2Img, &btn2Img, 0,3,0,0,&trigA,&btnSoundOver,&btnClick,1);
|
GuiButton btn2(&btn2Img, &btn2Img, 0,3,0,0,&trigA,&btnSoundOver,&btnClick,1);
|
||||||
@ -481,7 +481,7 @@ WindowPrompt(const char *title, const char *msg, const char *btn1Label,
|
|||||||
GuiText btn3Txt(btn3Label, 22, THEME.prompttext);
|
GuiText btn3Txt(btn3Label, 22, THEME.prompttext);
|
||||||
GuiImage btn3Img(&btnOutline);
|
GuiImage btn3Img(&btnOutline);
|
||||||
if (Settings.wsprompt == yes) {
|
if (Settings.wsprompt == yes) {
|
||||||
//btn3Txt.SetWidescreen(CFG.widescreen);
|
btn3Txt.SetWidescreen(CFG.widescreen);
|
||||||
btn3Img.SetWidescreen(CFG.widescreen);
|
btn3Img.SetWidescreen(CFG.widescreen);
|
||||||
}
|
}
|
||||||
GuiButton btn3(&btn3Img, &btn3Img, 0,3,0,0,&trigA,&btnSoundOver,&btnClick,1);
|
GuiButton btn3(&btn3Img, &btn3Img, 0,3,0,0,&trigA,&btnSoundOver,&btnClick,1);
|
||||||
@ -492,7 +492,7 @@ WindowPrompt(const char *title, const char *msg, const char *btn1Label,
|
|||||||
GuiText btn4Txt(btn4Label, 22, THEME.prompttext);
|
GuiText btn4Txt(btn4Label, 22, THEME.prompttext);
|
||||||
GuiImage btn4Img(&btnOutline);
|
GuiImage btn4Img(&btnOutline);
|
||||||
if (Settings.wsprompt == yes) {
|
if (Settings.wsprompt == yes) {
|
||||||
//btn4Txt.SetWidescreen(CFG.widescreen);
|
btn4Txt.SetWidescreen(CFG.widescreen);
|
||||||
btn4Img.SetWidescreen(CFG.widescreen);
|
btn4Img.SetWidescreen(CFG.widescreen);
|
||||||
}
|
}
|
||||||
GuiButton btn4(&btn4Img, &btn4Img, 0,3,0,0,&trigA,&btnSoundOver,&btnClick,1);
|
GuiButton btn4(&btn4Img, &btn4Img, 0,3,0,0,&trigA,&btnSoundOver,&btnClick,1);
|
||||||
@ -778,7 +778,7 @@ WindowExitPrompt(const char *title, const char *msg, const char *btn1Label,
|
|||||||
closeTxt.SetPosition(10,3);
|
closeTxt.SetPosition(10,3);
|
||||||
GuiImage closeImg(&close);
|
GuiImage closeImg(&close);
|
||||||
if (Settings.wsprompt == yes) {
|
if (Settings.wsprompt == yes) {
|
||||||
//closeTxt.SetWidescreen(CFG.widescreen);
|
closeTxt.SetWidescreen(CFG.widescreen);
|
||||||
closeImg.SetWidescreen(CFG.widescreen);
|
closeImg.SetWidescreen(CFG.widescreen);
|
||||||
}
|
}
|
||||||
GuiButton closeBtn(close.GetWidth(), close.GetHeight());
|
GuiButton closeBtn(close.GetWidth(), close.GetHeight());
|
||||||
@ -797,7 +797,7 @@ WindowExitPrompt(const char *title, const char *msg, const char *btn1Label,
|
|||||||
GuiText btn2Txt((HBC!=1?tr("Homebrew Channel"):btn1Label), 28, (GXColor) {0, 0, 0, 255});
|
GuiText btn2Txt((HBC!=1?tr("Homebrew Channel"):btn1Label), 28, (GXColor) {0, 0, 0, 255});
|
||||||
GuiImage btn2Img(&button);
|
GuiImage btn2Img(&button);
|
||||||
if (Settings.wsprompt == yes) {
|
if (Settings.wsprompt == yes) {
|
||||||
//btn2Txt.SetWidescreen(CFG.widescreen);
|
btn2Txt.SetWidescreen(CFG.widescreen);
|
||||||
btn2Img.SetWidescreen(CFG.widescreen);
|
btn2Img.SetWidescreen(CFG.widescreen);
|
||||||
}
|
}
|
||||||
GuiButton btn2(&btn2Img,&btn2Img, 2, 5, -150, 0, &trigA, &btnSoundOver, &btnClick,1);
|
GuiButton btn2(&btn2Img,&btn2Img, 2, 5, -150, 0, &trigA, &btnSoundOver, &btnClick,1);
|
||||||
@ -811,7 +811,7 @@ WindowExitPrompt(const char *title, const char *msg, const char *btn1Label,
|
|||||||
GuiText btn3Txt(btn2Label, 28, (GXColor) {0, 0, 0, 255});
|
GuiText btn3Txt(btn2Label, 28, (GXColor) {0, 0, 0, 255});
|
||||||
GuiImage btn3Img(&button);
|
GuiImage btn3Img(&button);
|
||||||
if (Settings.wsprompt == yes) {
|
if (Settings.wsprompt == yes) {
|
||||||
//btn3Txt.SetWidescreen(CFG.widescreen);
|
btn3Txt.SetWidescreen(CFG.widescreen);
|
||||||
btn3Img.SetWidescreen(CFG.widescreen);
|
btn3Img.SetWidescreen(CFG.widescreen);
|
||||||
}
|
}
|
||||||
GuiButton btn3(&btn3Img,&btn3Img, 2, 5, 150, 0, &trigA, &btnSoundOver, &btnClick,1);
|
GuiButton btn3(&btn3Img,&btn3Img, 2, 5, 150, 0, &trigA, &btnSoundOver, &btnClick,1);
|
||||||
@ -1060,8 +1060,8 @@ int GameWindowPrompt() {
|
|||||||
if (Settings.wsprompt == yes)
|
if (Settings.wsprompt == yes)
|
||||||
nameBtnTT.SetWidescreen(CFG.widescreen);
|
nameBtnTT.SetWidescreen(CFG.widescreen);
|
||||||
GuiText nameTxt("", 22, THEME.prompttext);
|
GuiText nameTxt("", 22, THEME.prompttext);
|
||||||
//if (Settings.wsprompt == yes)
|
if (Settings.wsprompt == yes)
|
||||||
//nameTxt.SetWidescreen(CFG.widescreen);
|
nameTxt.SetWidescreen(CFG.widescreen);
|
||||||
nameTxt.SetMaxWidth(350, SCROLL_HORIZONTAL);
|
nameTxt.SetMaxWidth(350, SCROLL_HORIZONTAL);
|
||||||
GuiButton nameBtn(120,50);
|
GuiButton nameBtn(120,50);
|
||||||
nameBtn.SetLabel(&nameTxt);
|
nameBtn.SetLabel(&nameTxt);
|
||||||
@ -1110,7 +1110,7 @@ int GameWindowPrompt() {
|
|||||||
GuiText btn2Txt(tr("Back"), 22, THEME.prompttext);
|
GuiText btn2Txt(tr("Back"), 22, THEME.prompttext);
|
||||||
GuiImage btn2Img(&btnOutline);
|
GuiImage btn2Img(&btnOutline);
|
||||||
if (Settings.wsprompt == yes) {
|
if (Settings.wsprompt == yes) {
|
||||||
//btn2Txt.SetWidescreen(CFG.widescreen);
|
btn2Txt.SetWidescreen(CFG.widescreen);
|
||||||
btn2Img.SetWidescreen(CFG.widescreen);
|
btn2Img.SetWidescreen(CFG.widescreen);
|
||||||
}
|
}
|
||||||
GuiButton btn2(&btn2Img,&btn2Img, 1, 5, 0, 0, &trigA, &btnSoundOver, &btnClick,1);
|
GuiButton btn2(&btn2Img,&btn2Img, 1, 5, 0, 0, &trigA, &btnSoundOver, &btnClick,1);
|
||||||
@ -1128,7 +1128,7 @@ int GameWindowPrompt() {
|
|||||||
GuiText btn3Txt(tr("Settings"), 22, THEME.prompttext);
|
GuiText btn3Txt(tr("Settings"), 22, THEME.prompttext);
|
||||||
GuiImage btn3Img(&btnOutline);
|
GuiImage btn3Img(&btnOutline);
|
||||||
if (Settings.wsprompt == yes) {
|
if (Settings.wsprompt == yes) {
|
||||||
//btn3Txt.SetWidescreen(CFG.widescreen);
|
btn3Txt.SetWidescreen(CFG.widescreen);
|
||||||
btn3Img.SetWidescreen(CFG.widescreen);
|
btn3Img.SetWidescreen(CFG.widescreen);
|
||||||
}
|
}
|
||||||
GuiButton btn3(&btn3Img,&btn3Img, 0, 4, 50, -40, &trigA, &btnSoundOver, &btnClick,1);
|
GuiButton btn3(&btn3Img,&btn3Img, 0, 4, 50, -40, &trigA, &btnSoundOver, &btnClick,1);
|
||||||
@ -1566,7 +1566,7 @@ DiscWait(const char *title, const char *msg, const char *btn1Label, const char *
|
|||||||
GuiText btn1Txt(btn1Label, 22, THEME.prompttext);
|
GuiText btn1Txt(btn1Label, 22, THEME.prompttext);
|
||||||
GuiImage btn1Img(&btnOutline);
|
GuiImage btn1Img(&btnOutline);
|
||||||
if (Settings.wsprompt == yes) {
|
if (Settings.wsprompt == yes) {
|
||||||
//btn1Txt.SetWidescreen(CFG.widescreen);
|
btn1Txt.SetWidescreen(CFG.widescreen);
|
||||||
btn1Img.SetWidescreen(CFG.widescreen);
|
btn1Img.SetWidescreen(CFG.widescreen);
|
||||||
}
|
}
|
||||||
GuiButton btn1(&btn1Img,&btn1Img, 1, 5, 0, 0, &trigA, &btnSoundOver, &btnClick,1);
|
GuiButton btn1(&btn1Img,&btn1Img, 1, 5, 0, 0, &trigA, &btnSoundOver, &btnClick,1);
|
||||||
@ -1586,7 +1586,7 @@ DiscWait(const char *title, const char *msg, const char *btn1Label, const char *
|
|||||||
GuiText btn2Txt(btn2Label, 22, THEME.prompttext);
|
GuiText btn2Txt(btn2Label, 22, THEME.prompttext);
|
||||||
GuiImage btn2Img(&btnOutline);
|
GuiImage btn2Img(&btnOutline);
|
||||||
if (Settings.wsprompt == yes) {
|
if (Settings.wsprompt == yes) {
|
||||||
//btn2Txt.SetWidescreen(CFG.widescreen);
|
btn2Txt.SetWidescreen(CFG.widescreen);
|
||||||
btn2Img.SetWidescreen(CFG.widescreen);
|
btn2Img.SetWidescreen(CFG.widescreen);
|
||||||
}
|
}
|
||||||
GuiButton btn2(&btn2Img,&btn2Img, 1, 4, -20, -25, &trigA, &btnSoundOver, &btnClick,1);
|
GuiButton btn2(&btn2Img,&btn2Img, 1, 4, -20, -25, &trigA, &btnSoundOver, &btnClick,1);
|
||||||
@ -1872,7 +1872,7 @@ bool NetworkInitPrompt() {
|
|||||||
GuiText btn1Txt(tr("Cancel"), 22, THEME.prompttext);
|
GuiText btn1Txt(tr("Cancel"), 22, THEME.prompttext);
|
||||||
GuiImage btn1Img(&btnOutline);
|
GuiImage btn1Img(&btnOutline);
|
||||||
if (Settings.wsprompt == yes) {
|
if (Settings.wsprompt == yes) {
|
||||||
//btn1Txt.SetWidescreen(CFG.widescreen);
|
btn1Txt.SetWidescreen(CFG.widescreen);
|
||||||
btn1Img.SetWidescreen(CFG.widescreen);
|
btn1Img.SetWidescreen(CFG.widescreen);
|
||||||
}
|
}
|
||||||
GuiButton btn1(&btn1Img,&btn1Img, 2, 4, 0, -45, &trigA, &btnSoundOver, &btnClick,1);
|
GuiButton btn1(&btn1Img,&btn1Img, 2, 4, 0, -45, &trigA, &btnSoundOver, &btnClick,1);
|
||||||
@ -2000,7 +2000,7 @@ ProgressDownloadWindow(int choice2) {
|
|||||||
GuiText btn1Txt(tr("Cancel"), 22, THEME.prompttext);
|
GuiText btn1Txt(tr("Cancel"), 22, THEME.prompttext);
|
||||||
GuiImage btn1Img(&btnOutline);
|
GuiImage btn1Img(&btnOutline);
|
||||||
if (Settings.wsprompt == yes) {
|
if (Settings.wsprompt == yes) {
|
||||||
//btn1Txt.SetWidescreen(CFG.widescreen);
|
btn1Txt.SetWidescreen(CFG.widescreen);
|
||||||
btn1Img.SetWidescreen(CFG.widescreen);
|
btn1Img.SetWidescreen(CFG.widescreen);
|
||||||
}
|
}
|
||||||
GuiButton btn1(&btn1Img,&btn1Img, 2, 4, 0, -45, &trigA, &btnSoundOver, &btnClick,1);
|
GuiButton btn1(&btn1Img,&btn1Img, 2, 4, 0, -45, &trigA, &btnSoundOver, &btnClick,1);
|
||||||
@ -2484,7 +2484,7 @@ int ProgressUpdateWindow() {
|
|||||||
GuiText btn1Txt(tr("Cancel"), 22, THEME.prompttext);
|
GuiText btn1Txt(tr("Cancel"), 22, THEME.prompttext);
|
||||||
GuiImage btn1Img(&btnOutline);
|
GuiImage btn1Img(&btnOutline);
|
||||||
if (Settings.wsprompt == yes) {
|
if (Settings.wsprompt == yes) {
|
||||||
//btn1Txt.SetWidescreen(CFG.widescreen);
|
btn1Txt.SetWidescreen(CFG.widescreen);
|
||||||
btn1Img.SetWidescreen(CFG.widescreen);
|
btn1Img.SetWidescreen(CFG.widescreen);
|
||||||
}
|
}
|
||||||
GuiButton btn1(&btn1Img,&btn1Img, 2, 4, 0, -40, &trigA, &btnSoundOver, &btnClick,1);
|
GuiButton btn1(&btn1Img,&btn1Img, 2, 4, 0, -40, &trigA, &btnSoundOver, &btnClick,1);
|
||||||
@ -3112,7 +3112,7 @@ int CodeDownload(const char *id) {
|
|||||||
GuiText btn1Txt(tr("Cancel"), 22, THEME.prompttext);
|
GuiText btn1Txt(tr("Cancel"), 22, THEME.prompttext);
|
||||||
GuiImage btn1Img(&btnOutline);
|
GuiImage btn1Img(&btnOutline);
|
||||||
if (Settings.wsprompt == yes) {
|
if (Settings.wsprompt == yes) {
|
||||||
//btn1Txt.SetWidescreen(CFG.widescreen);
|
btn1Txt.SetWidescreen(CFG.widescreen);
|
||||||
btn1Img.SetWidescreen(CFG.widescreen);
|
btn1Img.SetWidescreen(CFG.widescreen);
|
||||||
}
|
}
|
||||||
GuiButton btn1(&btn1Img,&btn1Img, 2, 4, 0, -40, &trigA, &btnSoundOver, &btnClick,1);
|
GuiButton btn1(&btn1Img,&btn1Img, 2, 4, 0, -40, &trigA, &btnSoundOver, &btnClick,1);
|
||||||
@ -3389,7 +3389,7 @@ HBCWindowPrompt(const char *name, const char *coder, const char *version,
|
|||||||
GuiText btn1Txt(tr("Load"), 22, THEME.prompttext);
|
GuiText btn1Txt(tr("Load"), 22, THEME.prompttext);
|
||||||
GuiImage btn1Img(&btnOutline);
|
GuiImage btn1Img(&btnOutline);
|
||||||
if (Settings.wsprompt == yes) {
|
if (Settings.wsprompt == yes) {
|
||||||
//btn1Txt.SetWidescreen(CFG.widescreen);
|
btn1Txt.SetWidescreen(CFG.widescreen);
|
||||||
btn1Img.SetWidescreen(CFG.widescreen);
|
btn1Img.SetWidescreen(CFG.widescreen);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3400,7 +3400,7 @@ HBCWindowPrompt(const char *name, const char *coder, const char *version,
|
|||||||
GuiText btn2Txt(tr("Back"), 22, THEME.prompttext);
|
GuiText btn2Txt(tr("Back"), 22, THEME.prompttext);
|
||||||
GuiImage btn2Img(&btnOutline);
|
GuiImage btn2Img(&btnOutline);
|
||||||
if (Settings.wsprompt == yes) {
|
if (Settings.wsprompt == yes) {
|
||||||
//btn2Txt.SetWidescreen(CFG.widescreen);
|
btn2Txt.SetWidescreen(CFG.widescreen);
|
||||||
btn2Img.SetWidescreen(CFG.widescreen);
|
btn2Img.SetWidescreen(CFG.widescreen);
|
||||||
}
|
}
|
||||||
GuiButton btn2(&btn2Img, &btn2Img, 0,3,0,0,&trigA,&btnSoundOver,&btnClick,1);
|
GuiButton btn2(&btn2Img, &btn2Img, 0,3,0,0,&trigA,&btnSoundOver,&btnClick,1);
|
||||||
|
@ -262,7 +262,7 @@ int TitleBrowser(u32 type) {
|
|||||||
cancelBtnTxt.SetMaxWidth(btnOutline.GetWidth()-30);
|
cancelBtnTxt.SetMaxWidth(btnOutline.GetWidth()-30);
|
||||||
GuiImage cancelBtnImg(&btnOutline);
|
GuiImage cancelBtnImg(&btnOutline);
|
||||||
if (Settings.wsprompt == yes) {
|
if (Settings.wsprompt == yes) {
|
||||||
//cancelBtnTxt.SetWidescreen(CFG.widescreen);
|
cancelBtnTxt.SetWidescreen(CFG.widescreen);
|
||||||
cancelBtnImg.SetWidescreen(CFG.widescreen);
|
cancelBtnImg.SetWidescreen(CFG.widescreen);
|
||||||
}
|
}
|
||||||
GuiButton cancelBtn(&cancelBtnImg,&cancelBtnImg, 2, 3, 180, 400, &trigA, &btnSoundOver, &btnClick,1);
|
GuiButton cancelBtn(&cancelBtnImg,&cancelBtnImg, 2, 3, 180, 400, &trigA, &btnSoundOver, &btnClick,1);
|
||||||
|
@ -322,7 +322,7 @@ int BrowseDevice(char * Path, int Path_size, int Flags, FILTERCASCADE *Filter/*=
|
|||||||
GuiText ExitBtnTxt(tr("Cancel"), 24, (GXColor) {0, 0, 0, 255});
|
GuiText ExitBtnTxt(tr("Cancel"), 24, (GXColor) {0, 0, 0, 255});
|
||||||
GuiImage ExitBtnImg(&btnOutline);
|
GuiImage ExitBtnImg(&btnOutline);
|
||||||
if (Settings.wsprompt == yes) {
|
if (Settings.wsprompt == yes) {
|
||||||
//ExitBtnTxt.SetWidescreen(CFG.widescreen);
|
ExitBtnTxt.SetWidescreen(CFG.widescreen);
|
||||||
ExitBtnImg.SetWidescreen(CFG.widescreen);
|
ExitBtnImg.SetWidescreen(CFG.widescreen);
|
||||||
}
|
}
|
||||||
GuiButton ExitBtn(btnOutline.GetWidth(), btnOutline.GetHeight());
|
GuiButton ExitBtn(btnOutline.GetWidth(), btnOutline.GetHeight());
|
||||||
@ -337,7 +337,7 @@ int BrowseDevice(char * Path, int Path_size, int Flags, FILTERCASCADE *Filter/*=
|
|||||||
GuiText usbBtnTxt(browsers[(curDevice+1)%browsers.size()].rootdir, 24, (GXColor) {0, 0, 0, 255});
|
GuiText usbBtnTxt(browsers[(curDevice+1)%browsers.size()].rootdir, 24, (GXColor) {0, 0, 0, 255});
|
||||||
GuiImage usbBtnImg(&btnOutline);
|
GuiImage usbBtnImg(&btnOutline);
|
||||||
if (Settings.wsprompt == yes) {
|
if (Settings.wsprompt == yes) {
|
||||||
//usbBtnTxt.SetWidescreen(CFG.widescreen);
|
usbBtnTxt.SetWidescreen(CFG.widescreen);
|
||||||
usbBtnImg.SetWidescreen(CFG.widescreen);
|
usbBtnImg.SetWidescreen(CFG.widescreen);
|
||||||
}
|
}
|
||||||
GuiButton usbBtn(btnOutline.GetWidth(), btnOutline.GetHeight());
|
GuiButton usbBtn(btnOutline.GetWidth(), btnOutline.GetHeight());
|
||||||
@ -351,7 +351,7 @@ int BrowseDevice(char * Path, int Path_size, int Flags, FILTERCASCADE *Filter/*=
|
|||||||
GuiText okBtnTxt(tr("OK"), 22, THEME.prompttext);
|
GuiText okBtnTxt(tr("OK"), 22, THEME.prompttext);
|
||||||
GuiImage okBtnImg(&btnOutline);
|
GuiImage okBtnImg(&btnOutline);
|
||||||
if (Settings.wsprompt == yes) {
|
if (Settings.wsprompt == yes) {
|
||||||
//okBtnTxt.SetWidescreen(CFG.widescreen);
|
okBtnTxt.SetWidescreen(CFG.widescreen);
|
||||||
okBtnImg.SetWidescreen(CFG.widescreen);
|
okBtnImg.SetWidescreen(CFG.widescreen);
|
||||||
}
|
}
|
||||||
GuiButton okBtn(&okBtnImg,&okBtnImg, 0, 4, 40, -35, &trigA, &btnSoundOver, &btnClick,1);
|
GuiButton okBtn(&okBtnImg,&okBtnImg, 0, 4, 40, -35, &trigA, &btnSoundOver, &btnClick,1);
|
||||||
|
@ -121,7 +121,7 @@ int MenuSettings() {
|
|||||||
backBtnTxt.SetMaxWidth(btnOutline.GetWidth()-30);
|
backBtnTxt.SetMaxWidth(btnOutline.GetWidth()-30);
|
||||||
GuiImage backBtnImg(&btnOutline);
|
GuiImage backBtnImg(&btnOutline);
|
||||||
if (Settings.wsprompt == yes) {
|
if (Settings.wsprompt == yes) {
|
||||||
//backBtnTxt.SetWidescreen(CFG.widescreen);
|
backBtnTxt.SetWidescreen(CFG.widescreen);
|
||||||
backBtnImg.SetWidescreen(CFG.widescreen);
|
backBtnImg.SetWidescreen(CFG.widescreen);
|
||||||
}
|
}
|
||||||
GuiButton backBtn(&backBtnImg,&backBtnImg, 2, 3, -180, 400, &trigA, &btnSoundOver, &btnClick,1);
|
GuiButton backBtn(&backBtnImg,&backBtnImg, 2, 3, -180, 400, &trigA, &btnSoundOver, &btnClick,1);
|
||||||
@ -1853,7 +1853,7 @@ int GameSettings(struct discHdr * header) {
|
|||||||
backBtnTxt.SetMaxWidth(btnOutline.GetWidth()-30);
|
backBtnTxt.SetMaxWidth(btnOutline.GetWidth()-30);
|
||||||
GuiImage backBtnImg(&btnOutline);
|
GuiImage backBtnImg(&btnOutline);
|
||||||
if (Settings.wsprompt == yes) {
|
if (Settings.wsprompt == yes) {
|
||||||
//backBtnTxt.SetWidescreen(CFG.widescreen);
|
backBtnTxt.SetWidescreen(CFG.widescreen);
|
||||||
backBtnImg.SetWidescreen(CFG.widescreen);
|
backBtnImg.SetWidescreen(CFG.widescreen);
|
||||||
}
|
}
|
||||||
GuiButton backBtn(&backBtnImg,&backBtnImg, 2, 3, -180, 400, &trigA, &btnSoundOver, &btnClick,1);
|
GuiButton backBtn(&backBtnImg,&backBtnImg, 2, 3, -180, 400, &trigA, &btnSoundOver, &btnClick,1);
|
||||||
@ -1867,7 +1867,7 @@ int GameSettings(struct discHdr * header) {
|
|||||||
saveBtnTxt.SetMaxWidth(btnOutline.GetWidth()-30);
|
saveBtnTxt.SetMaxWidth(btnOutline.GetWidth()-30);
|
||||||
GuiImage saveBtnImg(&btnOutline);
|
GuiImage saveBtnImg(&btnOutline);
|
||||||
if (Settings.wsprompt == yes) {
|
if (Settings.wsprompt == yes) {
|
||||||
//saveBtnTxt.SetWidescreen(CFG.widescreen);
|
saveBtnTxt.SetWidescreen(CFG.widescreen);
|
||||||
saveBtnImg.SetWidescreen(CFG.widescreen);
|
saveBtnImg.SetWidescreen(CFG.widescreen);
|
||||||
}
|
}
|
||||||
GuiButton saveBtn(&saveBtnImg,&saveBtnImg, 2, 3, 180, 400, &trigA, &btnSoundOver, &btnClick,1);
|
GuiButton saveBtn(&saveBtnImg,&saveBtnImg, 2, 3, 180, 400, &trigA, &btnSoundOver, &btnClick,1);
|
||||||
|
@ -85,7 +85,7 @@ bool MenuOGG() {
|
|||||||
backBtnTxt.SetMaxWidth(btnOutline.GetWidth()-30);
|
backBtnTxt.SetMaxWidth(btnOutline.GetWidth()-30);
|
||||||
GuiImage backBtnImg(&btnOutline);
|
GuiImage backBtnImg(&btnOutline);
|
||||||
if (Settings.wsprompt == yes) {
|
if (Settings.wsprompt == yes) {
|
||||||
//backBtnTxt.SetWidescreen(CFG.widescreen);
|
backBtnTxt.SetWidescreen(CFG.widescreen);
|
||||||
backBtnImg.SetWidescreen(CFG.widescreen);
|
backBtnImg.SetWidescreen(CFG.widescreen);
|
||||||
}
|
}
|
||||||
GuiButton backBtn(btnOutline.GetWidth(), btnOutline.GetHeight());
|
GuiButton backBtn(btnOutline.GetWidth(), btnOutline.GetHeight());
|
||||||
@ -103,7 +103,7 @@ bool MenuOGG() {
|
|||||||
defaultBtnTxt.SetMaxWidth(btnOutline.GetWidth()-30);
|
defaultBtnTxt.SetMaxWidth(btnOutline.GetWidth()-30);
|
||||||
GuiImage defaultBtnImg(&btnOutline);
|
GuiImage defaultBtnImg(&btnOutline);
|
||||||
if (Settings.wsprompt == yes) {
|
if (Settings.wsprompt == yes) {
|
||||||
//defaultBtnTxt.SetWidescreen(CFG.widescreen);
|
defaultBtnTxt.SetWidescreen(CFG.widescreen);
|
||||||
defaultBtnImg.SetWidescreen(CFG.widescreen);
|
defaultBtnImg.SetWidescreen(CFG.widescreen);
|
||||||
}
|
}
|
||||||
GuiButton defaultBtn(btnOutline.GetWidth(), btnOutline.GetHeight());
|
GuiButton defaultBtn(btnOutline.GetWidth(), btnOutline.GetHeight());
|
||||||
@ -367,7 +367,7 @@ int MenuLanguageSelect() {
|
|||||||
backBtnTxt.SetMaxWidth(btnOutline.GetWidth()-30);
|
backBtnTxt.SetMaxWidth(btnOutline.GetWidth()-30);
|
||||||
GuiImage backBtnImg(&btnOutline);
|
GuiImage backBtnImg(&btnOutline);
|
||||||
if (Settings.wsprompt == yes) {
|
if (Settings.wsprompt == yes) {
|
||||||
//backBtnTxt.SetWidescreen(CFG.widescreen);
|
backBtnTxt.SetWidescreen(CFG.widescreen);
|
||||||
backBtnImg.SetWidescreen(CFG.widescreen);
|
backBtnImg.SetWidescreen(CFG.widescreen);
|
||||||
}
|
}
|
||||||
GuiButton backBtn(btnOutline.GetWidth(), btnOutline.GetHeight());
|
GuiButton backBtn(btnOutline.GetWidth(), btnOutline.GetHeight());
|
||||||
@ -385,7 +385,7 @@ int MenuLanguageSelect() {
|
|||||||
defaultBtnTxt.SetMaxWidth(btnOutline.GetWidth()-30);
|
defaultBtnTxt.SetMaxWidth(btnOutline.GetWidth()-30);
|
||||||
GuiImage defaultBtnImg(&btnOutline);
|
GuiImage defaultBtnImg(&btnOutline);
|
||||||
if (Settings.wsprompt == yes) {
|
if (Settings.wsprompt == yes) {
|
||||||
//defaultBtnTxt.SetWidescreen(CFG.widescreen);
|
defaultBtnTxt.SetWidescreen(CFG.widescreen);
|
||||||
defaultBtnImg.SetWidescreen(CFG.widescreen);
|
defaultBtnImg.SetWidescreen(CFG.widescreen);
|
||||||
}
|
}
|
||||||
GuiButton defaultBtn(btnOutline.GetWidth(), btnOutline.GetHeight());
|
GuiButton defaultBtn(btnOutline.GetWidth(), btnOutline.GetHeight());
|
||||||
@ -402,7 +402,7 @@ int MenuLanguageSelect() {
|
|||||||
updateBtnTxt.SetMaxWidth(btnOutline.GetWidth()-30);
|
updateBtnTxt.SetMaxWidth(btnOutline.GetWidth()-30);
|
||||||
GuiImage updateBtnImg(&btnOutline);
|
GuiImage updateBtnImg(&btnOutline);
|
||||||
if (Settings.wsprompt == yes) {
|
if (Settings.wsprompt == yes) {
|
||||||
//updateBtnTxt.SetWidescreen(CFG.widescreen);
|
updateBtnTxt.SetWidescreen(CFG.widescreen);
|
||||||
updateBtnImg.SetWidescreen(CFG.widescreen);
|
updateBtnImg.SetWidescreen(CFG.widescreen);
|
||||||
}
|
}
|
||||||
GuiButton updateBtn(btnOutline.GetWidth(), btnOutline.GetHeight());
|
GuiButton updateBtn(btnOutline.GetWidth(), btnOutline.GetHeight());
|
||||||
|
@ -141,9 +141,11 @@ s32 Wad_Install(FILE *fp)
|
|||||||
|
|
||||||
GuiText btn1Txt(tr("OK"), 22, THEME.prompttext);
|
GuiText btn1Txt(tr("OK"), 22, THEME.prompttext);
|
||||||
GuiImage btn1Img(&btnOutline);
|
GuiImage btn1Img(&btnOutline);
|
||||||
if (Settings.wsprompt == yes){
|
if (Settings.wsprompt == yes)
|
||||||
//btn1Txt.SetWidescreen(CFG.widescreen);
|
{
|
||||||
btn1Img.SetWidescreen(CFG.widescreen);}
|
btn1Txt.SetWidescreen(CFG.widescreen);
|
||||||
|
btn1Img.SetWidescreen(CFG.widescreen);
|
||||||
|
}
|
||||||
GuiButton btn1(&btn1Img,&btn1Img, 2, 4, 0, -35, &trigA, &btnSoundOver, &btnClick,1);
|
GuiButton btn1(&btn1Img,&btn1Img, 2, 4, 0, -35, &trigA, &btnSoundOver, &btnClick,1);
|
||||||
btn1.SetLabel(&btn1Txt);
|
btn1.SetLabel(&btn1Txt);
|
||||||
btn1.SetState(STATE_SELECTED);
|
btn1.SetState(STATE_SELECTED);
|
||||||
@ -470,9 +472,11 @@ s32 Wad_Uninstall(FILE *fp)
|
|||||||
|
|
||||||
GuiText btn1Txt(tr("OK"), 22, THEME.prompttext);
|
GuiText btn1Txt(tr("OK"), 22, THEME.prompttext);
|
||||||
GuiImage btn1Img(&btnOutline);
|
GuiImage btn1Img(&btnOutline);
|
||||||
if (Settings.wsprompt == yes){
|
if (Settings.wsprompt == yes)
|
||||||
//btn1Txt.SetWidescreen(CFG.widescreen);
|
{
|
||||||
btn1Img.SetWidescreen(CFG.widescreen);}
|
btn1Txt.SetWidescreen(CFG.widescreen);
|
||||||
|
btn1Img.SetWidescreen(CFG.widescreen);
|
||||||
|
}
|
||||||
GuiButton btn1(&btn1Img,&btn1Img, 2, 4, 0, -55, &trigA, &btnSoundOver, &btnClick,1);
|
GuiButton btn1(&btn1Img,&btn1Img, 2, 4, 0, -55, &trigA, &btnSoundOver, &btnClick,1);
|
||||||
btn1.SetLabel(&btn1Txt);
|
btn1.SetLabel(&btn1Txt);
|
||||||
btn1.SetState(STATE_SELECTED);
|
btn1.SetState(STATE_SELECTED);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user