mirror of
https://github.com/glest/glest-source.git
synced 2025-02-24 19:52:25 +01:00
Make it more obvious where to join a game in the internet menu
Buttons can be set to always lighted(flashing). This is first used in the internet menu.
This commit is contained in:
parent
b5d609586a
commit
1a8c28cc93
@ -341,6 +341,7 @@ const int GraphicButton::defW= 90;
|
||||
|
||||
GraphicButton::GraphicButton(std::string containerName, std::string objName) : GraphicComponent(containerName,objName) {
|
||||
lighted = false;
|
||||
alwaysLighted = false;
|
||||
useCustomTexture = false;
|
||||
customTexture = NULL;
|
||||
}
|
||||
|
@ -212,6 +212,7 @@ public:
|
||||
|
||||
private:
|
||||
bool lighted;
|
||||
bool alwaysLighted;
|
||||
|
||||
bool useCustomTexture;
|
||||
Texture *customTexture;
|
||||
@ -226,9 +227,10 @@ public:
|
||||
void setUseCustomTexture(bool value) { useCustomTexture=value; }
|
||||
void setCustomTexture(Texture *value) { customTexture=value; }
|
||||
|
||||
bool getLighted() const {return lighted;}
|
||||
|
||||
bool getLighted() const {return lighted||alwaysLighted;}
|
||||
void setLighted(bool lighted) {this->lighted= lighted;}
|
||||
bool getAlwaysLighted() const {return alwaysLighted;}
|
||||
void setAlwaysLighted(bool value) {this->alwaysLighted= value;}
|
||||
virtual bool mouseMove(int x, int y);
|
||||
};
|
||||
|
||||
|
@ -154,6 +154,7 @@ ServerLine::ServerLine(MasterServerInfo *mServerInfo, int lineIndex, int baseY,
|
||||
i+= 130;
|
||||
selectButton.init(i, baseY - lineOffset, 30);
|
||||
selectButton.setText(">");
|
||||
selectButton.setAlwaysLighted(true);
|
||||
|
||||
//printf("glestVersionString [%s] masterServerInfo->getGlestVersion() [%s]\n",glestVersionString.c_str(),masterServerInfo->getGlestVersion().c_str());
|
||||
compatible= checkVersionComptability(glestVersionString, masterServerInfo.getGlestVersion());
|
||||
|
Loading…
x
Reference in New Issue
Block a user