mirror of
https://github.com/ptitSeb/Serious-Engine
synced 2024-12-02 06:35:53 +01:00
82 lines
3.7 KiB
C++
82 lines
3.7 KiB
C++
/* Copyright (c) 2002-2012 Croteam Ltd.
|
|
This program is free software; you can redistribute it and/or modify
|
|
it under the terms of version 2 of the GNU General Public License as published by
|
|
the Free Software Foundation
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License along
|
|
with this program; if not, write to the Free Software Foundation, Inc.,
|
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */
|
|
|
|
#include "StdH.h"
|
|
#include <Engine/CurrentVersion.h>
|
|
#include "MenuPrinting.h"
|
|
#include "MOptions.h"
|
|
|
|
|
|
void COptionsMenu::Initialize_t(void)
|
|
{
|
|
// intialize options menu
|
|
gm_mgTitle.mg_boxOnScreen = BoxTitle();
|
|
gm_mgTitle.mg_strText = TRANS("OPTIONS");
|
|
gm_lhGadgets.AddTail(gm_mgTitle.mg_lnNode);
|
|
|
|
gm_mgVideoOptions.mg_bfsFontSize = BFS_LARGE;
|
|
gm_mgVideoOptions.mg_boxOnScreen = BoxBigRow(0.0f);
|
|
gm_mgVideoOptions.mg_pmgUp = &gm_mgAddonOptions;
|
|
gm_mgVideoOptions.mg_pmgDown = &gm_mgAudioOptions;
|
|
gm_mgVideoOptions.mg_strText = TRANS("VIDEO OPTIONS");
|
|
gm_mgVideoOptions.mg_strTip = TRANS("set video mode and driver");
|
|
gm_lhGadgets.AddTail(gm_mgVideoOptions.mg_lnNode);
|
|
gm_mgVideoOptions.mg_pActivatedFunction = NULL;
|
|
|
|
gm_mgAudioOptions.mg_bfsFontSize = BFS_LARGE;
|
|
gm_mgAudioOptions.mg_boxOnScreen = BoxBigRow(1.0f);
|
|
gm_mgAudioOptions.mg_pmgUp = &gm_mgVideoOptions;
|
|
gm_mgAudioOptions.mg_pmgDown = &gm_mgPlayerProfileOptions;
|
|
gm_mgAudioOptions.mg_strText = TRANS("AUDIO OPTIONS");
|
|
gm_mgAudioOptions.mg_strTip = TRANS("set audio quality and volume");
|
|
gm_lhGadgets.AddTail(gm_mgAudioOptions.mg_lnNode);
|
|
gm_mgAudioOptions.mg_pActivatedFunction = NULL;
|
|
|
|
gm_mgPlayerProfileOptions.mg_bfsFontSize = BFS_LARGE;
|
|
gm_mgPlayerProfileOptions.mg_boxOnScreen = BoxBigRow(2.0f);
|
|
gm_mgPlayerProfileOptions.mg_pmgUp = &gm_mgAudioOptions;
|
|
gm_mgPlayerProfileOptions.mg_pmgDown = &gm_mgNetworkOptions;
|
|
gm_mgPlayerProfileOptions.mg_strText = TRANS("PLAYERS AND CONTROLS");
|
|
gm_mgPlayerProfileOptions.mg_strTip = TRANS("change currently active player or adjust controls");
|
|
gm_lhGadgets.AddTail(gm_mgPlayerProfileOptions.mg_lnNode);
|
|
gm_mgPlayerProfileOptions.mg_pActivatedFunction = NULL;
|
|
|
|
gm_mgNetworkOptions.mg_bfsFontSize = BFS_LARGE;
|
|
gm_mgNetworkOptions.mg_boxOnScreen = BoxBigRow(3);
|
|
gm_mgNetworkOptions.mg_pmgUp = &gm_mgPlayerProfileOptions;
|
|
gm_mgNetworkOptions.mg_pmgDown = &gm_mgCustomOptions;
|
|
gm_mgNetworkOptions.mg_strText = TRANS("NETWORK CONNECTION");
|
|
gm_mgNetworkOptions.mg_strTip = TRANS("choose your connection parameters");
|
|
gm_lhGadgets.AddTail(gm_mgNetworkOptions.mg_lnNode);
|
|
gm_mgNetworkOptions.mg_pActivatedFunction = NULL;
|
|
|
|
gm_mgCustomOptions.mg_bfsFontSize = BFS_LARGE;
|
|
gm_mgCustomOptions.mg_boxOnScreen = BoxBigRow(4);
|
|
gm_mgCustomOptions.mg_pmgUp = &gm_mgNetworkOptions;
|
|
gm_mgCustomOptions.mg_pmgDown = &gm_mgAddonOptions;
|
|
gm_mgCustomOptions.mg_strText = TRANS("ADVANCED OPTIONS");
|
|
gm_mgCustomOptions.mg_strTip = TRANS("for advanced users only");
|
|
gm_lhGadgets.AddTail(gm_mgCustomOptions.mg_lnNode);
|
|
gm_mgCustomOptions.mg_pActivatedFunction = NULL;
|
|
|
|
gm_mgAddonOptions.mg_bfsFontSize = BFS_LARGE;
|
|
gm_mgAddonOptions.mg_boxOnScreen = BoxBigRow(5);
|
|
gm_mgAddonOptions.mg_pmgUp = &gm_mgCustomOptions;
|
|
gm_mgAddonOptions.mg_pmgDown = &gm_mgVideoOptions;
|
|
gm_mgAddonOptions.mg_strText = TRANS("EXECUTE ADDON");
|
|
gm_mgAddonOptions.mg_strTip = TRANS("choose from list of addons to execute");
|
|
gm_lhGadgets.AddTail(gm_mgAddonOptions.mg_lnNode);
|
|
gm_mgAddonOptions.mg_pActivatedFunction = NULL;
|
|
} |