Erwan
- fix issue 69 (Shadow.png load issue) - I put it back to a black 16x16 image. If you need more alpha, use the facilities provided by JGE rather than touching the file, thanks ;)
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 101 B After Width: | Height: | Size: 146 B |
@@ -54,8 +54,8 @@ class ObjectSelector : public GuiLayer
|
||||
T* fetchMemory(SelectorMemory&);
|
||||
|
||||
public:
|
||||
int bigMode;
|
||||
ObjectSelector(DuelLayers*);
|
||||
int bigMode;
|
||||
void Add(T*);
|
||||
void Remove(T*);
|
||||
bool CheckUserInput(u32 key);
|
||||
|
||||
@@ -59,8 +59,8 @@ void CardGui::Render()
|
||||
float scale = actZ * cardScale;
|
||||
|
||||
JQuad* shadow = resources.GetQuad("shadow");
|
||||
shadow->SetColor(ARGB(static_cast<unsigned char>(actA),128,255,255));
|
||||
renderer->RenderQuad(shadow, actX + (actZ-1)*15, actY + (actZ-1)*15, actT, 28*actZ, 40*actZ);
|
||||
shadow->SetColor(ARGB(static_cast<unsigned char>(actA)/2,255,255,255));
|
||||
renderer->RenderQuad(shadow, actX + (actZ-1)*15, actY + (actZ-1)*15, actT, 28*actZ/16, 40*actZ/16);
|
||||
|
||||
if (quad) {
|
||||
quad->SetColor(ARGB(static_cast<unsigned char>(actA),255,255,255));
|
||||
@@ -105,9 +105,8 @@ void CardGui::Render()
|
||||
}
|
||||
|
||||
if (tc && !tc->canTarget(card)) {
|
||||
shadow->SetColor(ARGB(static_cast<unsigned char>(actA),255,255,255));
|
||||
renderer->RenderQuad(shadow, actX, actY, actT, 28*actZ + 1, 40*actZ);
|
||||
renderer->RenderQuad(shadow, actX, actY, actT, 28*actZ + 1, 40*actZ); //Rendering it twice because shadow.png stupidly alreay has some transparency
|
||||
shadow->SetColor(ARGB(200,255,255,255));
|
||||
renderer->RenderQuad(shadow, actX, actY, actT, 28*actZ/16 + 1, 40*actZ/16);
|
||||
}
|
||||
|
||||
PlayGuiObject::Render();
|
||||
|
||||
@@ -24,7 +24,7 @@ struct True : public Exp { static inline bool test(CardSelector::Target* ref, Ca
|
||||
{ return true; } };
|
||||
|
||||
template<>
|
||||
CardSelector::ObjectSelector(DuelLayers* duel) : active(NULL), bigMode(BIG_MODE_SHOW), duel(duel), limitor(NULL), bigpos(300, 150, 1.0, 0.0, 220) {}
|
||||
CardSelector::ObjectSelector(DuelLayers* duel) : active(NULL), duel(duel), limitor(NULL), bigpos(300, 150, 1.0, 0.0, 220), bigMode(BIG_MODE_SHOW) {}
|
||||
|
||||
template<>
|
||||
void CardSelector::Add(CardSelector::Target* target)
|
||||
|
||||
@@ -137,8 +137,8 @@ void GameApp::Create()
|
||||
jq->SetHotSpot(12, 12);
|
||||
jq = resources.RetrieveQuad("DefenderIcon.png", 0, 0, 24, 23,"DefenderIcon",RETRIEVE_MANAGE);
|
||||
jq->SetHotSpot(12, 12);
|
||||
jq = resources.RetrieveQuad("shadow.png", 0, 0, 1, 1,"shadow",RETRIEVE_MANAGE);
|
||||
jq->SetHotSpot(0.5, 0.5);
|
||||
jq = resources.RetrieveQuad("shadow.png", 0, 0, 16, 16,"shadow",RETRIEVE_MANAGE);
|
||||
jq->SetHotSpot(8, 8);
|
||||
|
||||
collection = NEW MTGAllCards();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user