2010-03-23 01:38:19 +00:00
|
|
|
|
// ==============================================================
|
|
|
|
|
// This file is part of Glest (www.glest.org)
|
|
|
|
|
//
|
|
|
|
|
// Copyright (C) 2001-2005 Marti<74>o Figueroa
|
|
|
|
|
//
|
|
|
|
|
// You can redistribute this code and/or modify it under
|
|
|
|
|
// the terms of the GNU General Public License as published
|
|
|
|
|
// by the Free Software Foundation; either version 2 of the
|
|
|
|
|
// License, or (at your option) any later version
|
|
|
|
|
// ==============================================================
|
|
|
|
|
|
|
|
|
|
#ifndef _GLEST_GAME_MENUSTATEOPTIONS_H_
|
|
|
|
|
#define _GLEST_GAME_MENUSTATEOPTIONS_H_
|
|
|
|
|
|
|
|
|
|
#include "main_menu.h"
|
|
|
|
|
|
|
|
|
|
namespace Glest{ namespace Game{
|
|
|
|
|
|
|
|
|
|
// ===============================
|
|
|
|
|
// class MenuStateOptions
|
|
|
|
|
// ===============================
|
|
|
|
|
|
|
|
|
|
class MenuStateOptions: public MenuState{
|
|
|
|
|
private:
|
|
|
|
|
GraphicButton buttonOk;
|
|
|
|
|
GraphicButton buttonAbort;
|
|
|
|
|
GraphicButton buttonAutoConfig;
|
|
|
|
|
|
|
|
|
|
GraphicLabel labelLang;
|
|
|
|
|
GraphicLabel labelShadows;
|
|
|
|
|
GraphicLabel labelFilter;
|
|
|
|
|
GraphicLabel labelTextures3D;
|
|
|
|
|
GraphicLabel labelLights;
|
|
|
|
|
GraphicLabel labelUnitParticles;
|
|
|
|
|
GraphicLabel labelVolumeFx;
|
|
|
|
|
GraphicLabel labelVolumeAmbient;
|
|
|
|
|
GraphicLabel labelVolumeMusic;
|
|
|
|
|
GraphicListBox listBoxLang;
|
|
|
|
|
GraphicListBox listBoxShadows;
|
|
|
|
|
GraphicListBox listBoxFilter;
|
|
|
|
|
GraphicListBox listBoxTextures3D;
|
|
|
|
|
GraphicListBox listBoxLights;
|
|
|
|
|
GraphicListBox listBoxUnitParticles;
|
|
|
|
|
GraphicListBox listBoxVolumeFx;
|
|
|
|
|
GraphicListBox listBoxVolumeAmbient;
|
|
|
|
|
GraphicListBox listBoxVolumeMusic;
|
|
|
|
|
GraphicLabel labelPlayerName;
|
|
|
|
|
GraphicLabel labelPlayerNameLabel;
|
|
|
|
|
GraphicLabel *activeInputLabel;
|
2010-04-03 17:17:15 +00:00
|
|
|
|
GraphicLabel labelServerPort;
|
|
|
|
|
GraphicLabel labelServerPortLabel;
|
|
|
|
|
|
2010-03-23 01:38:19 +00:00
|
|
|
|
|
2010-04-01 00:13:28 +00:00
|
|
|
|
GraphicLabel labelScreenModes;
|
|
|
|
|
GraphicListBox listBoxScreenModes;
|
|
|
|
|
list<ModeInfo> modeInfos;
|
|
|
|
|
|
2010-05-03 22:07:27 +00:00
|
|
|
|
GraphicLabel labelFullscreenWindowed;
|
|
|
|
|
GraphicListBox listBoxFullscreenWindowed;
|
|
|
|
|
|
2010-04-01 00:13:28 +00:00
|
|
|
|
GraphicLabel labelVideoSection;
|
|
|
|
|
GraphicLabel labelAudioSection;
|
|
|
|
|
GraphicLabel labelMiscSection;
|
|
|
|
|
|
2010-04-07 22:20:28 +00:00
|
|
|
|
GraphicLabel labelFontSizeAdjustment;
|
|
|
|
|
GraphicListBox listFontSizeAdjustment;
|
2010-04-03 17:17:15 +00:00
|
|
|
|
|
2010-04-02 14:21:43 +00:00
|
|
|
|
GraphicMessageBox mainMessageBox;
|
|
|
|
|
int mainMessageBoxState;
|
|
|
|
|
|
2010-03-23 01:38:19 +00:00
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
MenuStateOptions(Program *program, MainMenu *mainMenu);
|
|
|
|
|
|
|
|
|
|
void mouseClick(int x, int y, MouseButton mouseButton);
|
|
|
|
|
void mouseMove(int x, int y, const MouseState *mouseState);
|
|
|
|
|
void render();
|
|
|
|
|
virtual void keyDown(char key);
|
|
|
|
|
virtual void keyPress(char c);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
void saveConfig();
|
|
|
|
|
void setActiveInputLable(GraphicLabel* newLable);
|
2010-04-02 14:21:43 +00:00
|
|
|
|
void showMessageBox(const string &text, const string &header, bool toggle);
|
2010-03-23 01:38:19 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
}}//end namespace
|
|
|
|
|
|
|
|
|
|
#endif
|