1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-08-13 19:54:17 +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: 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 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 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; bool onlyOn, selected;
CFunctionList<void()> callback2; //when disselecting CFunctionList<void()> callback2; //when de-selecting
void select(bool on); void select(bool on);
void clickLeft(tribool down, bool previousState); void clickLeft(tribool down, bool previousState);
}; };