woops, merge.
This commit is contained in:
@@ -176,23 +176,23 @@ t[#t+1] = StandardDecorationFromFileOptional("SongInformation","SongInformation"
|
||||
local SongOrCourse;
|
||||
if GAMESTATE:GetCurrentSong() then
|
||||
SongOrCourse = GAMESTATE:GetCurrentSong();
|
||||
|
||||
|
||||
c.TextTitle:settext( SongOrCourse:GetDisplayMainTitle() or nil );
|
||||
c.TextSubtitle:settext( SongOrCourse:GetDisplaySubTitle() or nil );
|
||||
c.TextArtist:settext( SongOrCourse:GetDisplayArtist() or nil );
|
||||
|
||||
|
||||
if SongOrCourse:GetDisplaySubTitle() == "" then
|
||||
c.TextTitle:visible(true);
|
||||
c.TextTitle:y(-16.5/2);
|
||||
c.Subtitle:visible(false);
|
||||
c.Subtitle:y(0);
|
||||
c.TextSubtitle:visible(false);
|
||||
c.TextSubtitle:y(0);
|
||||
c.TextArtist:visible(true);
|
||||
c.TextArtist:y(18/2);
|
||||
else
|
||||
c.TextTitle:visible(true);
|
||||
c.TextTitle:y(-16.5);
|
||||
c.Subtitle:visible(true);
|
||||
c.Subtitle:y(0);
|
||||
c.TextSubtitle:visible(true);
|
||||
c.TextSubtitle:y(0);
|
||||
c.TextArtist:visible(true);
|
||||
c.TextArtist:y(18);
|
||||
end
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
local vStats = STATSMAN:GetCurStageStats();
|
||||
|
||||
local function CreateStats( pnPlayer )
|
||||
-- Actor Templates
|
||||
local aLabel = LoadFont("Common Normal") .. { Text="..."; InitCommand=cmd(zoom,0.5;shadowlength,1;horizalign,left); };
|
||||
local aText = LoadFont("Common Normal") .. { Text="..."; InitCommand=cmd(zoom,0.5;shadowlength,1;horizalign,left); };
|
||||
local aLabel = LoadFont("Common Normal") .. { InitCommand=cmd(zoom,0.5;shadowlength,1;horizalign,left); };
|
||||
local aText = LoadFont("Common Normal") .. { InitCommand=cmd(zoom,0.5;shadowlength,1;horizalign,left); };
|
||||
-- DA STATS, JIM!!
|
||||
local pnStageStats = vStats:GetPlayerStageStats( pnPlayer );
|
||||
-- Organized Stats.
|
||||
@@ -28,9 +29,8 @@ local function CreateStats( pnPlayer )
|
||||
MIGS = ( tStats["W1"]*3 + tStats["W2"]*2 + tStats["W3"] - tStats["W5"]*4 - tStats["Miss"]*8 + tStats["Held"]*6 ),
|
||||
-- (marvcount + perfcount + greatcount + goodcount + boocount + misscount)*3 + (okcount + ngcount)*6
|
||||
MIGS_MAX = ( (tStats["W1"] + tStats["W2"] + tStats["W3"] + tStats["W4"] + tStats["W5"] + tStats["Miss"])*3 + (tStats["Held"] + tStats["LetGo"])*6 ),
|
||||
|
||||
};
|
||||
--
|
||||
|
||||
local t = Def.ActorFrame {};
|
||||
t[#t+1] = Def.ActorFrame {
|
||||
InitCommand=cmd(y,-34);
|
||||
@@ -54,10 +54,11 @@ local function CreateStats( pnPlayer )
|
||||
};
|
||||
return t
|
||||
end;
|
||||
|
||||
-- xxx: this only currently works for player 1. -aj
|
||||
local t = Def.ActorFrame {};
|
||||
t[#t+1] = Def.ActorFrame {
|
||||
InitCommand=cmd(x,math.floor(SCREEN_CENTER_X*0.5)-8;y,SCREEN_CENTER_Y);
|
||||
--
|
||||
InitCommand=cmd(x,WideScale(math.floor(SCREEN_CENTER_X*0.3)-8,math.floor(SCREEN_CENTER_X*0.5)-8);y,SCREEN_CENTER_Y);
|
||||
CreateStats( PLAYER_1 );
|
||||
};
|
||||
return t
|
||||
+40
-41
@@ -85,47 +85,7 @@ int CourseEntry::GetNumModChanges() const
|
||||
return iNumModChanges;
|
||||
}
|
||||
|
||||
// lua start
|
||||
#include "LuaBinding.h"
|
||||
|
||||
/** @brief Allow Lua to have access to the CourseEntry. */
|
||||
class LunaCourseEntry: public Luna<CourseEntry>
|
||||
{
|
||||
public:
|
||||
static int GetSong( T* p, lua_State *L )
|
||||
{
|
||||
if( p->songID.ToSong() )
|
||||
p->songID.ToSong()->PushSelf(L);
|
||||
else
|
||||
lua_pushnil(L);
|
||||
return 1;
|
||||
}
|
||||
DEFINE_METHOD( IsSecret, bSecret );
|
||||
DEFINE_METHOD( IsFixedSong, IsFixedSong() );
|
||||
DEFINE_METHOD( GetGainSeconds, fGainSeconds );
|
||||
DEFINE_METHOD( GetGainLives, iGainLives );
|
||||
DEFINE_METHOD( GetNormalModifiers, sModifiers );
|
||||
// GetTimedModifiers - table
|
||||
DEFINE_METHOD( GetNumModChanges, GetNumModChanges() );
|
||||
DEFINE_METHOD( GetTextDescription, GetTextDescription() );
|
||||
|
||||
LunaCourseEntry()
|
||||
{
|
||||
ADD_METHOD( GetSong );
|
||||
// sm-ssc additions:
|
||||
ADD_METHOD( IsSecret );
|
||||
ADD_METHOD( IsFixedSong );
|
||||
ADD_METHOD( GetGainSeconds );
|
||||
ADD_METHOD( GetGainLives );
|
||||
ADD_METHOD( GetNormalModifiers );
|
||||
//ADD_METHOD( GetTimedModifiers );
|
||||
ADD_METHOD( GetNumModChanges );
|
||||
ADD_METHOD( GetTextDescription );
|
||||
}
|
||||
};
|
||||
|
||||
LUA_REGISTER_CLASS( CourseEntry )
|
||||
// lua end
|
||||
|
||||
|
||||
Course::Course()
|
||||
@@ -1042,10 +1002,49 @@ bool Course::Matches( RString sGroup, RString sCourse ) const
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
// lua start
|
||||
#include "LuaBinding.h"
|
||||
|
||||
/** @brief Allow Lua to have access to the CourseEntry. */
|
||||
class LunaCourseEntry: public Luna<CourseEntry>
|
||||
{
|
||||
public:
|
||||
static int GetSong( T* p, lua_State *L )
|
||||
{
|
||||
if( p->songID.ToSong() )
|
||||
p->songID.ToSong()->PushSelf(L);
|
||||
else
|
||||
lua_pushnil(L);
|
||||
return 1;
|
||||
}
|
||||
DEFINE_METHOD( IsSecret, bSecret );
|
||||
DEFINE_METHOD( IsFixedSong, IsFixedSong() );
|
||||
DEFINE_METHOD( GetGainSeconds, fGainSeconds );
|
||||
DEFINE_METHOD( GetGainLives, iGainLives );
|
||||
DEFINE_METHOD( GetNormalModifiers, sModifiers );
|
||||
// GetTimedModifiers - table
|
||||
DEFINE_METHOD( GetNumModChanges, GetNumModChanges() );
|
||||
DEFINE_METHOD( GetTextDescription, GetTextDescription() );
|
||||
|
||||
LunaCourseEntry()
|
||||
{
|
||||
ADD_METHOD( GetSong );
|
||||
// sm-ssc additions:
|
||||
ADD_METHOD( IsSecret );
|
||||
ADD_METHOD( IsFixedSong );
|
||||
ADD_METHOD( GetGainSeconds );
|
||||
ADD_METHOD( GetGainLives );
|
||||
ADD_METHOD( GetNormalModifiers );
|
||||
//ADD_METHOD( GetTimedModifiers );
|
||||
ADD_METHOD( GetNumModChanges );
|
||||
ADD_METHOD( GetTextDescription );
|
||||
}
|
||||
};
|
||||
|
||||
LUA_REGISTER_CLASS( CourseEntry )
|
||||
|
||||
// Not done with lua yet: still another class.
|
||||
|
||||
/** @brief Allow Lua to have access to the Course. */
|
||||
class LunaCourse: public Luna<Course>
|
||||
{
|
||||
|
||||
@@ -412,7 +412,6 @@ void GameCommand::LoadOne( const Command& cmd )
|
||||
|
||||
else if( sName == "fademusic" )
|
||||
{
|
||||
// todo: parse things correctly. -aj
|
||||
if( cmd.m_vsArgs.size() == 3 )
|
||||
{
|
||||
m_bFadeMusic = true;
|
||||
|
||||
+1
-1
@@ -3064,7 +3064,7 @@ StepsType GameManager::StringToStepsType( RString sStepsType )
|
||||
for( int i=0; i<NUM_StepsType; i++ )
|
||||
if( g_StepsTypeInfos[i].szName == sStepsType )
|
||||
return StepsType(i);
|
||||
|
||||
|
||||
return StepsType_Invalid;
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -9,7 +9,7 @@
|
||||
*
|
||||
* TODO: Look into a more flexible system without a fixed number of grades. -Wolfman2000
|
||||
*/
|
||||
enum Grade
|
||||
enum Grade
|
||||
{
|
||||
Grade_Tier01, /**< Usually an AAAA */
|
||||
Grade_Tier02, /**< Usually an AAA */
|
||||
|
||||
@@ -266,7 +266,6 @@ static const AutoMappings g_AutoMappings[] =
|
||||
AutoMappingEntry( 0, JOY_BUTTON_10, GAME_BUTTON_BACK, false ),
|
||||
AutoMappingEntry( 0, JOY_BUTTON_9, GAME_BUTTON_START, false )
|
||||
),
|
||||
// TODO: add black and white buttons, as well as other missing inputs -aj
|
||||
AutoMappings(
|
||||
"dance",
|
||||
"XBOX Gamepad Plugin V0.01",
|
||||
|
||||
@@ -2020,6 +2020,9 @@ const ValidRow g_ValidRows[] =
|
||||
{ StepsType_dance_double, { f,T,T,T,T,f,f,f } },
|
||||
{ StepsType_dance_double, { f,f,f,T,T,T,T,f } },
|
||||
{ StepsType_dance_double, { f,f,f,f,T,T,T,T } },
|
||||
{ StepsType_pump_double, { T,T,T,T,T,f,f,f,f,f } },
|
||||
{ StepsType_pump_double, { f,f,T,T,T,T,T,T,f,f } },
|
||||
{ StepsType_pump_double, { f,f,f,f,f,T,T,T,T,T } },
|
||||
};
|
||||
#undef T
|
||||
#undef f
|
||||
|
||||
+1
-1
@@ -123,7 +123,7 @@ struct NoteResource
|
||||
delete m_pActor;
|
||||
}
|
||||
|
||||
const NoteSkinAndPath m_nsap; /* should be refcounted along with g_NoteResource[] */
|
||||
const NoteSkinAndPath m_nsap; // should be refcounted along with g_NoteResource[]
|
||||
int m_iRefCount;
|
||||
Actor *m_pActor; // todo: AutoActor me? -aj
|
||||
};
|
||||
|
||||
@@ -313,6 +313,19 @@ void ScreenInstallOverlay::Init()
|
||||
this->AddChild( &m_textStatus );
|
||||
}
|
||||
|
||||
bool ScreenInstallOverlay::OverlayInput( const InputEventPlus &input )
|
||||
{
|
||||
/*
|
||||
if( input.DeviceI.button == g_buttonLogin && input.type == IET_FIRST_PRESS )
|
||||
{
|
||||
HOOKS->GoToURL("http://www.stepmania.com/launch.php");
|
||||
return true;
|
||||
}
|
||||
*/
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
void ScreenInstallOverlay::Update( float fDeltaTime )
|
||||
{
|
||||
Screen::Update(fDeltaTime);
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
/* ScreenInstallOverlay - package installation processing and messaging. */
|
||||
|
||||
#ifndef ScreenInstallOverlay_H
|
||||
#define ScreenInstallOverlay_H
|
||||
|
||||
#include "Screen.h"
|
||||
#include "BitmapText.h"
|
||||
#include "InputEventPlus.h"
|
||||
|
||||
/** @brief Package installation processing and messaging. */
|
||||
class ScreenInstallOverlay : public Screen
|
||||
{
|
||||
public:
|
||||
@@ -13,6 +13,7 @@ public:
|
||||
virtual void Init();
|
||||
|
||||
void Update( float fDeltaTime );
|
||||
bool ScreenInstallOverlay::OverlayInput( const InputEventPlus &input );
|
||||
|
||||
private:
|
||||
void UpdateText();
|
||||
|
||||
@@ -1055,15 +1055,6 @@ void Song::AutoGen( StepsType ntTo, StepsType ntFrom )
|
||||
{
|
||||
Steps* pNewNotes = new Steps;
|
||||
pNewNotes->AutogenFrom( pOriginalNotes, ntTo );
|
||||
// Only generate Medium difficulty steps for Pump-Halfdouble, as
|
||||
// that seems to be the only difficulty Half-doubles charts use,
|
||||
// going by Pump Pro. -aj
|
||||
if(ntTo == StepsType_pump_halfdouble && pNewNotes->GetDifficulty() != Difficulty_Medium)
|
||||
continue;
|
||||
// Only generate Medium difficulty steps for Routine modes. -aj
|
||||
if( (ntTo == StepsType_dance_routine || ntTo == StepsType_pump_routine )
|
||||
&& pNewNotes->GetDifficulty() != Difficulty_Medium)
|
||||
continue;
|
||||
this->AddSteps( pNewNotes );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user