mirror of
https://github.com/glest/glest-source.git
synced 2025-10-01 01:46:42 +02:00
- added free software logos
- updated the client lobby screen so the chat window does not overlap UI controls
This commit is contained in:
@@ -137,6 +137,25 @@ void MenuStateRoot::render(){
|
||||
renderer.renderTextureQuad(
|
||||
(metrics.getVirtualW()-w)/2, 475-h/2, w, h,
|
||||
coreData.getLogoTexture(), GraphicComponent::getFade());
|
||||
|
||||
int maxLogoWidth=0;
|
||||
for(int idx = 0; idx < coreData.getLogoTextureExtraCount(); ++idx) {
|
||||
Texture2D *extraLogo = coreData.getLogoTextureExtra(idx);
|
||||
maxLogoWidth += extraLogo->getPixmap()->getW();
|
||||
}
|
||||
|
||||
int currentX = (metrics.getVirtualW()-maxLogoWidth)/2;
|
||||
int currentY = 50;
|
||||
for(int idx = 0; idx < coreData.getLogoTextureExtraCount(); ++idx) {
|
||||
Texture2D *extraLogo = coreData.getLogoTextureExtra(idx);
|
||||
|
||||
renderer.renderTextureQuad(
|
||||
currentX, currentY,
|
||||
extraLogo->getPixmap()->getW(), extraLogo->getPixmap()->getH(),
|
||||
extraLogo, GraphicComponent::getFade());
|
||||
|
||||
currentX += extraLogo->getPixmap()->getW();
|
||||
}
|
||||
renderer.renderButton(&buttonNewGame);
|
||||
renderer.renderButton(&buttonJoinGame);
|
||||
renderer.renderButton(&buttonMasterserverGame);
|
||||
|
Reference in New Issue
Block a user