diff --git a/out/boot.dol b/out/boot.dol index c738ee41..900b864c 100644 Binary files a/out/boot.dol and b/out/boot.dol differ diff --git a/out/imgs/font.ttf b/out/imgs/font.ttf new file mode 100644 index 00000000..1a7679e3 Binary files /dev/null and b/out/imgs/font.ttf differ diff --git a/source/fonts.h b/source/fonts.h index 8d55ba8c..16196dd8 100644 --- a/source/fonts.h +++ b/source/fonts.h @@ -10,12 +10,12 @@ const u8 WFB_HASH[] = {0x4f, 0xad, 0x97, 0xfd, 0x4a, 0x28, 0x8c, 0x47, 0xe0, 0 #define FONT_BOLD 32u #define FONT_NOBOLD 8u -#define TITLEFONT_PT_SZ 30u -#define BTNFONT_PT_SZ 18u +#define TITLEFONT_PT_SZ 24u +#define BTNFONT_PT_SZ 20u #define LBLFONT_PT_SZ 20u -#define TEXTFONT_PT_SZ 18u +#define TEXTFONT_PT_SZ 16u #define TITLEFONT TITLEFONT_PT_SZ, TITLEFONT_PT_SZ - 4, FONT_NOBOLD, 1, "title_font" -#define BUTTONFONT BTNFONT_PT_SZ, BTNFONT_PT_SZ - 4, FONT_BOLD, 1, "button_font" +#define BUTTONFONT BTNFONT_PT_SZ, BTNFONT_PT_SZ - 4, FONT_NOBOLD, 1, "button_font" #define LABELFONT LBLFONT_PT_SZ, LBLFONT_PT_SZ + 4, FONT_NOBOLD, 1, "label_font" #define TEXTFONT TEXTFONT_PT_SZ, TEXTFONT_PT_SZ + 6, FONT_NOBOLD, 1, "text_font" \ No newline at end of file diff --git a/source/menu/menu.cpp b/source/menu/menu.cpp index 312c8210..7fb8afe7 100644 --- a/source/menu/menu.cpp +++ b/source/menu/menu.cpp @@ -1305,13 +1305,13 @@ SFont CMenu::_font(const char *domain, const char *key, u32 fontSize, u32 lineSp return retFont; } - /* try default font in imgs folder + /* try default font in imgs folder */ if(retFont.fromFile(fmt("%s/font.ttf", m_imgsDir.c_str()), fonts[0].res, fonts[1].res, fonts[2].res, index, filename.c_str())) { // Default font theme.fontSet.push_back(retFont); return retFont; - }*/ + } /* Fallback to default font */ /* default font is the wii's system font */ diff --git a/source/menu/menu_about.cpp b/source/menu/menu_about.cpp index 8dc95486..04af445f 100644 --- a/source/menu/menu_about.cpp +++ b/source/menu/menu_about.cpp @@ -91,7 +91,7 @@ void CMenu::_initAboutMenu() { _addUserLabels(m_aboutLblUser, 0, 2, "ABOUT"); m_aboutBg = _texture("ABOUT/BG", "texture", theme.bg, false); - m_aboutLblInfo = _addText("ABOUT/INFO", theme.txtFont, L"", 40, 100, 560, 300, theme.txtFontColor, FTGX_JUSTIFY_LEFT | FTGX_ALIGN_TOP); + m_aboutLblInfo = _addText("ABOUT/INFO", theme.txtFont, L"", 40, 80, 560, 300, theme.txtFontColor, FTGX_JUSTIFY_LEFT | FTGX_ALIGN_TOP); _addUserLabels(m_aboutLblUser, 2, 2, "ABOUT"); m_aboutLblTitle = _addTitle("ABOUT/TITLE", theme.titleFont, L"", 0, 10, 640, 60, theme.titleFontColor, FTGX_JUSTIFY_CENTER | FTGX_ALIGN_MIDDLE); m_aboutLblIOS = _addLabel("ABOUT/IOS", theme.lblFont, L"", 240, 400, 360, 56, theme.lblFontColor, FTGX_JUSTIFY_RIGHT | FTGX_ALIGN_MIDDLE); diff --git a/source/menu/menu_config7.cpp b/source/menu/menu_config7.cpp index f7d23dea..af78ffcd 100644 --- a/source/menu/menu_config7.cpp +++ b/source/menu/menu_config7.cpp @@ -72,12 +72,11 @@ void CMenu::_showConfig7(int curPage) m_btnMgr.show(m_config7Btn2); m_btnMgr.show(m_config7Lbl3); m_btnMgr.show(m_config7Btn3); - if(curPage != 11) - m_btnMgr.show(m_config7Lbl4); + m_btnMgr.show(m_config7Lbl4); - if(curPage == 7) + if(curPage == 7 || curPage == 11) m_btnMgr.show(m_config7Btn4); - else if(curPage != 11) + else { m_btnMgr.show(m_config7Lbl4Val); m_btnMgr.show(m_config7Btn4M); diff --git a/source/menu/menu_gameinfo.cpp b/source/menu/menu_gameinfo.cpp index 8fda368f..f7ed5766 100644 --- a/source/menu/menu_gameinfo.cpp +++ b/source/menu/menu_gameinfo.cpp @@ -191,7 +191,7 @@ void CMenu::_initGameInfoMenu() m_gameinfoLblRlsdate = _addText("GAMEINFO/RLSDATE", theme.txtFont, L"", 40, 230, 460, 56, theme.txtFontColor, FTGX_JUSTIFY_LEFT | FTGX_ALIGN_TOP); m_gameinfoLblRegion = _addText("GAMEINFO/REGION", theme.txtFont, L"", 40, 260, 460, 56, theme.txtFontColor, FTGX_JUSTIFY_LEFT | FTGX_ALIGN_TOP); m_gameinfoLblRating = _addLabel("GAMEINFO/RATING", theme.titleFont, L"", 550, 380, 48, 60, theme.titleFontColor, 0, m_rating); - m_gameinfoLblSynopsis = _addText("GAMEINFO/SYNOPSIS", theme.txtFont, L"", 40, 120, 560, 280, theme.txtFontColor, FTGX_JUSTIFY_LEFT | FTGX_ALIGN_TOP); + m_gameinfoLblSynopsis = _addText("GAMEINFO/SYNOPSIS", theme.txtFont, L"", 40, 80, 560, 280, theme.txtFontColor, FTGX_JUSTIFY_LEFT | FTGX_ALIGN_TOP); m_gameinfoLblWifiplayers = _addLabel("GAMEINFO/WIFIPLAYERS", theme.txtFont, L"", 550, 110, 68, 60, theme.txtFontColor, FTGX_JUSTIFY_LEFT | FTGX_ALIGN_TOP,m_wifi); _addUserLabels(m_gameinfoLblUser, 1, 1, "GAMEINFO"); diff --git a/source/menu/menu_main.cpp b/source/menu/menu_main.cpp index b6397b22..22e72cdb 100644 --- a/source/menu/menu_main.cpp +++ b/source/menu/menu_main.cpp @@ -949,7 +949,7 @@ void CMenu::_initMainMenu() m_mainBtnFavoritesOn = _addPicButton("MAIN/FAVORITES_ON", texFavOn, texFavOnS, 288, 400, 64, 64); m_mainBtnFavoritesOff = _addPicButton("MAIN/FAVORITES_OFF", texFavOff, texFavOffS, 288, 400, 64, 64); m_mainLblLetter = _addLabel("MAIN/LETTER", theme.titleFont, L"", 540, 40, 80, 80, theme.titleFontColor, FTGX_JUSTIFY_CENTER | FTGX_ALIGN_MIDDLE, emptyTex); - m_mainLblNotice = _addLabel("MAIN/NOTICE", theme.titleFont, L"", 340, 40, 280, 80, theme.titleFontColor, FTGX_JUSTIFY_RIGHT | FTGX_ALIGN_MIDDLE, emptyTex); + m_mainLblNotice = _addText("MAIN/NOTICE", theme.txtFont, L"", 340, 40, 280, 80, theme.titleFontColor, FTGX_JUSTIFY_RIGHT | FTGX_ALIGN_MIDDLE); m_mainLblCurMusic = _addLabel("MAIN/MUSIC", theme.btnFont, L"", 0, 40, 640, 48, theme.btnFontColor, FTGX_JUSTIFY_CENTER | FTGX_ALIGN_MIDDLE, theme.btnTexC); //#ifdef SHOWMEM m_mem1FreeSize = _addLabel("MEM1", theme.btnFont, L"", 40, 300, 480, 56, theme.btnFontColor, FTGX_JUSTIFY_LEFT, emptyTex);