woops, merge.
This commit is contained in:
@@ -184,15 +184,15 @@ t[#t+1] = StandardDecorationFromFileOptional("SongInformation","SongInformation"
|
|||||||
if SongOrCourse:GetDisplaySubTitle() == "" then
|
if SongOrCourse:GetDisplaySubTitle() == "" then
|
||||||
c.TextTitle:visible(true);
|
c.TextTitle:visible(true);
|
||||||
c.TextTitle:y(-16.5/2);
|
c.TextTitle:y(-16.5/2);
|
||||||
c.Subtitle:visible(false);
|
c.TextSubtitle:visible(false);
|
||||||
c.Subtitle:y(0);
|
c.TextSubtitle:y(0);
|
||||||
c.TextArtist:visible(true);
|
c.TextArtist:visible(true);
|
||||||
c.TextArtist:y(18/2);
|
c.TextArtist:y(18/2);
|
||||||
else
|
else
|
||||||
c.TextTitle:visible(true);
|
c.TextTitle:visible(true);
|
||||||
c.TextTitle:y(-16.5);
|
c.TextTitle:y(-16.5);
|
||||||
c.Subtitle:visible(true);
|
c.TextSubtitle:visible(true);
|
||||||
c.Subtitle:y(0);
|
c.TextSubtitle:y(0);
|
||||||
c.TextArtist:visible(true);
|
c.TextArtist:visible(true);
|
||||||
c.TextArtist:y(18);
|
c.TextArtist:y(18);
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
local vStats = STATSMAN:GetCurStageStats();
|
local vStats = STATSMAN:GetCurStageStats();
|
||||||
|
|
||||||
local function CreateStats( pnPlayer )
|
local function CreateStats( pnPlayer )
|
||||||
-- Actor Templates
|
-- Actor Templates
|
||||||
local aLabel = 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") .. { Text="..."; 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!!
|
-- DA STATS, JIM!!
|
||||||
local pnStageStats = vStats:GetPlayerStageStats( pnPlayer );
|
local pnStageStats = vStats:GetPlayerStageStats( pnPlayer );
|
||||||
-- Organized Stats.
|
-- 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 ),
|
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
|
-- (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 ),
|
MIGS_MAX = ( (tStats["W1"] + tStats["W2"] + tStats["W3"] + tStats["W4"] + tStats["W5"] + tStats["Miss"])*3 + (tStats["Held"] + tStats["LetGo"])*6 ),
|
||||||
|
|
||||||
};
|
};
|
||||||
--
|
|
||||||
local t = Def.ActorFrame {};
|
local t = Def.ActorFrame {};
|
||||||
t[#t+1] = Def.ActorFrame {
|
t[#t+1] = Def.ActorFrame {
|
||||||
InitCommand=cmd(y,-34);
|
InitCommand=cmd(y,-34);
|
||||||
@@ -54,10 +54,11 @@ local function CreateStats( pnPlayer )
|
|||||||
};
|
};
|
||||||
return t
|
return t
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
-- xxx: this only currently works for player 1. -aj
|
||||||
local t = Def.ActorFrame {};
|
local t = Def.ActorFrame {};
|
||||||
t[#t+1] = 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 );
|
CreateStats( PLAYER_1 );
|
||||||
};
|
};
|
||||||
return t
|
return t
|
||||||
+40
-41
@@ -85,47 +85,7 @@ int CourseEntry::GetNumModChanges() const
|
|||||||
return iNumModChanges;
|
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()
|
Course::Course()
|
||||||
@@ -1042,10 +1002,49 @@ bool Course::Matches( RString sGroup, RString sCourse ) const
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// lua start
|
// lua start
|
||||||
#include "LuaBinding.h"
|
#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. */
|
/** @brief Allow Lua to have access to the Course. */
|
||||||
class LunaCourse: public Luna<Course>
|
class LunaCourse: public Luna<Course>
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -412,7 +412,6 @@ void GameCommand::LoadOne( const Command& cmd )
|
|||||||
|
|
||||||
else if( sName == "fademusic" )
|
else if( sName == "fademusic" )
|
||||||
{
|
{
|
||||||
// todo: parse things correctly. -aj
|
|
||||||
if( cmd.m_vsArgs.size() == 3 )
|
if( cmd.m_vsArgs.size() == 3 )
|
||||||
{
|
{
|
||||||
m_bFadeMusic = true;
|
m_bFadeMusic = true;
|
||||||
|
|||||||
@@ -266,7 +266,6 @@ static const AutoMappings g_AutoMappings[] =
|
|||||||
AutoMappingEntry( 0, JOY_BUTTON_10, GAME_BUTTON_BACK, false ),
|
AutoMappingEntry( 0, JOY_BUTTON_10, GAME_BUTTON_BACK, false ),
|
||||||
AutoMappingEntry( 0, JOY_BUTTON_9, GAME_BUTTON_START, false )
|
AutoMappingEntry( 0, JOY_BUTTON_9, GAME_BUTTON_START, false )
|
||||||
),
|
),
|
||||||
// TODO: add black and white buttons, as well as other missing inputs -aj
|
|
||||||
AutoMappings(
|
AutoMappings(
|
||||||
"dance",
|
"dance",
|
||||||
"XBOX Gamepad Plugin V0.01",
|
"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,T,T,T,T,f,f,f } },
|
||||||
{ StepsType_dance_double, { f,f,f,T,T,T,T,f } },
|
{ StepsType_dance_double, { f,f,f,T,T,T,T,f } },
|
||||||
{ StepsType_dance_double, { f,f,f,f,T,T,T,T } },
|
{ 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 T
|
||||||
#undef f
|
#undef f
|
||||||
|
|||||||
+1
-1
@@ -123,7 +123,7 @@ struct NoteResource
|
|||||||
delete m_pActor;
|
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;
|
int m_iRefCount;
|
||||||
Actor *m_pActor; // todo: AutoActor me? -aj
|
Actor *m_pActor; // todo: AutoActor me? -aj
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -313,6 +313,19 @@ void ScreenInstallOverlay::Init()
|
|||||||
this->AddChild( &m_textStatus );
|
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 )
|
void ScreenInstallOverlay::Update( float fDeltaTime )
|
||||||
{
|
{
|
||||||
Screen::Update(fDeltaTime);
|
Screen::Update(fDeltaTime);
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
/* ScreenInstallOverlay - package installation processing and messaging. */
|
|
||||||
|
|
||||||
#ifndef ScreenInstallOverlay_H
|
#ifndef ScreenInstallOverlay_H
|
||||||
#define ScreenInstallOverlay_H
|
#define ScreenInstallOverlay_H
|
||||||
|
|
||||||
#include "Screen.h"
|
#include "Screen.h"
|
||||||
#include "BitmapText.h"
|
#include "BitmapText.h"
|
||||||
|
#include "InputEventPlus.h"
|
||||||
|
|
||||||
|
/** @brief Package installation processing and messaging. */
|
||||||
class ScreenInstallOverlay : public Screen
|
class ScreenInstallOverlay : public Screen
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@@ -13,6 +13,7 @@ public:
|
|||||||
virtual void Init();
|
virtual void Init();
|
||||||
|
|
||||||
void Update( float fDeltaTime );
|
void Update( float fDeltaTime );
|
||||||
|
bool ScreenInstallOverlay::OverlayInput( const InputEventPlus &input );
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void UpdateText();
|
void UpdateText();
|
||||||
|
|||||||
@@ -1055,15 +1055,6 @@ void Song::AutoGen( StepsType ntTo, StepsType ntFrom )
|
|||||||
{
|
{
|
||||||
Steps* pNewNotes = new Steps;
|
Steps* pNewNotes = new Steps;
|
||||||
pNewNotes->AutogenFrom( pOriginalNotes, ntTo );
|
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 );
|
this->AddSteps( pNewNotes );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user