-windows makefile update
This commit is contained in:
wagic.the.homebrew@gmail.com
2009-08-22 07:04:54 +00:00
parent 9eccae4e1e
commit 01d68f9b3c
7 changed files with 105 additions and 10 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 42 KiB

After

Width:  |  Height:  |  Size: 151 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 63 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 16 KiB

View File

@@ -53,6 +53,7 @@ class ShopItem:public JGuiObject{
class ShopItems:public JGuiController,public JGuiListener{
private:
int showList;
PlayerData * playerdata;
PriceList * pricelist;
int mX, mY, mHeight;

View File

@@ -166,6 +166,7 @@ void GameStateShop::Render()
itemFont->SetColor(ARGB(255,255,255,255));
char c[4096];
r->FillRect(0,SCREEN_HEIGHT-17,SCREEN_WIDTH,17,ARGB(128,0,0,0));
sprintf(c, _("press [] to refresh").c_str());
unsigned int len = 4 + itemFont->GetStringWidth(c);
itemFont->DrawString(c,SCREEN_WIDTH-len,SCREEN_HEIGHT-12);

View File

@@ -7,17 +7,19 @@
#include <hge/hgedistort.h>
float ShopItems::_x1[] = { 40, 3, 23, 99,142,182, 90,132,177,106,163};
float ShopItems::_y1[] = {156,174,194,166,166,162,184,185,180,211,208};
float ShopItems::_x2[] = { 44, 25, 64,128,171,211,121,165,209,143,200};
float ShopItems::_y2[] = {147,163,190,166,166,162,184,185,180,211,208};
float ShopItems::_x1[] = { 79, 20, 27,103,154,187,102,145,199,133,183};
float ShopItems::_y1[] = {150,193,222,167,164,156,195,190,176,220,220};
float ShopItems::_x2[] = {103, 49, 73,135,183,213,138,181,231,171,225};
float ShopItems::_y2[] = {155,180,218,166,166,154,195,186,177,225,216};
float ShopItems::_x3[] = { 48, 60, 10, 96,139,190, 81,146,189, 98,191};
float ShopItems::_y3[] = {163,202,255,183,180,170,219,212,195,250,251};
float ShopItems::_x4[] = { 74, 88, 64,131,171,221,123,187,225,141,237};
float ShopItems::_y4[] = {167,187,248,182,182,168,219,208,196,258,245};
float ShopItems::_x3[] = { 86, 47, 12, 85,133,177, 73,120,170, 88,153};
float ShopItems::_y3[] = {152,177,216,181,180,176,203,204,198,237,232};
float ShopItems::_x4[] = { 86, 66, 58,118,164,207,108,156,205,130,199};
float ShopItems::_y4[] = {145,167,211,181,180,176,203,204,198,237,232};
ShopItem::ShopItem(int id, JLBFont *font, char* text, JQuad * _quad,JQuad * _thumb, float _xy[], bool hasFocus, int _price): JGuiObject(id), mFont(font), mText(text), quad(_quad), thumb(_thumb), price(_price)
{
@@ -160,7 +162,7 @@ void ShopItem::Render(){
}else{
// if (card) CardGui::alternateRender(card,NULL,SCREEN_WIDTH/2 + 100 + 20,133,0, 0.9f);
}
mFont->DrawString(mText.c_str(), 100, SCREEN_HEIGHT - 30);
mFont->DrawString(mText.c_str(), SCREEN_WIDTH/2 - 50, SCREEN_HEIGHT - 16,JGETEXT_CENTER);
}
}
@@ -265,9 +267,16 @@ void ShopItems::Update(float dt){
dialog->Update(dt);
}
}else{
u32 buttons[] = {PSP_CTRL_LEFT,PSP_CTRL_DOWN,PSP_CTRL_RIGHT,PSP_CTRL_UP,PSP_CTRL_SQUARE};
for (int i = 0; i < 5; ++i){
if (JGE::GetInstance()->GetButtonClick(buttons[i])){
showList = 500;
}
}
SAFE_DELETE(dialog);
JGuiController::Update(dt);
}
}
}

View File

@@ -256,6 +256,10 @@
RelativePath=".\src\CardGui.cpp"
>
</File>
<File
RelativePath=".\src\CardSelector.cpp"
>
</File>
<File
RelativePath=".\src\ConstraintResolver.cpp"
>
@@ -368,18 +372,50 @@
RelativePath=".\src\GameStateShop.cpp"
>
</File>
<File
RelativePath=".\src\GuiAvatars.cpp"
>
</File>
<File
RelativePath=".\src\GuiBackground.cpp"
>
</File>
<File
RelativePath=".\src\GuiCardsController.cpp"
>
</File>
<File
RelativePath=".\src\GuiCombat.cpp"
>
</File>
<File
RelativePath=".\src\GuiFrame.cpp"
>
</File>
<File
RelativePath=".\src\GuiHand.cpp"
>
</File>
<File
RelativePath=".\src\GuiLayers.cpp"
>
</File>
<File
RelativePath=".\src\GuiMana.cpp"
>
</File>
<File
RelativePath=".\src\GuiPhaseBar.cpp"
>
</File>
<File
RelativePath=".\src\GuiPlay.cpp"
>
</File>
<File
RelativePath=".\src\GuiStatic.cpp"
>
</File>
<File
RelativePath=".\src\Logger.cpp"
>
@@ -460,6 +496,10 @@
RelativePath=".\src\PlayGuiObjectController.cpp"
>
</File>
<File
RelativePath=".\src\Pos.cpp"
>
</File>
<File
RelativePath=".\src\PriceList.cpp"
>
@@ -589,6 +629,10 @@
RelativePath=".\include\CardGui.h"
>
</File>
<File
RelativePath=".\include\CardSelector.h"
>
</File>
<File
RelativePath=".\include\config.h"
>
@@ -673,18 +717,50 @@
RelativePath=".\include\GameStateShop.h"
>
</File>
<File
RelativePath=".\include\GuiAvatars.h"
>
</File>
<File
RelativePath=".\include\GuiBackground.h"
>
</File>
<File
RelativePath=".\include\GuiCardsController.h"
>
</File>
<File
RelativePath=".\include\GuiCombat.h"
>
</File>
<File
RelativePath=".\include\GuiFrame.h"
>
</File>
<File
RelativePath=".\include\GuiHand.h"
>
</File>
<File
RelativePath=".\include\GuiLayers.h"
>
</File>
<File
RelativePath=".\include\GuiMana.h"
>
</File>
<File
RelativePath=".\include\GuiPhaseBar.h"
>
</File>
<File
RelativePath=".\include\GuiPlay.h"
>
</File>
<File
RelativePath=".\include\GuiStatic.h"
>
</File>
<File
RelativePath=".\include\Logger.h"
>
@@ -745,6 +821,10 @@
RelativePath=".\include\OptionItem.h"
>
</File>
<File
RelativePath=".\include\OSD.h"
>
</File>
<File
RelativePath=".\include\PhaseRing.h"
>
@@ -765,6 +845,10 @@
RelativePath=".\include\PlayGuiObjectController.h"
>
</File>
<File
RelativePath=".\include\Pos.h"
>
</File>
<File
RelativePath=".\include\PriceList.h"
>