Commit Graph

3631 Commits

Author SHA1 Message Date
Colby Klein 2f593bad3d Merge pull request #151 from kyzentun/player_options_fix
SongOptions Lua interface with the same design as the PlayerOptions interface.
2014-05-03 20:54:58 -07:00
Kyzentun 782a66502e Accidentally left OptionsBinding.h out of previous commit. 2014-05-03 19:36:59 -06:00
Kyzentun 0dfb131291 Created SongOptions Lua interface with a similar design to the PlayerOptions interface. Moved enums that were inside SongOptions out and made them Lua accessible. Removed sAutosyncType and associated things from AdjustSync.cpp because it was unused. Added DefaultNilArgs and FArgGTEZero to LuaBinding as helpers. Moved INTERFACE defines from PlayerOptions.cpp to OptionsBinding.h. 2014-05-03 19:27:32 -06:00
Colby Klein 198536b73f Merge pull request #150 from kyzentun/player_options_fix
Fixed stack acciddent bug in PlayerOptions lua functions.
2014-05-03 00:51:34 -07:00
Kyzentun b6b840187d Made PlayerState:GetCurrentPlayerOptions safe to use. Added Docs/Themerdocs/modslevel.txt to explain what ModsLevel should be used by a theme using the new PlayerOptions interface. 2014-05-02 21:25:59 -06:00
Kyzentun 24f87d2e57 Fixed stack acciddent bug in PlayerOptions lua functions. Added skew and tilt mods to PlayerOptions::GetMods and FromOneModString for when the perspective isn't one of the old ones. 2014-05-02 16:45:49 -06:00
sigatrev 0c62e5fb9e Allow NoteField Board to be an AutoActor
NoteField board was already an AutoActor, but code was requiring it to
be a derivative of Sprite. Allow any ActorClass to be used.

NoteField could already be accessed from below, using GetParent() on the
NoteField Board. For ease of allowing the board to be used for player
specific purposes, make notefield an actual child of Player, so the
Board can be accessed per player from the top down.
2014-05-02 17:01:38 -05:00
AJ Kelly 2d9db97905 Merge pull request #148 from kyzentun/player_options_fix
Player options fix
2014-05-02 02:51:41 -05:00
Kyzentun 421a9be57b Ripped out existing PlayerOptions Lua interface and replaced it wholesale. Removed PrefsManager's DefaultFailType enum. Moved PlayerOptions::FailType enum to GameConstantsAndTypes and made it Lua accessible. Changed ModsLevel enum to include ModsLevel_Current to make accessing that ModsLevel easier to access. Rearranged ModsGroup appropriately. Added non-const Get functions to ModsGroup. Removed PlayerOptions.m_bSetTiltOrSkew because it had no reason to exist. Moved 200.0f to the const CMOD_DEFAULT because it was being used in more than one place. 2014-05-01 23:23:20 -06:00
Colby Klein 3f62d82ad7 Merge pull request #140 from sigatrev/style-methods
added methods to Style
2014-05-01 22:12:10 -07:00
Colby Klein 37c04f4979 Merge pull request #145 from kyzentun/return_all_children
Modified ActorFrame:GetChildren to actually return all children.
2014-05-01 22:12:03 -07:00
Colby Klein 1e469e25a3 Merge pull request #146 from sigatrev/LoadFunctions
run profile CustomLoadFunction when changing theme or assigning a local profile to a player
2014-05-01 22:11:51 -07:00
Colby Klein 476f26189d Merge pull request #147 from sigatrev/noteskin-get-metric
added NOTESKIN:GetMetric() method
2014-05-01 22:11:41 -07:00
sigatrev 8d5a22a2e1 added NOTESKIN:GetMetric() method
none of the other type specific methods can call the "FallbackNoteSkin"
metric.
2014-05-01 19:03:38 -05:00
sigatrev f1fc291989 run profile's CustomLoadFunction when changing theme or assigning a local profile to a player
This should make the custom load functions a lot more useful.
2014-04-30 21:30:30 -05:00
Kyzentun 587aa38854 Modified ActorFrame:GetChildren and GetChild to return a table in cases where multiple children have the same name. This table acts as a pass through layer for function calls so that old code should be unaffected. 2014-04-29 15:08:34 -06:00
David Buckley 71a499481f Properly handle Linux event device button numbers
Old code would, by coincidence, map 1->16 to 1->16, then 17->32 to
1->32, leaving 1 and 17 on the same button number.

We still map 33->56 to 1->24, creating some overlap. But at least that's
because StepMania will have run out of buttons.

THIS PATCH WILL CHANGE THE CODES OF JOYSTICK BUTTONS 17 AND UP.
2014-04-27 17:19:31 +01:00
sigatrev 3a4760af50 added methods to Style
GetColumnInfo and GetColumnDrawOrder
2014-04-25 19:39:11 -05:00
Colby Klein 31713ac253 Merge pull request #136 from sigatrev/Autoplay-Roll-Combo
fix for AutoPlay increase combo with "RollBodyIncreasesCombo"
2014-04-24 05:06:35 -07:00
Colby Klein ee87494252 Merge pull request #137 from sigatrev/TickHolds
Attempted fix of Tick Holds
2014-04-24 05:06:20 -07:00
Colby Klein 2c53f4f427 Merge pull request #138 from sigatrev/Net-fixes
remove FinishStage from Net screens
2014-04-23 22:47:34 -07:00
sigatrev 9da1ae3248 remove FinishStage from Net screens
FinishStage is handled by ScreenGameplay now.
2014-04-23 22:47:47 -05:00
sigatrev c4f7aab9a1 Attempted fix of Tick Holds
NoteDataUtil::GetTotalHoldTicks() was not counting the last tick of
holds which ended on the last row of the song. Extended the range to
include the last row.

NoteDataUtil::GetTotalHoldTicks() was counting number of rows held, when
it should only count 1 regardless of number( at least to mimic pump )

Player::CrossedRows() was assuming a constant tick rate over the crossed
rows, leading to potentially inaccurate tick counts.

Pump holds were counting "HoldNote_Held" due to capitalization in the
metrics. Fixed metrics and made "IsGame" function case insensitive.
2014-04-23 21:45:37 -05:00
sigatrev 5e517e1de1 fix for AutoPlay increase combo with "RollBodyIncreasesCombo"
per issue #125
2014-04-23 16:10:15 -05:00
Colby Klein b6570936f8 Merge pull request #123 from sigatrev/double-broadcast
removed SetCurrentSteps double-broadcast
2014-04-23 04:16:42 -07:00
Colby Klein 4c14cf2f0d Merge pull request #124 from sigatrev/early-judgments
make early judgments broadcast when judgment is triggered
2014-04-21 22:08:31 -07:00
sigatrev a3b38117b5 make early judgments broadcast when judgment is triggered
judgments triggered early were not broadcasting the judgment message
until their row crossed
2014-04-20 14:27:43 -05:00
sigatrev 7e5b651f1a removed SetCurrentSteps double-broadcast 2014-04-20 11:26:15 -05:00
AJ Kelly c18723c23c Merge pull request #122 from sigatrev/stopmusic
added StopMusic method
2014-04-19 16:38:46 -05:00
sigatrev 55a5551058 added StopMusic method 2014-04-18 18:59:57 -05:00
Vincent Laviron 44fede6c1e Fix building on older versions on FFMpeg 2014-04-16 15:12:23 +02:00
Colby Klein 039df4da64 Merge pull request #120 from sigatrev/gameplay
added GetHasteRate method, made GiveUpSeconds a metric
2014-04-15 15:51:05 -07:00
sigatrev 25ddd69208 added GetHasteRate method, made GiveUpSeconds a metric
without haste rate, it's impossible to display an accurate BPM. Give up
time should be controllable.
2014-04-15 12:27:54 -05:00
sigatrev 99ba67acc7 spaces to tabs 2014-04-15 12:09:03 -05:00
sigatrev 70c5209e76 added ActorMultiVertex
AMV is an actor which can have a variable number of vertices that can
each be given their own pos, color, and coords. They can be drawn using
any of the RageSpriteVertex draw functions in RageDisplay.cpp. The
vertex properties can be tweened.
2014-04-14 21:29:19 -05:00
Colby Klein 0263b11fc5 Merge pull request #74 from dguzek/ActorScroller-bLoop
Allow ActorScrollers to use SetDrawByZPosition without turning off Loop
2014-04-14 18:49:00 -07:00
Colby Klein 509f725d7e Merge pull request #96 from kyzentun/UnloadProfile_optimization
Unload profile optimization
2014-04-08 15:57:41 -07:00
Vincent Laviron 84903fce25 FFMpeg: Fix uninitialized AVFrame, which led to crashes with recent version of libav and ffmpeg 2014-04-03 17:28:13 +02:00
Colby Klein 914ad876ae Merge pull request #110 from sigatrev/Save/LoadProfile
Expose Save/load profile to Lua. This deprecates ScreenProfile{Load,Save} completely, but those are going to be left in until post-5.0
2014-04-02 17:12:28 -07:00
sigatrev b8e4cdddec StartTransitioningScreen
Exposes the StartTransitioningScreen function to lua. Great utility for
custom screens.
2014-04-02 18:35:23 -05:00
sigatrev d059118935 Save/LoadProfiles
ScreenProfileLoad and ScreenProfileSave do nothing except use their own
lua methods to run GameState functions. Those functions might as well be
available as GameState methods.
2014-04-02 18:09:21 -05:00
Jason Felds 37f6b99571 Merge pull request #95 from wolfman2000/wolf-libraries
Separate out VS2012 projects appropriately.
2014-03-16 19:20:00 -04:00
Colby Klein 6298a0b950 Merge pull request #94 from sigatrev/MissedHold
HNS_Missed
2014-03-16 13:20:12 -07:00
Colby Klein b84c683d2e Merge pull request #70 from sigatrev/RageTimer
added lua function for GetTimeSinceStart
2014-03-16 13:18:34 -07:00
Jason Felds 9912c51e88 Move LUA to separate project (2011) 2014-03-16 14:03:02 -04:00
Jason Felds c578ac69d4 Move GLEW to separate project (2011)
Note: glext.h was removed due to it not being used.
2014-03-16 13:09:07 -04:00
sigatrev 343511f4c3 HNS_Missed
Added an HNS type to handle holds which are never initialized due to
missed taps. This fixes a long standing issue with
iCurPossibleDancePoints and allows themes to decide how to handled this
case.
2014-03-16 11:36:40 -05:00
Jason Felds f4eca5cc78 Move PNG to separate project (2011) 2014-03-16 12:04:01 -04:00
Jason Felds 70f7d18b1b Move PCRE to separate project (2011) 2014-03-16 11:40:49 -04:00
Sandon Van Ness 5c588087f0 Fixed indention. Fixed revert.
Signed-off-by: Sandon Van Ness <sandon@inktank.com>
2014-03-14 12:24:42 -07:00