Commit Graph

113 Commits

Author SHA1 Message Date
sigatrev 99ba67acc7 spaces to tabs 2014-04-15 12:09:03 -05:00
Colby Klein 509f725d7e Merge pull request #96 from kyzentun/UnloadProfile_optimization
Unload profile optimization
2014-04-08 15:57:41 -07: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
Kyzentun 27dc958970 Changed GameState::UnjoinPlayer to actually follow its own comment and unjoin the player from STATSMAN first, instead of unjoining from PROFILEMAN, then STATSMAN, then PROFILEMAN again. Changed ProfileManager::UnloadProfile to skip unloading if the profile wasn't actually loaded in the first place. 2014-03-10 21:54:53 -06:00
Devin J. Pohly bb1b6a81c6 Special case player number 1/2 in ApplyGameCommand
This function, oddly, used to take a 1 or 2 for the player number where
other nearby functions (e.g. IsPlayerEnabled) would take the proper enum
value, 0 or 1.  If the old-style syntax (raw number) is used, also use
the old-style interpretation.
2014-02-23 16:41:19 -05:00
Colby Klein 5e52c4f37e Merge branch 'ComboContinuesBetweenSongs_readd' of https://github.com/kyzentun/stepmania into kyzentun-ComboContinuesBetweenSongs_readd 2014-02-17 14:41:33 -08:00
Kyzentun 3c7bb93bbc Added ComboContinuesBetweenSongs back in. And if that line in ResetStageStatistics is committed as FOREACH_HumanPlayer, I'm going to punch git. 2014-02-16 11:43:28 -07:00
Kyzentun 5bde20e897 Exposing GameState::JoinInput to Lua. 2014-02-12 15:45:26 -07:00
Ben "root" Anderson d654bd0142 Time to reopen this big 'ol bag of worms. 2014-02-02 12:53:26 -06:00
Ben "root" Anderson a040c4a586 1) SOMEONE can't spell "accessible" 2) Global commenting consistency 3) persistance -> persistence 2013-11-30 09:50:54 -06:00
Devin J. Pohly 00e6f6e924 Make Pay mode work like Free
Third time's a charm.  Removing Pay mode without causing breakage to the Lua API.
This is the first step.
2013-06-08 16:11:02 -04:00
Devin J. Pohly 259e9b1e00 Revert "Round 2 of this."
This reverts commit 1d7b5fe852.
2013-06-04 23:47:49 -04:00
Devin J. Pohly 1220dbe085 Revert "Round 2-2 of this."
This reverts commit 0ae4183f7b.
2013-06-04 23:47:22 -04:00
Jason Felds 0ae4183f7b Round 2-2 of this. 2013-04-16 00:16:02 -04:00
Jason Felds 1d7b5fe852 Round 2 of this. 2013-04-15 23:26:05 -04:00
Colby Klein 3f32d9114f Revert "CoinMode_Pay->CoinMode_Free, step 1."
This reverts commit 15b3ee1a9a.
2013-02-11 12:11:54 -08:00
Flameshadowxeroshin 15b3ee1a9a CoinMode_Pay->CoinMode_Free, step 1.
CoinMode_Pay is still a value for the CoinMode enum but is now the same as CoinMode_Free.
Any code that checks for CoinMode_Pay is gone.
2013-02-07 09:12:28 -06:00
Devin J. Pohly ce507b9800 use empty TimingData in Steps to signify fallback on Song timing.
This required using the new Steps::GetTimingData function and the allowEmpty
parameter to TimingData::TidyUpData when appropriate, as well as clearing the
TimingData to remove step timing rather than coping the song timing over it.

Fixes some odd editor behavior when changing song timing, and is overall a
slightly less hacky way of doing things.
2013-01-23 14:51:18 -05:00
Marcio Barrientos b39137e1be Stop the musicwheel when the optionslist is oppened, this fixes a bug when you call the optionslist using a custom code detector
Small fix in gamestate
2013-01-03 03:17:30 -06:00
Devin J. Pohly 9e6d161743 fix crash on double ES.
code should ensure that a call to SetCurrentSteps passes steps that match the
current StyleType
2013-01-02 14:07:03 -05:00
Devin J. Pohly bd0e2074ad replace ASSERT(0) with useful fail messages 2012-12-27 16:59:35 -05:00
Jason Felds 52df8ea981 War on -Werror, part 13: hodgehodge. 2012-12-27 12:07:02 -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
Colby Klein bfba3a6fe8 (mostly) Fix arrow stuttering from repeated positions from audio drivers.
As far as I could tell, this fixed any issues I was having with PulseAudio,
it should also fix up DSound on Windows although I've yet to test that.
2012-12-17 16:43:31 -08:00
AJ Kelly 05a410321e formatting 2012-05-27 12:55:57 -05:00
AJ Kelly 59b43867c1 [GameState] Added GetStageResult(pn) Lua binding. 2012-03-28 18:55:17 -05:00
AJ Kelly 73bdb7fd54 [GameState] Set Premium to Premium_DoubleFor1Credit by default. 2012-03-01 17:20:10 -06:00
Marcio Barrientos 4fd32f1259 Change the style after you change the steps with
SetCurrentSteps( PlayerNumber pn, Steps steps ) lua binding
2012-01-07 17:26:18 -06:00
Flameshadowxeroshin b2c3454428 add GameState:GetEnabledPlayers 2012-01-02 06:07:24 +00:00
Jason Felds 1376a46b01 Add the GAMESTATE:InStepEditor LUA binding. 2011-12-12 18:49:10 -05:00
Jason Felds 34f3ff2c31 Add RefreshNoteSkinData lua binding.
If anyone recalls the other ways of getting
arbitrary games, a similar binding could be
added to NoteSkinManager.
2011-11-06 10:36:08 -05:00
Jason Felds bbec5842f6 Add the ResetPlayerOptions lua binding. 2011-10-29 11:43:49 -04:00
AJ Kelly 264ba574fb part two of three re: Actors/ 2011-10-02 21:40:33 -05:00
Jason Felds f9d12e1afe I hope Windows likes "/" versus "\". 2011-10-02 00:09:40 -04:00
AJ Kelly 9cf2592a32 fix up some include paths. 2011-10-01 22:59:01 -05:00
AJ Kelly 92800cdaee [GameState] Added ApplyStageModifiers(player,string) Lua binding. 2011-09-30 14:50:18 -05:00
AJ Kelly a682662ad8 [GameState] Added ApplyPreferredModifiers(player,string) Lua binding. 2011-09-30 13:44:05 -05:00
AJ Kelly 8f80774b22 [GameState] Added CurrentOptionsDisqualifyPlayer(player) Lua binding. 2011-09-30 13:33:57 -05:00
Jason Felds 91999148d8 Add GameState::EditAllowedForExtra metric. 2011-09-29 22:09:52 -04:00
Marcio Barrientos 6d4b5c8e76 Add one new Lua binding to add one more stage to player (bonus)
AddStageToPlayer(pn)
2011-09-21 16:21:23 -06:00
AJ Kelly fb2a63ca16 [GameState] Added GetEarnedExtraStage() Lua binding. 2011-09-07 23:48:04 -05:00
AJ Kelly 9c16ca4ef9 [GameState] add GetExpandedSectionName() Lua binding. 2011-08-07 19:08:47 -05:00
AJ Kelly 0285f7687f [GameState, SongUtil] Fix Issue 263 by not charging 2x stages for doubles when not using joint premium. 2011-08-07 18:33:35 -05:00
AJ Kelly ebe832a142 Move the expanded section name into GameState 2011-08-03 23:56:04 -05:00
Jason Felds dbdab4759e [Xcode4] May as well fix switch warnings.
Still need some assistance for the linker error.
2011-07-20 11:11:04 -04:00
Jason Felds 6f2fb1b673 Revert the wrong way to fix Fails. 2011-07-07 00:58:54 -04:00
Jason Felds 6bb873c8ce Wait...crap. This may not work. Revert. 2011-07-06 22:22:45 -04:00
Jason Felds c44e861df1 Only go through the enabled players. 2011-07-06 22:22:13 -04:00
Jason Felds db231b086c Add...well, more comment and no-op if anything.
Still, we have our target goal.
2011-07-06 21:34:01 -04:00
Jason Felds 5940bdeddb More abstraction. 2011-06-30 02:10:58 -04:00