Commit Graph

64 Commits

Author SHA1 Message Date
dando92 2dc61769fc Added logic to reset coins at startup 2025-03-30 09:51:47 -07:00
Crash Cringle 4f0febb57c Rename DefaultSyncBias --> DefaultSyncOffset 2025-03-18 07:28:50 -07:00
dando92 8320afe796 Added hide lights feature in player options 2025-03-18 07:24:58 -07:00
Crash Cringle 6b50f9a90c Rename MachineSyncBias --> DefaultSyncBias 2025-03-16 15:42:41 -07:00
Crash Cringle 9529bfd142 Change MachineSyncBias prefs to an enum SyncBias, Changing this song triggers a reload of songs, added new option effect for reloading songs 2025-03-16 15:42:41 -07:00
Crash Cringle 05cd7ed922 reimplement "SyncBias" as something that tells us the sync of the pack so we may adjust accordingly rather than the blanket sync to apply to the pack. 2025-03-03 23:25:32 -08:00
Crash Cringle 00342feadc Add new preference: DefaultGroupOffsetSeconds to dictate the default sync bias on the machine when no group.ini is present (or if there is no SyncOffset field in said file).
- Generally Supports either ITG (9ms) or NULL (0ms).
- Alternatively, one could edit the preference manually to put a different value
- Name/Description probably worth ironing out
2025-03-03 23:25:32 -08:00
sukibaby 3eae2f2052 Preference to handle the debug overlay, create fake classes to disable unwanted debug lines (for now)
Ideally this would also have an option to allow AutoSync,  AutoPlay, and Assist Tick with the debug overlay disabled, but that would require migrating that functionality elsewhere.
2024-11-30 22:56:28 -08:00
sukibaby 57afab25c1 Remove m_iRageSoundSampleCountClamp preference
Windows XP era DirectSound hack - removing the functions that used this.
2024-10-01 13:03:06 -07:00
din 9efc73df61 pref to bass simplify lighting 2023-12-13 08:53:08 -08:00
Crash Cringle f60c1c7f82 Add new Sorting Capabilities for Profile list 2023-03-13 19:56:07 -07:00
Lamar Cooley f62938787a Add new Preference, Maximum Number of Credits
Grant users the ability to change the maximum amount of credits available rather than the constant cap at 20.

(cherry picked from commit 2ec2355d7a7d9fec9410cf6b7d2b5c31a4406074)
(cherry picked from commit 48245ab51600ede16096e70e27c94345918eaed7)
2023-01-24 13:04:27 -08:00
Michael Sundqvist 0cba3579de Remove global "using namespace std;" declarations, use "std::" prefixes on all std elements
Fix whitespace changes
2022-07-31 22:14:38 +02:00
Martin Natano 4c0aef69dd Remove legacy network code 2022-04-11 14:50:00 -07:00
Martin Natano 168877f6a8 Mount directories read-only where possible 2022-03-12 22:30:54 +01:00
Martin Natano 0861ed45c7 Merge /AdditionalSongs into /Songs, and /AdditionalCourses into /Courses
Includes a backwards-compatibility mechanism to adapt paths when loading
Stats.xml.
2022-03-11 22:35:31 +01:00
FMS-Cat a6dd6f4ad7 feat (RateModsAffectFGChanges): add a PREFSMAN RateModsAffectFGChanges 2020-10-20 01:38:55 +09:00
Chris Pable c200600c65 Fix audio drivers with a low sample count maximum value (#1697) 2018-08-02 08:28:24 -07:00
Alexander Griffin c0981c42ec Changing BannerCache into ImageCache to support more imagetypes (#1532) 2017-09-19 14:49:42 -07:00
Drew Barbarello 557be7cf1b 5 1 new backport x11 fs rework (#1485)
* Use XRandR 1.2 to set fullscreen resolution for single output

Squash of roothorick's PR #497
(also includes Kyzentun's CMake changes from PR #716)

* Cherry-pick json c++1x stuff (b9e3d7174e)

* Cherry-pick c++11 support from 5bba5c0038 and 9f8b045309

* rework Linux (X11) fullscreen, improve display-related Graphics Options

Implement option to select between monitors for exclusive fullscreen mode
on X11 (using XRandR 1.2), or use a fullscreen borderless window.

Reimplement resolution/refresh rate/display mode-related option rows
using Lua, update choices dynamically so only known-good groupings of
resolution/refresh rate/aspect ratio can be selected.

Minimally update Windows/MacOS LowLevelWindow implementations to support
changes made for Linux side. Fullscreen Borderless Window/multi monitor
support from X11 not implemented for those in this commit.

* allow forcibly disabling xinerama use on Linux

When libXinerama is available, SM tries to use it to find the proper
monitor indexes to use to set _NET_WM_FULLSCREEN_MONITORS (on borderless
fullscreen). xfwm4 seems to assume that monitors are numbered in increasing
order from left to right (rather than using the Xinerama-assigned numbers),
so _NET_WM_FULLSCREEN_MONITORS misbehaves on Xfce.

This commit bypasses use of libXinerama, and instead forces SM to induce fullscreen
on the desired monitor in the backup, hacky way: remove all window hints, move window
to desired monitor, then add _NET_WM_STATE_FULLSCREEN hint. This works on
mutter and Xfce.

* Remove multiple warnings on redundant define.

This used to be hard-coded due to pthread related items, but now it's dynamically determined.

* fix _fallback menu behavior for unrecognized aspect ratios

* Fix error recreating existing FS texture

* Bump deployment target to 10.7 to use libc++ on XCode 8

* Add explicit casts to please clang

* Update changelog
2017-06-18 08:55:16 -07:00
Tyler Brekke 9b5746f505 PercentageDisplay: Fix ShowDancePointsNotPercentage() (#1474)
Remove legacy setting DancePointsForOni

Fixes: #1473
2017-06-07 06:20:48 -07:00
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 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 6a73cdd1ba Added DisableUploadDir preference. Updated changelog. 2016-03-22 09:22:52 -06:00
latot 47b0f83aed Remove WITH_VERSION_INFO, version info by default 2015-10-22 21:21:47 -03:00
Dan Guzek 3716468923 reinstate MaxRegenComboAfterMiss Preference
This preference existed in previous versions of StepMania (3.95, at least) and is needed to properly emulate certain games (namely, In The Groove).

This PR brings back the code as seen here: https://github.com/sigatrev/Stepmania-3.95/blob/4af304c51aeeedacd07f612d7f0e5ecaa81cce19/LifeMeterBar.cpp#L228-L233

Unlike in SM3.95, however, I've now set the default value to be 5, the same as the RegenComboAfterMiss.  If players don't change the value, they won't see any difference in behavior in SM5.

If players want, they can manually set the preference to 10 (or a value of their choosing) to emulate the game of their choice.
2015-10-07 02:53:03 -04:00
Kyzentun Keeslala d2090081a1 Doing what I should have done a long time ago. 2015-07-09 13:18:51 -06:00
Kyzentun 9314555e6d Added preference for showing multiple toasties in one song. Added IsWaiting to Transition. 2015-04-18 08:52:57 -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
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 9353840583 Added HarshHotLifePenalty preference. 2015-03-08 23:44:18 -06:00
Kyzentun d3367d6a16 Add prompt for clearing an area in Edit Mode. Updated changelog. 2015-03-08 00:56:29 -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 c7ffbb3453 Lead in time before recording starts in edit mode is now a preference. 2015-01-31 14:03:30 -07:00
Kyzentun 040c0de509 Added MinTNSToHideNotes preference. 2014-11-19 15:59:21 -07:00
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
Colby Klein 3d126824e9 Merge pull request #316 from kyzentun/DefaultFailPref
Reinstate DefaultFailType preference
2014-09-21 17:56:50 -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
Dan Guzek fd1de8b080 add distinct coin input debounce preference
This commit adds a preference, DebounceCoinInputTime (defaults is 0), which allows coin input to be debounced via a float value separate from other input.
2014-09-11 16:02:45 -04:00
Kyzentun 71ed1df5e6 Added FastNoteRendering preference. 2014-08-31 17:17:48 -06:00
Kyzentun 9b2c59de46 Added BackgroundFitMode preference and setting screen for controlling how backgrounds are fitted to the screen. 2014-08-16 03:37:24 -06:00
Kyzentun 32e5d7e90c Improved three-key support. Default theme should be completely usable with three-key cabinets if ThreeKeyNavigation pref is true. Added ThreeKeyNavigation pref. ScreenOptions:NavigationMode metric now uses that pref to decide between normal and toggle modes. Added GoToFirstOnStart to OptionRowHandlerLua so an option row can control that behavior. Rewrote input for default's ScreenSelectProfile to use an input callback to take advantage of menu button mapping. Fixed inconsistent indentation in ORHL documentation. 2014-07-25 14:33:15 -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 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
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 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
AJ Kelly a564f0c696 [PrefsManager] Add StretchBackgrounds preference. 2012-06-02 23:03:47 -05:00
Aldo Fregoso 09f369cd33 Imported the check for updates code from StepMania AMX.
---
TODO: Move the code from NSMAN to a new class
TODO: HOOKS->GetURL for Linux
TODO: Do not run the check every time the game is launched, use:
PREFSMAN->m_iUpdateCheckIntervalSeconds - Seconds to wait before running the next check
PREFSMAN->m_iUpdateCheckLastCheckedSecond - Timestamp of the last check
2012-05-21 02:29:59 -05:00
AJ Kelly cdb2235b84 [PrefsManager, X11Helper] Added ShowMouseCursor preference. 2011-08-22 04:07:52 -05:00