2010-03-23 02:38:19 +01:00
|
|
|
|
// ==============================================================
|
|
|
|
|
// This file is part of Glest (www.glest.org)
|
|
|
|
|
//
|
|
|
|
|
// Copyright (C) 2001-2005 Marti<74>o Figueroa
|
|
|
|
|
//
|
2010-12-24 04:36:34 +01:00
|
|
|
|
// 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
|
2010-03-23 02:38:19 +01:00
|
|
|
|
// License, or (at your option) any later version
|
|
|
|
|
// ==============================================================
|
|
|
|
|
|
|
|
|
|
#ifndef _GLEST_GAME_MENUSTATEOPTIONS_H_
|
|
|
|
|
#define _GLEST_GAME_MENUSTATEOPTIONS_H_
|
|
|
|
|
|
|
|
|
|
#include "main_menu.h"
|
2010-09-07 07:25:40 +02:00
|
|
|
|
#include "leak_dumper.h"
|
2010-03-23 02:38:19 +01:00
|
|
|
|
|
|
|
|
|
namespace Glest{ namespace Game{
|
|
|
|
|
|
|
|
|
|
// ===============================
|
2010-12-24 04:36:34 +01:00
|
|
|
|
// class MenuStateOptions
|
2010-03-23 02:38:19 +01:00
|
|
|
|
// ===============================
|
|
|
|
|
|
|
|
|
|
class MenuStateOptions: public MenuState{
|
|
|
|
|
private:
|
2010-09-09 08:42:39 +02:00
|
|
|
|
|
2010-12-24 04:36:34 +01:00
|
|
|
|
GraphicButton buttonOk;
|
2010-03-23 02:38:19 +01:00
|
|
|
|
GraphicButton buttonAbort;
|
2010-12-24 04:36:34 +01:00
|
|
|
|
GraphicButton buttonAutoConfig;
|
2010-07-11 09:38:08 +02:00
|
|
|
|
GraphicButton buttonVideoInfo;
|
2010-12-24 04:36:34 +01:00
|
|
|
|
GraphicButton buttonKeyboardSetup; // configure the keyboard
|
|
|
|
|
|
2010-03-23 02:38:19 +01:00
|
|
|
|
GraphicLabel labelLang;
|
|
|
|
|
GraphicLabel labelShadows;
|
|
|
|
|
GraphicLabel labelFilter;
|
|
|
|
|
GraphicLabel labelTextures3D;
|
|
|
|
|
GraphicLabel labelLights;
|
|
|
|
|
GraphicLabel labelUnitParticles;
|
2011-03-06 14:11:22 +01:00
|
|
|
|
GraphicLabel labelTilesetParticles;
|
2010-07-16 08:35:22 +02:00
|
|
|
|
GraphicLabel labelSoundFactory;
|
2010-03-23 02:38:19 +01:00
|
|
|
|
GraphicLabel labelVolumeFx;
|
|
|
|
|
GraphicLabel labelVolumeAmbient;
|
|
|
|
|
GraphicLabel labelVolumeMusic;
|
|
|
|
|
GraphicListBox listBoxLang;
|
|
|
|
|
GraphicListBox listBoxShadows;
|
|
|
|
|
GraphicListBox listBoxFilter;
|
2010-12-27 01:59:57 +01:00
|
|
|
|
GraphicCheckBox checkBoxTextures3D;
|
2010-03-23 02:38:19 +01:00
|
|
|
|
GraphicListBox listBoxLights;
|
2010-12-27 01:59:57 +01:00
|
|
|
|
GraphicCheckBox checkBoxUnitParticles;
|
2011-03-06 14:11:22 +01:00
|
|
|
|
GraphicCheckBox checkBoxTilesetParticles;
|
2010-07-16 08:35:22 +02:00
|
|
|
|
GraphicListBox listBoxSoundFactory;
|
2010-03-23 02:38:19 +01:00
|
|
|
|
GraphicListBox listBoxVolumeFx;
|
|
|
|
|
GraphicListBox listBoxVolumeAmbient;
|
|
|
|
|
GraphicListBox listBoxVolumeMusic;
|
|
|
|
|
GraphicLabel labelPlayerName;
|
|
|
|
|
GraphicLabel labelPlayerNameLabel;
|
|
|
|
|
GraphicLabel *activeInputLabel;
|
2010-04-03 19:17:15 +02:00
|
|
|
|
GraphicLabel labelServerPort;
|
|
|
|
|
GraphicLabel labelServerPortLabel;
|
2010-12-24 04:36:34 +01:00
|
|
|
|
|
|
|
|
|
|
2010-04-01 02:13:28 +02:00
|
|
|
|
GraphicLabel labelScreenModes;
|
|
|
|
|
GraphicListBox listBoxScreenModes;
|
|
|
|
|
list<ModeInfo> modeInfos;
|
2010-12-24 04:36:34 +01:00
|
|
|
|
|
2010-05-04 00:07:27 +02:00
|
|
|
|
GraphicLabel labelFullscreenWindowed;
|
2010-12-27 01:59:57 +01:00
|
|
|
|
GraphicCheckBox checkBoxFullscreenWindowed;
|
2010-12-24 04:36:34 +01:00
|
|
|
|
|
2010-04-01 02:13:28 +02:00
|
|
|
|
GraphicLabel labelVideoSection;
|
|
|
|
|
GraphicLabel labelAudioSection;
|
|
|
|
|
GraphicLabel labelMiscSection;
|
2011-01-09 19:05:10 +01:00
|
|
|
|
GraphicLabel labelNetworkSettings;
|
2010-12-24 04:36:34 +01:00
|
|
|
|
|
2010-04-08 00:20:28 +02:00
|
|
|
|
GraphicLabel labelFontSizeAdjustment;
|
|
|
|
|
GraphicListBox listFontSizeAdjustment;
|
2010-12-24 04:36:34 +01:00
|
|
|
|
|
2010-09-26 23:34:00 +02:00
|
|
|
|
GraphicLabel labelMapPreview;
|
2010-12-27 01:59:57 +01:00
|
|
|
|
GraphicCheckBox checkBoxMapPreview;
|
2010-12-24 04:36:34 +01:00
|
|
|
|
|
2010-04-02 16:21:43 +02:00
|
|
|
|
GraphicMessageBox mainMessageBox;
|
|
|
|
|
int mainMessageBoxState;
|
2010-12-24 04:36:34 +01:00
|
|
|
|
|
2010-10-11 02:53:25 +02:00
|
|
|
|
GraphicLabel labelPublishServerExternalPort;
|
|
|
|
|
GraphicListBox listBoxPublishServerExternalPort;
|
2010-12-24 04:36:34 +01:00
|
|
|
|
|
2010-03-23 02:38:19 +01:00
|
|
|
|
|
2011-01-06 08:15:43 +01:00
|
|
|
|
GraphicLabel labelEnableFTP;
|
2011-01-07 06:32:47 +01:00
|
|
|
|
GraphicCheckBox checkBoxEnableFTP;
|
|
|
|
|
|
|
|
|
|
GraphicLabel labelEnableFTPServer;
|
|
|
|
|
GraphicCheckBox checkBoxEnableFTPServer;
|
2011-01-06 08:15:43 +01:00
|
|
|
|
|
|
|
|
|
GraphicLabel labelFTPServerPortLabel;
|
|
|
|
|
GraphicLabel labelFTPServerPort;
|
|
|
|
|
|
|
|
|
|
GraphicLabel labelFTPServerDataPortsLabel;
|
|
|
|
|
GraphicLabel labelFTPServerDataPorts;
|
|
|
|
|
|
2011-03-11 13:14:24 +01:00
|
|
|
|
GraphicLabel labelEnableFTPServerInternetTilesetXfer;
|
|
|
|
|
GraphicCheckBox checkBoxEnableFTPServerInternetTilesetXfer;
|
|
|
|
|
|
|
|
|
|
GraphicLabel labelEnableFTPServerInternetTechtreeXfer;
|
|
|
|
|
GraphicCheckBox checkBoxEnableFTPServerInternetTechtreeXfer;
|
|
|
|
|
|
2011-01-26 00:30:51 +01:00
|
|
|
|
GraphicLabel labelEnablePrivacy;
|
|
|
|
|
GraphicCheckBox checkBoxEnablePrivacy;
|
|
|
|
|
|
2011-03-31 03:34:01 +02:00
|
|
|
|
GraphicLabel labelEnableTextureCompression;
|
|
|
|
|
GraphicCheckBox checkBoxEnableTextureCompression;
|
|
|
|
|
|
2011-04-02 23:17:17 +02:00
|
|
|
|
GraphicLabel labelScreenShotType;
|
|
|
|
|
GraphicListBox listBoxScreenShotType;
|
|
|
|
|
|
|
|
|
|
|
2010-03-23 02:38:19 +01: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);
|
2010-12-24 04:36:34 +01:00
|
|
|
|
|
2010-03-23 02:38:19 +01:00
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
void saveConfig();
|
|
|
|
|
void setActiveInputLable(GraphicLabel* newLable);
|
2010-04-02 16:21:43 +02:00
|
|
|
|
void showMessageBox(const string &text, const string &header, bool toggle);
|
2010-03-23 02:38:19 +01:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
}}//end namespace
|
|
|
|
|
|
|
|
|
|
#endif
|