1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-03-27 21:49:10 +02:00

Re-order declaration of 2 variables, and fix a typo.

This commit is contained in:
Frank Zago 2009-08-21 00:59:54 +00:00
parent 5352496bad
commit ac7c7a3d23

View File

@ -83,8 +83,8 @@ class CHighlightableButton
public:
CHighlightableButton(const CFunctionList<void()> &onSelect, const CFunctionList<void()> &onDeselect, const std::map<int,std::string> &Name, const std::string &HelpBox, bool playerColoredButton, const std::string &defName, std::vector<std::string> * add, int x, int y, int key=0);
CHighlightableButton(const std::pair<std::string, std::string> help, const CFunctionList<void()> &onSelect, int x, int y, const std::string &defName, int myid, int key=0, std::vector<std::string> * add = NULL, bool playerColoredButton = false );//c-tor
bool selected, onlyOn;
CFunctionList<void()> callback2; //when disselecting
bool onlyOn, selected;
CFunctionList<void()> callback2; //when de-selecting
void select(bool on);
void clickLeft(tribool down, bool previousState);
};