1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-06 09:09:40 +02:00

More stuff for selection window.

This commit is contained in:
Michał W. Urbańczyk
2007-12-25 16:25:53 +00:00
parent 06a081c924
commit 01c996591a
8 changed files with 141 additions and 24 deletions

View File

@@ -131,6 +131,7 @@ public:
};
class CSelWindow : public CInfoWindow //component selection window
{
public:
void selectionChange(SComponent * to);
void okClicked(tribool down);
void close();
@@ -140,7 +141,7 @@ class SComponent : public ClickableR
public:
enum Etype
{
primskill, secskill, resource, creature, artifact
primskill, secskill, resource, creature, artifact, experience
} type;
int subtype;
int val;
@@ -166,7 +167,7 @@ public:
void clickLeft(tribool down);
CSelectableComponent(Etype Type, int Sub, int Val, CSelWindow * Owner, SDL_Surface * Border=NULL);
CSelectableComponent(Etype Type, int Sub, int Val, CSelWindow * Owner=NULL, SDL_Surface * Border=NULL);
void activate();
void deactivate();
void select(bool on);
@@ -208,6 +209,7 @@ public:
void heroCreated(const CGHeroInstance* hero);
void heroPrimarySkillChanged(const CGHeroInstance * hero, int which, int val);
void receivedResource(int type, int val);
void showSelDialog(std::string text, std::vector<SComponent*> & components, int askID);
void showComp(SComponent comp);