- New shop GUI. (don't mind the back image, it will change soon)
This commit is contained in:
wagic.the.homebrew@gmail.com
2009-08-22 00:46:45 +00:00
parent ffa0c9b057
commit bf4262c0a0
5 changed files with 106 additions and 27 deletions

View File

@@ -42,6 +42,9 @@ class GameStateShop: public GameState, public JGuiListener
virtual void Render();
virtual void ButtonPressed(int controllerId, int controlId);
};

View File

@@ -13,6 +13,8 @@
#include <string>
using std::string;
class hgeDistortionMesh;
#define SHOP_BOOSTERS 3
class ShopItem:public JGuiObject{
@@ -20,12 +22,12 @@ class ShopItem:public JGuiObject{
bool mHasFocus;
JLBFont *mFont;
string mText;
int mX;
int mY;
float xy[8];
JQuad * quad;
JQuad * thumb;
float mScale;
float mTargetScale;
hgeDistortionMesh* mesh;
public:
@@ -33,8 +35,8 @@ class ShopItem:public JGuiObject{
int quantity;
MTGCard * card;
int price;
ShopItem(int id, JLBFont * font, int _cardid, int x, int y, bool hasFocus, MTGAllCards * collection, int _price, DeckDataWrapper * ddw);
ShopItem(int id, JLBFont * font, char* text, JQuad * _quad, JQuad * _thumb,int x, int y, bool hasFocus, int _price);
ShopItem(int id, JLBFont * font, int _cardid, float _xy[], bool hasFocus, MTGAllCards * collection, int _price, DeckDataWrapper * ddw);
ShopItem(int id, JLBFont * font, char* text, JQuad * _quad, JQuad * _thumb,float _xy[], bool hasFocus, int _price);
~ShopItem();
int updateCount(DeckDataWrapper * ddw);
@@ -74,6 +76,7 @@ class ShopItems:public JGuiController,public JGuiListener{
virtual void ButtonPressed(int controllerId, int controlId);
void savePriceList();
void saveAll();
static float _x1[],_y1[],_x2[],_y2[],_x3[],_y3[],_x4[],_y4[];
};
#endif