Don't forget VS2008.
This commit is contained in:
@@ -1,7 +1,4 @@
|
|||||||
-- check if players are playing steps with different timingdata.
|
return Def.SongBPMDisplay {
|
||||||
local numPlayers = GAMESTATE:GetNumPlayersEnabled()
|
|
||||||
|
|
||||||
local displaySingle = Def.SongBPMDisplay {
|
|
||||||
File=THEME:GetPathF("BPMDisplay", "bpm");
|
File=THEME:GetPathF("BPMDisplay", "bpm");
|
||||||
Name="BPMDisplay";
|
Name="BPMDisplay";
|
||||||
InitCommand=cmd(zoom,0.675;shadowlength,1);
|
InitCommand=cmd(zoom,0.675;shadowlength,1);
|
||||||
@@ -9,54 +6,3 @@ local displaySingle = Def.SongBPMDisplay {
|
|||||||
CurrentSongChangedMessageCommand=cmd(playcommand,"Set");
|
CurrentSongChangedMessageCommand=cmd(playcommand,"Set");
|
||||||
CurrentCourseChangedMessageCommand=cmd(playcommand,"Set");
|
CurrentCourseChangedMessageCommand=cmd(playcommand,"Set");
|
||||||
};
|
};
|
||||||
|
|
||||||
if numPlayers == 1 then
|
|
||||||
return displaySingle
|
|
||||||
else
|
|
||||||
-- check if both players are playing the same steps
|
|
||||||
local stepsP1 = GAMESTATE:GetCurrentSteps(PLAYER_1)
|
|
||||||
local stepsP2 = GAMESTATE:GetCurrentSteps(PLAYER_2)
|
|
||||||
|
|
||||||
local stP1 = stepsP1:GetStepsType()
|
|
||||||
local stP2 = stepsP2:GetStepsType()
|
|
||||||
|
|
||||||
local diffP1 = stepsP1:GetDifficulty()
|
|
||||||
local diffP2 = stepsP2:GetDifficulty()
|
|
||||||
|
|
||||||
if stP1 == stP2 and diffP1 == diffP2 then
|
|
||||||
-- both players are using the same steps; only need one.
|
|
||||||
return displaySingle
|
|
||||||
end
|
|
||||||
|
|
||||||
-- otherwise, we have some more work to do.
|
|
||||||
local timingP1 = stepsP1:GetTimingData()
|
|
||||||
local timingP2 = stepsP2:GetTimingData()
|
|
||||||
|
|
||||||
local function UpdateBPM(self)
|
|
||||||
local dispP1 = self:GetChild("DisplayP1")
|
|
||||||
local dispP2 = self:GetChild("DisplayP2")
|
|
||||||
|
|
||||||
-- needs current bpm for p1 and p2
|
|
||||||
for pn in ivalues(PlayerNumber) do
|
|
||||||
local bpmDisplay = (pn == PLAYER_1) and dispP1 or dispP2
|
|
||||||
local pState = GAMESTATE:GetPlayerState(pn);
|
|
||||||
local songPosition = pState:GetSongPosition()
|
|
||||||
local bpm = songPosition:GetCurBPS() * 60
|
|
||||||
bpmDisplay:settext( string.format(%.2f,bpm) )
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
local displayTwoPlayers = Def.ActorFrame{
|
|
||||||
-- manual bpm displays
|
|
||||||
LoadFont("BPMDisplay", "bpm")..{
|
|
||||||
Name="DisplayP1";
|
|
||||||
InitCommand=cmd(zoom,0.675;shadowlength,1);
|
|
||||||
};
|
|
||||||
LoadFont("BPMDisplay", "bpm")..{
|
|
||||||
Name="DisplayP2";
|
|
||||||
InitCommand=cmd(zoom,0.675;shadowlength,1);
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
displayTwoPlayers.InitCommand=cmd(SetUpdateFunction,UpdateBPM);
|
|
||||||
end
|
|
||||||
@@ -81,7 +81,7 @@
|
|||||||
<Tool
|
<Tool
|
||||||
Name="VCLinkerTool"
|
Name="VCLinkerTool"
|
||||||
AdditionalOptions="/MACHINE:I386 "$(intdir)\verstub.obj""
|
AdditionalOptions="/MACHINE:I386 "$(intdir)\verstub.obj""
|
||||||
AdditionalDependencies="shell32.lib gdi32.lib user32.lib ole32.lib advapi32.lib ffmpeg/modern_working/lib/avcodec.lib ffmpeg/modern_working/lib/avformat.lib ffmpeg/modern_working/lib/avutil.lib ffmpeg/modern_working/lib/swscale.lib"
|
AdditionalDependencies="shell32.lib gdi32.lib user32.lib ole32.lib advapi32.lib Comctl32.lib ffmpeg/modern_working/lib/avcodec.lib ffmpeg/modern_working/lib/avformat.lib ffmpeg/modern_working/lib/avutil.lib ffmpeg/modern_working/lib/swscale.lib"
|
||||||
OutputFile="../Program/StepMania-debug.exe"
|
OutputFile="../Program/StepMania-debug.exe"
|
||||||
LinkIncremental="2"
|
LinkIncremental="2"
|
||||||
SuppressStartupBanner="true"
|
SuppressStartupBanner="true"
|
||||||
@@ -192,7 +192,7 @@
|
|||||||
<Tool
|
<Tool
|
||||||
Name="VCLinkerTool"
|
Name="VCLinkerTool"
|
||||||
AdditionalOptions="/MACHINE:I386 "$(intdir)\verstub.obj""
|
AdditionalOptions="/MACHINE:I386 "$(intdir)\verstub.obj""
|
||||||
AdditionalDependencies="shell32.lib gdi32.lib user32.lib ole32.lib advapi32.lib ffmpeg/modern_working/lib/avcodec.lib ffmpeg/modern_working/lib/avformat.lib ffmpeg/modern_working/lib/avutil.lib ffmpeg/modern_working/lib/swscale.lib"
|
AdditionalDependencies="shell32.lib gdi32.lib user32.lib ole32.lib advapi32.lib Comctl32.lib ffmpeg/modern_working/lib/avcodec.lib ffmpeg/modern_working/lib/avformat.lib ffmpeg/modern_working/lib/avutil.lib ffmpeg/modern_working/lib/swscale.lib"
|
||||||
OutputFile="../Program/StepMania.exe"
|
OutputFile="../Program/StepMania.exe"
|
||||||
LinkIncremental="1"
|
LinkIncremental="1"
|
||||||
SuppressStartupBanner="true"
|
SuppressStartupBanner="true"
|
||||||
@@ -294,7 +294,7 @@
|
|||||||
<Tool
|
<Tool
|
||||||
Name="VCLinkerTool"
|
Name="VCLinkerTool"
|
||||||
AdditionalOptions="/MACHINE:I386 "$(intdir)\verstub.obj""
|
AdditionalOptions="/MACHINE:I386 "$(intdir)\verstub.obj""
|
||||||
AdditionalDependencies="shell32.lib gdi32.lib user32.lib ole32.lib advapi32.lib ffmpeg/modern_working/lib/avcodec.lib ffmpeg/lib/avformat.lib ffmpeg/lib/avutil.lib ffmpeg/lib/swscale.lib"
|
AdditionalDependencies="shell32.lib gdi32.lib user32.lib ole32.lib advapi32.lib Comctl32.lib ffmpeg/modern_working/lib/avcodec.lib ffmpeg/lib/avformat.lib ffmpeg/lib/avutil.lib ffmpeg/lib/swscale.lib"
|
||||||
OutputFile="../Program/StepMania-fastdebug.exe"
|
OutputFile="../Program/StepMania-fastdebug.exe"
|
||||||
LinkIncremental="2"
|
LinkIncremental="2"
|
||||||
SuppressStartupBanner="true"
|
SuppressStartupBanner="true"
|
||||||
@@ -406,7 +406,7 @@
|
|||||||
<Tool
|
<Tool
|
||||||
Name="VCLinkerTool"
|
Name="VCLinkerTool"
|
||||||
AdditionalOptions="/MACHINE:I386 "$(intdir)\verstub.obj""
|
AdditionalOptions="/MACHINE:I386 "$(intdir)\verstub.obj""
|
||||||
AdditionalDependencies="shell32.lib gdi32.lib user32.lib ole32.lib advapi32.lib ffmpeg/modern_working/lib/avcodec.lib ffmpeg/modern_working/lib/avformat.lib ffmpeg/modern_working/lib/avutil.lib ffmpeg/modern_working/lib/swscale.lib"
|
AdditionalDependencies="shell32.lib gdi32.lib user32.lib ole32.lib advapi32.lib Comctl32.lib ffmpeg/modern_working/lib/avcodec.lib ffmpeg/modern_working/lib/avformat.lib ffmpeg/modern_working/lib/avutil.lib ffmpeg/modern_working/lib/swscale.lib"
|
||||||
OutputFile="..\Program/StepMania-SSE2.exe"
|
OutputFile="..\Program/StepMania-SSE2.exe"
|
||||||
LinkIncremental="1"
|
LinkIncremental="1"
|
||||||
SuppressStartupBanner="true"
|
SuppressStartupBanner="true"
|
||||||
|
|||||||
Reference in New Issue
Block a user