2004-07-17 22:15:39 +00:00
|
|
|
/* Definitions of metrics that are in the "Common" group */
|
|
|
|
|
|
|
|
|
|
#ifndef COMMON_METRICS_H
|
|
|
|
|
#define COMMON_METRICS_H
|
|
|
|
|
|
2005-02-12 21:03:39 +00:00
|
|
|
#include "ThemeMetric.h"
|
|
|
|
|
#include "PlayerNumber.h"
|
2005-03-10 19:57:43 +00:00
|
|
|
#include "Difficulty.h"
|
2005-03-24 21:44:03 +00:00
|
|
|
#include "GameConstantsAndTypes.h"
|
2006-01-07 04:11:29 +00:00
|
|
|
#include "LocalizedString.h"
|
2005-02-12 21:03:39 +00:00
|
|
|
|
2005-03-24 21:44:03 +00:00
|
|
|
|
|
|
|
|
//
|
|
|
|
|
// Types
|
|
|
|
|
//
|
2006-01-22 01:00:06 +00:00
|
|
|
class ThemeMetricDifficultiesToShow : public ThemeMetric<RString>
|
2005-03-24 21:44:03 +00:00
|
|
|
{
|
|
|
|
|
public:
|
2005-10-07 03:28:16 +00:00
|
|
|
ThemeMetricDifficultiesToShow() { }
|
2006-01-22 01:00:06 +00:00
|
|
|
ThemeMetricDifficultiesToShow( const RString& sGroup, const RString& sName );
|
2005-03-24 21:44:03 +00:00
|
|
|
void Read();
|
2006-09-02 19:33:49 +00:00
|
|
|
const vector<Difficulty> &GetValue() const;
|
2005-03-24 21:44:03 +00:00
|
|
|
private:
|
|
|
|
|
vector<Difficulty> m_v;
|
|
|
|
|
};
|
2006-01-22 01:00:06 +00:00
|
|
|
class ThemeMetricCourseDifficultiesToShow : public ThemeMetric<RString>
|
2005-03-24 21:44:03 +00:00
|
|
|
{
|
|
|
|
|
public:
|
2005-10-07 03:28:16 +00:00
|
|
|
ThemeMetricCourseDifficultiesToShow() { }
|
2006-01-22 01:00:06 +00:00
|
|
|
ThemeMetricCourseDifficultiesToShow( const RString& sGroup, const RString& sName );
|
2005-03-24 21:44:03 +00:00
|
|
|
void Read();
|
2006-09-02 19:33:49 +00:00
|
|
|
const vector<CourseDifficulty> &GetValue() const;
|
2005-03-24 21:44:03 +00:00
|
|
|
private:
|
|
|
|
|
vector<CourseDifficulty> m_v;
|
|
|
|
|
};
|
2006-01-22 01:00:06 +00:00
|
|
|
class ThemeMetricStepsTypesToShow : public ThemeMetric<RString>
|
2005-03-24 21:44:03 +00:00
|
|
|
{
|
|
|
|
|
public:
|
2005-10-07 03:28:16 +00:00
|
|
|
ThemeMetricStepsTypesToShow() { }
|
2006-01-22 01:00:06 +00:00
|
|
|
ThemeMetricStepsTypesToShow( const RString& sGroup, const RString& sName );
|
2005-03-24 21:44:03 +00:00
|
|
|
void Read();
|
2006-09-02 19:33:49 +00:00
|
|
|
const vector<StepsType> &GetValue() const;
|
2005-03-24 21:44:03 +00:00
|
|
|
private:
|
|
|
|
|
vector<StepsType> m_v;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
|
// Metrics
|
|
|
|
|
//
|
2005-10-27 05:16:19 +00:00
|
|
|
namespace CommonMetrics
|
|
|
|
|
{
|
2007-04-10 17:51:21 +00:00
|
|
|
extern ThemeMetric<RString> INITIAL_SCREEN;
|
2006-08-17 18:22:30 +00:00
|
|
|
extern ThemeMetric<RString> FIRST_ATTRACT_SCREEN;
|
|
|
|
|
extern ThemeMetric<RString> DEFAULT_MODIFIERS;
|
2008-04-05 19:17:40 +00:00
|
|
|
extern ThemeMetric1D<apActorCommands> PLAYER_COLOR; // TODO: Remove this and do all coloring in Lua
|
2006-08-17 18:22:30 +00:00
|
|
|
extern LocalizedString WINDOW_TITLE;
|
|
|
|
|
extern ThemeMetric<int> MAX_COURSE_ENTRIES_BEFORE_VARIOUS;
|
|
|
|
|
extern ThemeMetric<float> TICK_EARLY_SECONDS;
|
2007-02-04 04:07:14 +00:00
|
|
|
extern ThemeMetric<RString> DEFAULT_NOTESKIN_NAME;
|
2005-10-27 05:16:19 +00:00
|
|
|
extern ThemeMetricDifficultiesToShow DIFFICULTIES_TO_SHOW;
|
|
|
|
|
extern ThemeMetricCourseDifficultiesToShow COURSE_DIFFICULTIES_TO_SHOW;
|
2006-08-17 18:22:30 +00:00
|
|
|
extern ThemeMetricStepsTypesToShow STEPS_TYPES_TO_SHOW;
|
2007-03-06 10:05:51 +00:00
|
|
|
extern ThemeMetric<bool> AUTO_SET_STYLE;
|
2007-09-14 08:50:29 +00:00
|
|
|
extern ThemeMetric<int> PERCENT_SCORE_DECIMAL_PLACES;
|
2005-03-20 20:16:32 +00:00
|
|
|
|
2006-01-29 22:13:36 +00:00
|
|
|
RString LocalizeOptionItem( const RString &s, bool bOptional );
|
2005-10-27 05:16:19 +00:00
|
|
|
};
|
2004-07-17 22:15:39 +00:00
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* (c) 2003-2004 Chris Danford
|
|
|
|
|
* All rights reserved.
|
|
|
|
|
*
|
|
|
|
|
* Permission is hereby granted, free of charge, to any person obtaining a
|
|
|
|
|
* copy of this software and associated documentation files (the
|
|
|
|
|
* "Software"), to deal in the Software without restriction, including
|
|
|
|
|
* without limitation the rights to use, copy, modify, merge, publish,
|
|
|
|
|
* distribute, and/or sell copies of the Software, and to permit persons to
|
|
|
|
|
* whom the Software is furnished to do so, provided that the above
|
|
|
|
|
* copyright notice(s) and this permission notice appear in all copies of
|
|
|
|
|
* the Software and that both the above copyright notice(s) and this
|
|
|
|
|
* permission notice appear in supporting documentation.
|
|
|
|
|
*
|
|
|
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
|
|
|
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
|
|
|
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF
|
|
|
|
|
* THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS
|
|
|
|
|
* INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT
|
|
|
|
|
* OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
|
|
|
|
|
* OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
|
|
* OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
|
|
|
* PERFORMANCE OF THIS SOFTWARE.
|
|
|
|
|
*/
|