[default -> splittiming] Staying caught up.
This commit is contained in:
@@ -10,7 +10,8 @@ StepMania 5.0 $NEXT | 20110xyy
|
|||||||
|
|
||||||
2011/05/10
|
2011/05/10
|
||||||
----------
|
----------
|
||||||
* [Sprite] Added SetSecondsIntoAnimation(float) Lua binding. [AJ]
|
* [Sprite] Added SetSecondsIntoAnimation Lua binding. [AJ]
|
||||||
|
* [BPMDisplay] Added SetFromCourse Lua binding. [AJ]
|
||||||
|
|
||||||
2011/05/03
|
2011/05/03
|
||||||
----------
|
----------
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
Common fallback banner
|
||||||
@@ -1889,6 +1889,10 @@ Modifier=Modifier
|
|||||||
Obtain an updated driver from your video card manufacturer.=Obtain an updated driver from your video card manufacturer.
|
Obtain an updated driver from your video card manufacturer.=Obtain an updated driver from your video card manufacturer.
|
||||||
GLDirect was detected. GLDirect is not compatible with this game and should be disabled.=GLDirect was detected. GLDirect is not compatible with this game and should be disabled.
|
GLDirect was detected. GLDirect is not compatible with this game and should be disabled.=GLDirect was detected. GLDirect is not compatible with this game and should be disabled.
|
||||||
|
|
||||||
|
[RageDisplay_D3D]
|
||||||
|
DirectX 8.1 or greater is not installed. You can download it from:=DirectX 8.1 or greater is not installed. You can download it from:
|
||||||
|
Your system is reporting that Direct3D hardware acceleration is not available. Please obtain an updated driver from your video card manufacturer.=Your system is reporting that Direct3D hardware acceleration is not available. Please obtain an updated driver from your video card manufacturer.
|
||||||
|
|
||||||
[RageDisplay]
|
[RageDisplay]
|
||||||
SetVideoMode failed:=SetVideoMode failed:
|
SetVideoMode failed:=SetVideoMode failed:
|
||||||
|
|
||||||
|
|||||||
@@ -8,10 +8,11 @@ local ZeroIfNotFound = { __index = function() return 0 end; };
|
|||||||
|
|
||||||
-- Retrieve the amount of taps/holds/rolls involved. Used for some formulas.
|
-- Retrieve the amount of taps/holds/rolls involved. Used for some formulas.
|
||||||
function GetTotalItems(radars)
|
function GetTotalItems(radars)
|
||||||
return radars:GetValue('RadarCategory_TapsAndHolds')
|
local total = radars:GetValue('RadarCategory_TapsAndHolds')
|
||||||
+ radars:GetValue('RadarCategory_Holds')
|
total = total + radars:GetValue('RadarCategory_Holds')
|
||||||
+ radars:GetValue('RadarCategory_Rolls');
|
total = total + radars:GetValue('RadarCategory_Rolls')
|
||||||
+ radars:GetValue('RadarCategory_Lifts');
|
total = total + radars:GetValue('RadarCategory_Lifts')
|
||||||
|
return total
|
||||||
end;
|
end;
|
||||||
|
|
||||||
-- Determine whether marvelous timing is to be considered.
|
-- Determine whether marvelous timing is to be considered.
|
||||||
|
|||||||
+13
-1
@@ -204,7 +204,8 @@ void BPMDisplay::SetBpmFromCourse( const Course* pCourse )
|
|||||||
|
|
||||||
StepsType st = GAMESTATE->GetCurrentStyle()->m_StepsType;
|
StepsType st = GAMESTATE->GetCurrentStyle()->m_StepsType;
|
||||||
Trail *pTrail = pCourse->GetTrail( st );
|
Trail *pTrail = pCourse->GetTrail( st );
|
||||||
ASSERT( pTrail );
|
// GetTranslitFullTitle because "Crashinfo.txt is garbled because of the ANSI output as usual." -f
|
||||||
|
ASSERT_M( pTrail, ssprintf("Course '%s' has no trail for StepsType '%s'", pCourse->GetTranslitFullTitle(), StringConversion::ToString(st).c_str() ) );
|
||||||
|
|
||||||
m_fCycleTime = 0.2f;
|
m_fCycleTime = 0.2f;
|
||||||
|
|
||||||
@@ -304,12 +305,23 @@ public:
|
|||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
static int SetFromCourse( T* p, lua_State *L )
|
||||||
|
{
|
||||||
|
if( lua_isnil(L,1) ) { p->NoBPM(); }
|
||||||
|
else
|
||||||
|
{
|
||||||
|
const Course* pCourse = Luna<Course>::check( L, 1, true );
|
||||||
|
p->SetBpmFromCourse(pCourse);
|
||||||
|
}
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
static int GetText( T* p, lua_State *L ) { lua_pushstring( L, p->GetText() ); return 1; }
|
static int GetText( T* p, lua_State *L ) { lua_pushstring( L, p->GetText() ); return 1; }
|
||||||
|
|
||||||
LunaBPMDisplay()
|
LunaBPMDisplay()
|
||||||
{
|
{
|
||||||
ADD_METHOD( SetFromGameState );
|
ADD_METHOD( SetFromGameState );
|
||||||
ADD_METHOD( SetFromSong );
|
ADD_METHOD( SetFromSong );
|
||||||
|
ADD_METHOD( SetFromCourse );
|
||||||
ADD_METHOD( GetText );
|
ADD_METHOD( GetText );
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
+2
-2
@@ -4,8 +4,8 @@
|
|||||||
#include "RageUtil.h"
|
#include "RageUtil.h"
|
||||||
#include "RageLog.h"
|
#include "RageLog.h"
|
||||||
#include "arch/Dialog/Dialog.h"
|
#include "arch/Dialog/Dialog.h"
|
||||||
#include "../extern/jsoncpp/include/json/reader.h"
|
#include "json/reader.h"
|
||||||
#include "../extern/jsoncpp/include/json/writer.h"
|
#include "json/writer.h"
|
||||||
|
|
||||||
bool JsonUtil::LoadFromString(Json::Value &root, RString sData, RString &sErrorOut)
|
bool JsonUtil::LoadFromString(Json::Value &root, RString sData, RString &sErrorOut)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user