Erwan
- bug fix in JGE++ audio (improve HBL compatibility) - Added new rewards in story mode: random card, card (either by "name" or id), specific set - Story mode: added possibility to choose music, and bg for duel. -- See "01. Where it all begins" for examples of new features
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
#include "../include/config.h"
|
||||
#include "../include/GameApp.h"
|
||||
#include "../include/GuiBackground.h"
|
||||
#include "../include/GameObserver.h"
|
||||
#include "../include/Rules.h"
|
||||
|
||||
GuiBackground::GuiBackground()
|
||||
{
|
||||
@@ -13,5 +15,14 @@ GuiBackground::~GuiBackground()
|
||||
void GuiBackground::Render()
|
||||
{
|
||||
JRenderer* renderer = JRenderer::GetInstance();
|
||||
renderer->RenderQuad(resources.RetrieveTempQuad("backdrop.jpg"), 0, 18);
|
||||
JQuad * quad = NULL;
|
||||
GameObserver * go = GameObserver::GetInstance();
|
||||
if (go && go->mRules && go->mRules->bg.size()) {
|
||||
quad = resources.RetrieveTempQuad(go->mRules->bg);
|
||||
}
|
||||
if (!quad) {
|
||||
quad = resources.RetrieveTempQuad("backdrop.jpg");
|
||||
}
|
||||
if (!quad) return;
|
||||
renderer->RenderQuad(quad, 0, 18);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user