mirror of
https://github.com/Fledge68/WiiFlow_Lite.git
synced 2024-11-23 19:59:16 +01:00
-added option to disable banner in game settings,
banner_in_settings in wiiflow.ini
This commit is contained in:
parent
1b7d76177e
commit
7b4d983f87
@ -224,9 +224,10 @@ void BannerWindow::Draw(void)
|
|||||||
DrawRectangle(0.0f, 0.0f, video->width(), video->height(), (GXColor) {0, 0, 0, Brightness});
|
DrawRectangle(0.0f, 0.0f, video->width(), video->height(), (GXColor) {0, 0, 0, Brightness});
|
||||||
}
|
}
|
||||||
|
|
||||||
void BannerWindow::SetBrightness(float b)
|
void BannerWindow::ToogleGameSettings()
|
||||||
{
|
{
|
||||||
Brightness = b;
|
ToogleZoom();
|
||||||
|
Brightness = (Brightness > 1.f ? 0.f : 200.f);
|
||||||
}
|
}
|
||||||
|
|
||||||
void BannerWindow::DrawRectangle(f32 x, f32 y, f32 width, f32 height, GXColor color)
|
void BannerWindow::DrawRectangle(f32 x, f32 y, f32 width, f32 height, GXColor color)
|
||||||
|
@ -51,10 +51,11 @@ class BannerWindow
|
|||||||
void LoadBannerBin(u8 *bnr, u32 bnr_size, CVideo *vid, u8 *font1, u8 *font2);
|
void LoadBannerBin(u8 *bnr, u32 bnr_size, CVideo *vid, u8 *font1, u8 *font2);
|
||||||
int GetSelectedGame() { return gameSelected; }
|
int GetSelectedGame() { return gameSelected; }
|
||||||
bool GetZoomSetting() { return AnimZoom; }
|
bool GetZoomSetting() { return AnimZoom; }
|
||||||
|
bool GetInGameSettings() { return (Brightness > 1.f ? true : false); }
|
||||||
void CreateGCBanner(u8 *bnr, CVideo *vid, u8 *font1, u8 *font2, const wchar_t *title);
|
void CreateGCBanner(u8 *bnr, CVideo *vid, u8 *font1, u8 *font2, const wchar_t *title);
|
||||||
void Draw(void);
|
void Draw(void);
|
||||||
bool ToogleZoom(void);
|
bool ToogleZoom(void);
|
||||||
void SetBrightness(float b);
|
void ToogleGameSettings();
|
||||||
protected:
|
protected:
|
||||||
int MainLoop();
|
int MainLoop();
|
||||||
void Animate(void);
|
void Animate(void);
|
||||||
|
@ -134,6 +134,7 @@ CMenu::CMenu(CVideo &vid) :
|
|||||||
m_bgCrossFade = 0;
|
m_bgCrossFade = 0;
|
||||||
m_bnrSndVol = 0;
|
m_bnrSndVol = 0;
|
||||||
m_gameSettingsPage = 0;
|
m_gameSettingsPage = 0;
|
||||||
|
m_bnr_settings = true;
|
||||||
m_directLaunch = false;
|
m_directLaunch = false;
|
||||||
m_exit = false;
|
m_exit = false;
|
||||||
m_initialCoverStatusComplete = false;
|
m_initialCoverStatusComplete = false;
|
||||||
@ -454,6 +455,8 @@ void CMenu::init(void)
|
|||||||
m_favorites = m_cfg.getBool(domain, "favorites", false);
|
m_favorites = m_cfg.getBool(domain, "favorites", false);
|
||||||
m_max_categories = m_cat.getInt("GENERAL", "numcategories", 21);
|
m_max_categories = m_cat.getInt("GENERAL", "numcategories", 21);
|
||||||
|
|
||||||
|
m_bnr_settings = m_cfg.getBool("GENERAL", "banner_in_settings", true);
|
||||||
|
|
||||||
m_cfg.setString("GAMERCARD", "gamercards", "wiinnertag|dutag");
|
m_cfg.setString("GAMERCARD", "gamercards", "wiinnertag|dutag");
|
||||||
m_cfg.getString("GAMERCARD", "wiinnertag_url", WIINNERTAG_URL);
|
m_cfg.getString("GAMERCARD", "wiinnertag_url", WIINNERTAG_URL);
|
||||||
m_cfg.getString("GAMERCARD", "wiinnertag_key", "");
|
m_cfg.getString("GAMERCARD", "wiinnertag_key", "");
|
||||||
@ -1771,7 +1774,7 @@ void CMenu::_mainLoopCommon(bool withCF, bool blockReboot, bool adjusting)
|
|||||||
}
|
}
|
||||||
|
|
||||||
m_fa.draw();
|
m_fa.draw();
|
||||||
if(m_banner->GetSelectedGame())
|
if(m_banner->GetSelectedGame() && (!m_banner->GetInGameSettings() || (m_banner->GetInGameSettings() && m_bnr_settings)))
|
||||||
m_banner->Draw();
|
m_banner->Draw();
|
||||||
|
|
||||||
m_btnMgr.draw();
|
m_btnMgr.draw();
|
||||||
|
@ -77,6 +77,7 @@ private:
|
|||||||
SmartBuf m_base_font;
|
SmartBuf m_base_font;
|
||||||
u32 m_base_font_size;
|
u32 m_base_font_size;
|
||||||
u8 m_aa;
|
u8 m_aa;
|
||||||
|
bool m_bnr_settings;
|
||||||
bool m_directLaunch;
|
bool m_directLaunch;
|
||||||
bool m_locked;
|
bool m_locked;
|
||||||
bool m_favorites;
|
bool m_favorites;
|
||||||
|
@ -520,11 +520,9 @@ void CMenu::_game(bool launch)
|
|||||||
_hideGame();
|
_hideGame();
|
||||||
m_gameSelected = true;
|
m_gameSelected = true;
|
||||||
|
|
||||||
m_banner->ToogleZoom();
|
m_banner->ToogleGameSettings();
|
||||||
m_banner->SetBrightness(200.f);
|
|
||||||
_gameSettings();
|
_gameSettings();
|
||||||
m_banner->SetBrightness(0.f);
|
m_banner->ToogleGameSettings();
|
||||||
m_banner->ToogleZoom();
|
|
||||||
|
|
||||||
_showGame();
|
_showGame();
|
||||||
if(!m_gameSound.IsPlaying())
|
if(!m_gameSound.IsPlaying())
|
||||||
|
Loading…
Reference in New Issue
Block a user