Commit Graph

107 Commits

Author SHA1 Message Date
Kyzentun 2aee27a276 Backport custom song support. Prefs are CustomSongsEnable, CustomSongsMaxCount, CustomSongsLoadTimeout, CustomSongsMaxSeconds, CustomSongsMaxMegabytes. Metrics are NumProfileSongGroupColors and the colors with it. Profile custom load function is passed PlayerNumber now. Stepmania must run as root to save USB profile scores. (#1470) 2017-06-06 05:30:06 -07:00
Kyzentun Keeslala d215dd99a0 Fix auto set style in course mode. 2016-07-14 18:12:59 -06:00
Kyzentun Keeslala 7bd64c32af Added AllowHoldForOptions preference.
Back button now only backs out of a screen on a press.
Updated changelog.
2016-06-24 16:55:01 -06:00
Kyzentun Keeslala 55e161336a Added lua bindings for playing sounds in SCREENMAN. Added input redirection functions to SCREENMAN for disabling non-lua screen input processing. Added OF_FALSE, OV_EOF, and OV_HOLE to error string list in RageSound for more understandable messages. Made sure RageSound doesn't delete null pointers. Updated changelog. 2016-02-03 13:05:23 -07:00
Kyzentun Keeslala a3f5682ce2 Added Stop Course to pause menu. Hide foreground during pause menu. Changed GiveUpStartText, GiveUpBackText, and SkipSongText to tell the player to double tap for the menu. 2016-01-12 17:37:00 -07:00
Kyzentun Keeslala 65c84ef7dc Moved lua music logic to a separate function so that ScreenSelectMusic can use lua for the various kinds of sample music. 2015-11-08 22:58:10 -07:00
Joe 459c74c3bf Music wheel preview fadeout time is now adjustable by the metric [ScreenSelectMusic] SampleMusicFadeOutSeconds. 2015-05-11 15:44:24 +01:00
Kyzentun 236947b346 Changed GetFirstCompatibleStyle to not crash SM so it can be used to check whether joining is allowed. JoinPlayer and PlayersCanJoin now use GetFirstCompatibleStyle to check whether there will be a style to change to. Changed logic in PlayersCanJoin to return false at the first failed requirement. 2015-05-02 23:36:28 -06:00
Kyzentun fc6ce722ca Disabled late join on SSM if on extra stage to prevent crash in summary screen. 2015-04-14 12:25:40 -06:00
Kyzentun 8993cfe729 Added MuteActions preference checking to RageSound::PlayCopy. Modified ActorSound and GameSoundManager::PlayOnce to take is_action args. Fixed doc for playcommand to mention the param table. 2015-04-08 16:15:14 -06:00
Kyzentun 2b4cabfb57 Added keybinding for reloading songs on SSM, and lua function for doing it from lua. Added NeverCacheList preference for WIP groups that should never be cached. Rewrote TimingData::CopyRange in preparation for using it to copy/paste timing data from the selected area in edit mode. 2015-03-31 15:20:37 -06:00
Kyzentun 3c70b13fcf Fixed unitialized radar in CalculateRadarValues. Changed song deletion message to use translated string. Updated changelog. 2015-03-27 17:04:58 -06:00
Colin Wallace 473974e52f Add ability to delete songs from disk at the song selection screen (Ctrl+Backspace) 2015-03-27 05:22:55 +00:00
Kyzentun fa0478affa Merged per-chart music. Updated changelog. 2015-03-09 19:06:57 -06:00
Kyzentun 976f773f7c Merge pull request #486 from kyzentun/mute_actions
Toggle key for muting actions
2015-03-07 17:51:28 -07:00
Kyzentun 846f79879c Added MUSIC tag to note data to allow each chart in a simfile to use a different music file. 2015-03-02 18:44:01 -07:00
Kyzentun 9381276fd3 Changed ScreenSelectMusic and Song to look for preview.ogg and use it for a sample if it exists instead of the music file. Sample length still comes from simfile. Changed foreach_ordered to work on tables with string and number keys. 2015-03-01 15:40:16 -07:00
Kyzentun b293a8c073 Added debug key for toggling action sounds off. Touches every place that RageSound::Play is called, hope I didn't miss one. 2015-02-28 06:25:02 -07:00
Kyzentun 40b25e6220 Fixed conflicts to merge kickbox in. 2015-01-27 18:03:41 -07:00
Kyzentun f4a718a824 SetCompatibleStylesForPlayers and ForceSharedSidesMatch added to GameState for SSM to use to fix style mismatch problems.
StyleInputToGameInput changed to take a vector to return values in to handle multiple inputs mapped to a single column.  Associated adjustments to everything that uses it.
Player no longer drops holds in columns that have multiple inputs mapped to them if the wrong one is held.
Running out of stage tokens changed from assert to error.
2015-01-17 21:15:15 -07:00
Kyzentun 2d26c8133a ScreenSelectMusic:HardCommentMeter metric added. 2015-01-16 10:23:26 -07:00
Kyzentun 3fb36af157 Separate styles for players. Notefields positioned between margins. Edit mode works for kickbox. 2014-12-09 22:27:00 -07:00
Kyzentun 4f95bf08ad Function chaining for actors and singletons. 2014-12-01 22:31:30 -07: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 fb1a251b7a Changed many places that used RageException to use ReportScriptError instead. Wrote ScreenOptionsExample.ini as documentation example for the OptionRow system. Rewrote gamecommands.txt to include all GameCommands. Fixed Commands::GetOriginalCommandString to insert the semicolons that separated the original commands. Changed nonsensical boolean |= true statements in GameCommand.cpp to just use =. Added protection to ReportScriptError to keep it from recursing through itself when an error occurs in error reporting. Added UseAbort option to ReportScriptError for places that want to use an AbortRetryIgnore dialog to query the user. Added ScriptErrorMessage for places that need to handle the warning/dialog part separately. Added logging flag to MESSAGEMAN so that all messages broadcast can be logged when desired. Changed OptionRowHandler::LoadInternal to return a boolean success value as part of error handling. 2014-07-12 14:59:10 -06:00
Dan Guzek 7d13a9963b allow button messages in SSM's SelectMenu
This allows themers to make use of SelectMenuInputMessageCommand even
if they have SelectMenuChangesDifficulty set to true in their Metrics.

Neither _fallback nor Default use SelectMenuInputMessageCommand and,
for that matter, no theme I'm aware of does (perhaps because it's
essentially inaccessible as it is).

I use this to detect if a player presses START while holding SELECT on
SSM.  This is possible with the existing code system, but that
CodeMessage does not fire until the player lets go of both buttons.
This allows the themer to check for that button combination more imm
ediately.
2014-06-01 21:28:17 -04: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
Devin J. Pohly 38c1e12a6f Fix crash when sorting in Oni mode 2013-05-30 21:06:52 -04: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
Devin J. Pohly d13ac7e7a2 modify Input() on screens to return boolean 2013-01-12 22:48:38 -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
Colby Klein 6bf3c9ed37 Fix mouse events being eaten on SSMusic. 2012-12-28 17:49:53 -08: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
Jason Felds e01537405f war on -Werror, part 8: more informals.
General guide: if the parameter name and its typings
match almost exactly, the name goes away.
Otherwise, it's commented out to allow for some
documentation.
2012-12-27 00:00:28 -05:00
Marcio Barrientos 072f096214 Only unchose steps if menutimer have more than 10 seconds, twoparttimerseconds and allowing to unchose the song makes a "infinite timer" bug 2012-11-26 15:16:00 -06:00
AJ Kelly 6504580576 [ScreenSelectMusic] Fix an issue where Control+<Letter> wouldn't work. 2012-07-10 01:39:02 -05:00
AJ Kelly ce4366e605 [ScreenSelectMusic] Added PlaySoundOnEnteringOptionsMenu metric (true/false). 2012-03-01 21:28:15 -06:00
Colby Klein 2e5d5f3697 Add some Lua bindings for the music wheel and items. 2011-12-20 01:47:49 -08:00
AJ Kelly 9793a08b16 [ScreenSelectMusic] Fixed Rave difficulties not being synced on late join. Fixes issue 577. 2011-11-06 16:44:23 -06:00
AJ Kelly 85d3acb651 a todo for later 2011-10-07 13:51:00 -05:00
AJ Kelly 5ed3a8a80e still want to get this working one day... 2011-09-07 21:00:49 -05:00
AJ Kelly 5238a51770 [ScreenSelectMusic] Added IdleCommentSeconds metric and "ScreenSelectMusic IdleComment" announcer sound. 2011-08-07 19:09:33 -05:00
AJ Kelly d20501c547 attempt to fix a crash when pressing ctrl+letter during the transition 2011-07-20 16:25:48 -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 0a7b9ce170 Some respect for OOP. (MasterPlayerNumber) 2011-06-06 20:40:11 -04:00
Jason Felds 6e72870fd0 [default -> splittiming] Caught up. 2011-05-15 01:00:05 -04:00
AJ Kelly f1bc24160b remove old note, reorganize dead code slightly 2011-05-14 22:41:57 -05:00
Jason Felds f7d1b46f72 [splittiming] Bringing it down. (91) 2011-05-09 21:03:30 -04:00
AJ Kelly 054747b55c [ScreenSelectMusic] Added NullScoreString metric. 2011-05-02 17:15:41 -05:00