remove MaxStages and LifeDifficulty; allow doing them with lua instead

This commit is contained in:
Glenn Maynard
2005-06-25 02:37:18 +00:00
parent de948e2541
commit 265ecccbca
4 changed files with 11 additions and 28 deletions
+11 -1
View File
@@ -364,12 +364,22 @@ static void JudgeDifficulty( int &sel, bool ToSel, const ConfOption *pConfOption
MoveMap( sel, PREFSMAN->m_fJudgeWindowScale, ToSel, mapping, ARRAYSIZE(mapping) );
}
void LifeDifficulty( int &sel, bool ToSel, const ConfOption *pConfOption )
static void LifeDifficulty( int &sel, bool ToSel, const ConfOption *pConfOption )
{
const float mapping[] = { 1.60f,1.40f,1.20f,1.00f,0.80f,0.60f,0.40f };
MoveMap( sel, PREFSMAN->m_fLifeDifficultyScale, ToSel, mapping, ARRAYSIZE(mapping) );
}
static int GetLifeDifficulty()
{
int iLifeDifficulty;
LifeDifficulty( iLifeDifficulty, true, NULL );
iLifeDifficulty++; // LifeDifficulty returns an index
return iLifeDifficulty;
}
#include "LuaFunctions.h"
LuaFunction( GetLifeDifficulty, GetLifeDifficulty() );
static void ShowSongOptions( int &sel, bool ToSel, const ConfOption *pConfOption )
{
const PrefsManager::Maybe mapping[] = { PrefsManager::NO,PrefsManager::YES,PrefsManager::ASK };