2011-03-17 01:47:30 -04:00
|
|
|
--[[ sm-ssc compatibility helpers
|
|
|
|
|
sm-ssc changes quite a few things which would make various SM4 content break.
|
|
|
|
|
Also, certain things are deprecated/removed from sm-ssc (and sometimes SM4 too).
|
|
|
|
|
--]]
|
|
|
|
|
|
|
|
|
|
--[[ Actor ]]
|
|
|
|
|
function Actor:hidden(bHide)
|
|
|
|
|
Warn("hidden is deprecated, use visible instead. (used on ".. self:GetName() ..")")
|
|
|
|
|
self:visible(not bHide)
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
--[[ ActorScroller: all of these got renamed, so alias the lowercase ones if
|
|
|
|
|
things are going to look for them. ]]
|
2011-08-18 11:35:14 -07:00
|
|
|
ActorScroller.getsecondtodestination = ActorScroller.GetSecondsToDestination
|
|
|
|
|
ActorScroller.setsecondsperitem = ActorScroller.SetSecondsPerItem
|
|
|
|
|
ActorScroller.setnumsubdivisions = ActorScroller.SetNumSubdivisions
|
|
|
|
|
ActorScroller.scrollthroughallitems = ActorScroller.ScrollThroughAllItems
|
|
|
|
|
ActorScroller.scrollwithpadding = ActorScroller.ScrollWithPadding
|
|
|
|
|
ActorScroller.setfastcatchup = ActorScroller.SetFastCatchup
|
2011-03-17 01:47:30 -04:00
|
|
|
|
2011-05-15 08:17:32 -05:00
|
|
|
--[[ GameState ]]
|
|
|
|
|
--Aliases for old GAMESTATE timing functions.
|
|
|
|
|
--These have been converted to SongPosition, but most themes still use these old functions.
|
|
|
|
|
|
|
|
|
|
function GameState:GetSongBeat() return self:GetSongPosition():GetSongBeat() end
|
|
|
|
|
function GameState:GetSongBeatNoOffset() return self:GetSongPosition():GetSongBeatNoOffset() end
|
|
|
|
|
function GameState:GetSongBPS() return self:GetSongPosition():GetCurBPS() end
|
2011-05-19 03:35:44 -05:00
|
|
|
function GameState:GetSongDelay() return self:GetSongPosition():GetDelay() end
|
|
|
|
|
function GameState:GetSongFreeze() return self:GetSongPosition():GetFreeze() end
|
2011-08-20 19:51:05 -05:00
|
|
|
|
|
|
|
|
--[[ 3.9 Conditionals ]]
|
|
|
|
|
Condition = {
|
|
|
|
|
Hour = function() return Hour() end,
|
|
|
|
|
IsDemonstration = function() return GAMESTATE:IsDemonstration() end,
|
|
|
|
|
CurSong = function(sSongName)
|
|
|
|
|
return GAMESTATE:GetCurrentSong():GetDisplayMainTitle() == sSongName
|
|
|
|
|
end,
|
|
|
|
|
DayOfMonth = function() return DayOfMonth() end,
|
|
|
|
|
MonthOfYear = function() return MonthOfYear() end,
|
|
|
|
|
UsingModifier = function(pnPlayer, sModifier)
|
|
|
|
|
return GAMESTATE:PlayerIsUsingModifier( pnPlayer, sModifier );
|
|
|
|
|
end,
|
|
|
|
|
}
|