2003-02-16 04:01:45 +00:00
|
|
|
#include "global.h"
|
2003-01-31 23:31:35 +00:00
|
|
|
/*
|
|
|
|
|
-----------------------------------------------------------------------------
|
|
|
|
|
Class: ScreenOptionsMenu
|
|
|
|
|
|
|
|
|
|
Desc: See header.
|
|
|
|
|
|
|
|
|
|
Copyright (c) 2001-2002 by the person(s) listed below. All rights reserved.
|
|
|
|
|
Chris Danford
|
|
|
|
|
-----------------------------------------------------------------------------
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#include "ScreenOptionsMenu.h"
|
|
|
|
|
#include "RageTextureManager.h"
|
|
|
|
|
#include "RageUtil.h"
|
|
|
|
|
#include "RageSoundManager.h"
|
|
|
|
|
#include "ScreenManager.h"
|
|
|
|
|
#include "PrefsManager.h"
|
|
|
|
|
#include "GameConstantsAndTypes.h"
|
|
|
|
|
#include "StepMania.h"
|
|
|
|
|
#include "PrefsManager.h"
|
|
|
|
|
#include "RageLog.h"
|
|
|
|
|
#include "AnnouncerManager.h"
|
|
|
|
|
#include "GameManager.h"
|
|
|
|
|
#include "GameState.h"
|
|
|
|
|
#include "ThemeManager.h"
|
2003-02-21 10:05:13 +00:00
|
|
|
#include "ScreenMiniMenu.h"
|
2003-01-31 23:31:35 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
enum {
|
2003-02-19 11:28:30 +00:00
|
|
|
OM_APPEARANCE = 0,
|
|
|
|
|
OM_INPUT,
|
|
|
|
|
OM_CONFIG_KEY_JOY,
|
2003-02-01 01:11:00 +00:00
|
|
|
OM_GAMEPLAY,
|
2003-02-19 11:28:30 +00:00
|
|
|
OM_GRAPHIC,
|
|
|
|
|
OM_MACHINE,
|
2003-02-19 10:58:32 +00:00
|
|
|
OM_SOUND,
|
2003-01-31 23:31:35 +00:00
|
|
|
NUM_OPTIONS_MENU_LINES
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
OptionRowData g_OptionsMenuLines[NUM_OPTIONS_MENU_LINES] = {
|
2003-02-19 11:28:30 +00:00
|
|
|
{ "", 1, {"Appearance Options"} },
|
2003-02-19 10:58:32 +00:00
|
|
|
{ "", 1, {"Config Key/Joy"} },
|
2003-02-19 11:28:30 +00:00
|
|
|
{ "", 1, {"Input Options"} },
|
2003-02-01 01:11:00 +00:00
|
|
|
{ "", 1, {"Gameplay Options"} },
|
2003-02-19 11:28:30 +00:00
|
|
|
{ "", 1, {"Graphic Options"} },
|
|
|
|
|
{ "", 1, {"Machine Options"} },
|
2003-02-19 10:58:32 +00:00
|
|
|
{ "", 1, {"Sound Options"} },
|
2003-01-31 23:31:35 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
ScreenOptionsMenu::ScreenOptionsMenu() :
|
|
|
|
|
ScreenOptions(
|
|
|
|
|
THEME->GetPathTo("BGAnimations","options menu"),
|
|
|
|
|
THEME->GetPathTo("Graphics","options menu page"),
|
|
|
|
|
THEME->GetPathTo("Graphics","options menu top edge")
|
|
|
|
|
)
|
|
|
|
|
{
|
|
|
|
|
LOG->Trace( "ScreenOptionsMenu::ScreenOptionsMenu()" );
|
|
|
|
|
|
|
|
|
|
// fill g_InputOptionsLines with explanation text
|
|
|
|
|
for( int i=0; i<NUM_OPTIONS_MENU_LINES; i++ )
|
|
|
|
|
{
|
|
|
|
|
CString sLineName = g_OptionsMenuLines[i].szOptionsText[0];
|
|
|
|
|
sLineName.Replace("\n","");
|
|
|
|
|
sLineName.Replace(" ","");
|
|
|
|
|
strcpy( g_OptionsMenuLines[i].szExplanation, THEME->GetMetric("ScreenOptionsMenu",sLineName) );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Init(
|
|
|
|
|
INPUTMODE_BOTH,
|
|
|
|
|
g_OptionsMenuLines,
|
|
|
|
|
NUM_OPTIONS_MENU_LINES,
|
|
|
|
|
false );
|
|
|
|
|
m_Menu.SetTimer( 99 );
|
|
|
|
|
m_Menu.StopTimer();
|
|
|
|
|
|
|
|
|
|
SOUNDMAN->PlayMusic( THEME->GetPathTo("Sounds","options menu music") );
|
|
|
|
|
}
|
|
|
|
|
|
2003-02-12 00:41:56 +00:00
|
|
|
/* We depend on the SM options navigation for this screen, not arcade. */
|
|
|
|
|
void ScreenOptionsMenu::MenuStart( PlayerNumber pn )
|
|
|
|
|
{
|
|
|
|
|
StartGoToNextState();
|
|
|
|
|
}
|
|
|
|
|
|
2003-01-31 23:31:35 +00:00
|
|
|
void ScreenOptionsMenu::ImportOptions()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void ScreenOptionsMenu::ExportOptions()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void ScreenOptionsMenu::GoToPrevState()
|
|
|
|
|
{
|
|
|
|
|
SCREENMAN->SetNewScreen( "ScreenTitleMenu" );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void ScreenOptionsMenu::GoToNextState()
|
|
|
|
|
{
|
|
|
|
|
switch( this->m_iCurrentRow[0] )
|
|
|
|
|
{
|
2003-02-19 11:28:30 +00:00
|
|
|
case OM_APPEARANCE: SCREENMAN->SetNewScreen("ScreenAppearanceOptions"); break;
|
|
|
|
|
case OM_CONFIG_KEY_JOY: SCREENMAN->SetNewScreen("ScreenMapControllers"); break;
|
|
|
|
|
case OM_GAMEPLAY: SCREENMAN->SetNewScreen("ScreenGameplayOptions"); break;
|
|
|
|
|
case OM_GRAPHIC: SCREENMAN->SetNewScreen("ScreenGraphicOptions"); break;
|
|
|
|
|
case OM_INPUT: SCREENMAN->SetNewScreen("ScreenInputOptions"); break;
|
|
|
|
|
case OM_MACHINE: SCREENMAN->SetNewScreen("ScreenMachineOptions"); break;
|
|
|
|
|
case OM_SOUND: SCREENMAN->SetNewScreen("ScreenSoundOptions"); break;
|
|
|
|
|
default: // Exit
|
|
|
|
|
SCREENMAN->SetNewScreen("ScreenTitleMenu");
|
2003-01-31 23:31:35 +00:00
|
|
|
}
|
2003-02-21 10:05:13 +00:00
|
|
|
}
|