Commit Graph

53 Commits

Author SHA1 Message Date
Kyzentun 9b847caa45 DefaultFailType preference removed because DefaultModifiers was overriding it. DefaultFailType ConfOptionRow now works by putting the fail type in DefaultModifiers.
Fixed double InitCommand bug in Foreground.
Disabled odd dimension check for screen texture.
2014-11-15 17:18:42 -07:00
Kyzentun 455431d8c3 Removed DefaultFail GamePref and reinstated DefaultFailType real preference. Should fix default fail related problems. 2014-09-15 00:04:41 -06:00
Kyzentun 95b16a0196 Merge branch 'LifeMeterMessage' of https://github.com/kyzentun/stepmania 2014-08-25 02:33:53 -06:00
Kyzentun bdb2b373bc Added NoteSkinManager::GetDefaultNoteSkinName so that PlayerOptions can avoid clearing the noteskin when the clearall mod is used. 2014-08-07 18:36:42 -06:00
Kyzentun 7e73892e6e Moved LifeType, DrainType, and BatteryLives from Song Options to Player Options. Added ScreenGameplay:FailFadeRemovePlayer lua function. 2014-08-06 23:26:05 -06:00
Kyzentun 2b9982f505 Added Mmod compensation to ArrowEffects::GetYOffset. 2014-05-08 03:07:02 -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
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
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
Kyzentun 0c9728a8a9 Changed resetspeed to use SET_FLOAT so it can be tweened to the way other mods can. 2014-02-14 22:26:03 -07:00
Kyzentun 13a4cccfb5 Added resetspeed mod to PlayerOptions. 2014-02-12 15:49:51 -07:00
Jason Felds 20d94d4b7e Cat is back in the bag. Revert commits.
A-mods need to be tested more.

...and this is what happens when you forget to
stash changes before a merge. Lesson learned.
2013-04-19 21:49:55 -04:00
Jason Felds 489a9312fc Forced a merge. Should be good. 2013-04-18 22:58:30 -04:00
Devin J. Pohly bd0e2074ad replace ASSERT(0) with useful fail messages 2012-12-27 16:59:35 -05:00
Jason Felds 1fc16698ba War on -Werror, part 12: explicit bool usage.
It may save a few cycles, but it's best to be
explicit on boolean operations, especially with
ASSERT.
2012-12-27 11:38:53 -05:00
AJ Kelly 3eb317522c [PlayerOptions] Fixes to Get/Set[C, M, X]Mod Lua bindings. [hanubeki]
Source: http://code.google.com/r/hanubeki-modified-sm-ssc/source/detail?r=97761b5dc87b8c8a1b296985a09814337578c745
2012-05-31 12:19:00 -05:00
Jason Felds 6782efb80f Fix setting some mods that always used drunk.
Thanks to TaroNuke for the assist.
2012-04-03 00:07:04 -04:00
AJ Kelly bd3d71540f [PlayerOptions] Don't display x-mods when using m-mods. Sourced from hanubeki-modified-sm-ssc rev. bd08a58dd7cf and OpenITG. 2012-03-09 14:25:39 -06:00
AJ Kelly 33372bf05e fix the crash I was getting when leaving the options. turns out approach for the m-mods was commented for a reason... 2012-01-16 00:31:18 -06:00
AJ Kelly 3fdfc1c4d4 [PlayerOptions] Fix a problem with m-mods where you would get m200 as the default speed modifier. 2012-01-15 23:39:53 -06:00
AJ Kelly a49044501e [PlayerOptions] Added IsEasierForSongAndSteps(Song,Steps,PlayerNumber) and IsEasierForCourseAndTrail(Course, Trail) Lua bindings. 2011-11-30 00:35:06 -06:00
AJ Kelly 6919da8e5a [PlayerOptions] Pretty large changes here, namely a bunch of new bindings. Fixed the logic for GetReversePercentForColumn; It will now return nil for invalid columns. Also fixed the logic for UsingReverse (now checks for 1.0f) and SetPassmark (no longer allows values < 0.00f and > 1.0f). 2011-11-27 05:02:39 -06:00
Jason Felds 9e486bec32 [backwards] Add option, Lua call GetBackwards(). 2011-10-16 15:41:26 -04:00
AJ Kelly 7fba9a3917 [PlayerOptions] Add GetMMod() Lua binding. 2011-08-20 01:45:06 -05:00
AJ Kelly 6a16952161 FUCK THIS PIECE OF BULLSHIT 2011-07-03 17:52:03 -05:00
Colby Klein 07a2bd6da7 Port OpenITG's M-Mods. Example: m600 to set target BPM of 600, on a 200BPM song this means 3x. Works with custom speed mods. Note: the block in Player.cpp needs to be fixed for these to be usable, do this before releasing PR2. 2011-07-03 00:08:56 -07:00
Jason Felds 4ab534de75 Use NoAttacks vs StepAttacks. 2011-06-26 23:58:24 -04:00
Jason Felds fcf9e335e6 Use StepAttacks instead.
This deprecates the GetSongAttacks lua function.

Next up: make it so that no text is displayed if
Step Attacks are on, but display "No Attacks" if
attacks are turned off.
2011-06-24 12:12:27 -04:00
Jason Felds 6e1d5cf10b DQ if attacks are there, but disabled. 2011-06-24 10:55:39 -04:00
Jason Felds b470188ca4 Make Song Attacks on by default.
No, metrics wasn't enough.

Now to get #ATTACKS working on Split Timing.
2011-06-24 10:49:42 -04:00
Jason Felds c3c8753620 More prototype warning stuff.
I know these should be in the .h files,
but we can cover that later.
2011-06-12 19:20:43 -04:00
Jason Felds cb38eae9ba Removing the ScoreDisplay mods.
Lua has since replaced it.
2011-06-06 18:55:49 -04:00
AJ Kelly d0cca36f2a more small comment stuff 2011-06-03 19:52:20 -05:00
Jason Felds 84b5cf192e Don't ignore those warnings! 2011-05-27 10:53:30 -04:00
Jason Felds 283afa4687 Log if a mod isn't loaded for some reason. 2011-05-27 10:42:47 -04:00
Jason Felds 6b4703d2ed Not a fan of plain ASSERTs. 2011-05-27 10:26:43 -04:00
Jason Felds 640f8fe9fc [splittiming] PlayerOptions -> HasTimingChanges.
Steps gained most of the functionality and lua doc.
Leaving song version in: may still have a use
thanks to #DISPLAYBPM.
2011-05-15 14:05:02 -04:00
Jason Felds da51e26d07 Standardize conversion processes.
Too many arguments for or against the many methods:
stick to one inside a common function.

This commit will force recompilation of many files.
2011-05-11 15:58:31 -04:00
AJ Kelly 445f9a5e32 * [PlayerOptions] Added UsingReverse() Lua binding (automatically tests GetReverse() == 1)
* [PlayerState] Added GetCurrentPlayerOptions() Lua binding
2011-04-16 21:10:44 -05:00
AJ Kelly 7d8e2c33bc [PlayerOptions] Tons of new Lua bindings. See the Lua documentation for all of them, there's too many to print here. 2011-03-20 21:25:49 -05:00
AJ Kelly d854a99317 change how GetNoteSkin binding works 2011-03-20 20:52:56 -05:00
AJ Kelly c7873d9199 [PlayerOptions] Added SetNoteSkin(string) Lua binding. 2011-03-20 13:03:16 -05:00
Jason Felds a085d0d1da Line endings...be normalized! 2011-03-17 01:47:30 -04:00
Jason Felds 628a74a792 Effective C++ Violations down by over 5000.
I think that was the biggest batch.
2011-03-14 16:25:53 -04:00
Jason Felds ccf92c7c1c Add No Lifts and No Fakes transform mods. 2011-02-28 10:02:23 -05:00
AJ Kelly 18f7dea5f9 [PlayerState] The old GetPlayerOptions() binding is now GetPlayerOptionsString(). There is a new GetPlayerOptions() binding that gets the PlayerOptions object, which has a GetNoteSkin() binding (and hopefully more in the future). 2011-02-27 18:36:05 -06:00
Jason Felds 30341de96e Add metrics for random modifier choosing. 2011-02-12 00:18:01 -05:00
AJ Kelly dc394b8569 add twirl and roll mods from OpenITG [original code by vyhd] 2010-08-21 14:17:52 -05:00
AJ Kelly b28c1a3556 f8f3a87: don't override user scroll in courses [Chris Danford] 2010-07-02 10:47:54 -05:00
AJ Kelly bff6eb0469 Add Pump it Up's X Mode (thanks to StepNXA); this version should work with all gametypes and stepstypes. 2010-05-02 10:15:02 -05:00