mirror of
https://github.com/wiiu-env/launchiine.git
synced 2024-11-22 01:39:18 +01:00
Fix the particle to be in background only
This commit is contained in:
parent
382964ca1d
commit
b8226ea729
@ -29,7 +29,8 @@ GuiIconGrid::GuiIconGrid(int32_t w, int32_t h, uint64_t GameIndex)
|
|||||||
, touchTrigger(GuiTrigger::CHANNEL_1, GuiTrigger::VPAD_TOUCH)
|
, touchTrigger(GuiTrigger::CHANNEL_1, GuiTrigger::VPAD_TOUCH)
|
||||||
, wpadTouchTrigger(GuiTrigger::CHANNEL_2 | GuiTrigger::CHANNEL_3 | GuiTrigger::CHANNEL_4 | GuiTrigger::CHANNEL_5, GuiTrigger::BUTTON_A)
|
, wpadTouchTrigger(GuiTrigger::CHANNEL_2 | GuiTrigger::CHANNEL_3 | GuiTrigger::CHANNEL_4 | GuiTrigger::CHANNEL_5, GuiTrigger::BUTTON_A)
|
||||||
, noIcon(Resources::GetFile("noGameIcon.png"), Resources::GetFileSize("noGameIcon.png"), GX2_TEX_CLAMP_MODE_MIRROR) {
|
, noIcon(Resources::GetFile("noGameIcon.png"), Resources::GetFileSize("noGameIcon.png"), GX2_TEX_CLAMP_MODE_MIRROR) {
|
||||||
append(&particleBgImage);
|
|
||||||
|
particleBgImage.setParent(this);
|
||||||
selectedGame = GameIndex;
|
selectedGame = GameIndex;
|
||||||
listOffset = selectedGame / (MAX_COLS * MAX_ROWS);
|
listOffset = selectedGame / (MAX_COLS * MAX_ROWS);
|
||||||
targetLeftPosition = -listOffset * getWidth();
|
targetLeftPosition = -listOffset * getWidth();
|
||||||
@ -222,6 +223,12 @@ void GuiIconGrid::updateButtonPositions() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void GuiIconGrid::draw(CVideo *pVideo) {
|
void GuiIconGrid::draw(CVideo *pVideo) {
|
||||||
|
|
||||||
|
//! the BG needs to be rendered to stencil
|
||||||
|
pVideo->setStencilRender(true);
|
||||||
|
particleBgImage.draw(pVideo);
|
||||||
|
pVideo->setStencilRender(false);
|
||||||
|
|
||||||
containerMutex.lock();
|
containerMutex.lock();
|
||||||
GuiFrame::draw(pVideo);
|
GuiFrame::draw(pVideo);
|
||||||
containerMutex.unlock();
|
containerMutex.unlock();
|
||||||
|
Loading…
Reference in New Issue
Block a user