443 Commits

Author SHA1 Message Date
Arthur Eubanks f8f6f12999 Add pump shortcut for closing current song folder 2023-01-31 21:31:52 -08:00
Martin Natano 35bc6b8775 Update credits 2022-06-11 23:38:52 +02:00
Martin Natano b0665a5135 Add din to credits 2022-06-05 12:07:38 +02:00
Martin Natano e77357a75e ITGmania credits 2022-05-23 21:49:42 +02:00
Martin Natano 4c0aef69dd Remove legacy network code 2022-04-11 14:50:00 -07: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
Martin Natano f79830e7af Fix typo in IniFile.WriteFile() error handling 2022-02-06 15:31:31 +01:00
teejusb a105e3bd60 Verify that PrefsTable[name] exists before indexing the pref. 2021-09-24 14:57:49 -07:00
Renan Guilherme 1b12bd32b7 _fallback: INI sections must start with brackets (#2127)
Previously, IniFile.ReadFile created sections by checking for brackets
anywhere in the line, causing issues if a value had brackets. This
commit changes the section matching regex, so that only lines that
begin with a bracket can become sections.
2021-07-16 02:31:27 -07:00
quietly-turning 21eed3f235 add 21:9 and 9:16 to ConfAspectRatio in _fallback
This adds choices for 21:9 (Ultrawide) and 9:16 (widescreen display in
portrait mode) to the _fallback theme.  Previously, users would have to
manually edit Preferences.ini to achieve either of these.

Since "21:9" is the common marketing term for what is actually 64:27,
I've slightly extended GenChoices() in ConfAspectRatio() to use a "name"
string from the winFracs table is one is provided. If not, the original
behavior of generating user-facing choices from the raw values is
preserved.

See: https://wikipedia.org/wiki/21:9_aspect_ratio

I updated the global AspectRatios table in _fallback/02 Utilities.lua to
match.
2020-04-28 22:47:54 -04:00
Dan Guzek 9666bb0ae2 change a few global Lua variables to be local
Running StepMania with the command line argument of --ExportLuaInformation while the current 5.1's default theme (Lambda) was selected added some seemingly stray Lua variables to the Constants table in ./Docs/Luadoc/Lua.xml.

I spotted them here: http://dguzek.github.io/Lua-For-SM5/LuaAPI#Constants

I'm assuming num, bPreference, and bCategory don't need global scope, so I added the local keyword where appropriate.
2019-12-09 19:45:57 -05:00
Martin Natano 6a4551f958 Detect 8:3 as widescreen (#1929)
The IsUsingWideScreen() function only checked 16:10 and 16:9, now we just
check that the ratio is greater than 16:10. (Coincidentally that's also
what the documentation states about this function.)
2019-11-03 12:10:05 -08:00
Rhythm Lunatic dcb2f74c8d Add More OptionsList functionality (#1810)
* Add More OptionsList functionality

* Remove Size parameter because it's broken

* Make OptionsList inputs remappable

* Change Next/Prev OptionsList to CodeDetector
2019-03-28 14:49:46 -07:00
Flameshadowxeroshin 52dbc11b5f Make getenv() and setenv() actually get and set the current env 2018-02-09 11:03:26 -06:00
Kyzentun Keeslala e233ea291c Change ThemePrefs to use the Theme preference instead of GetThemeDisplayName or themeInfo because GetThemeDisplayName does not work when a theme falls back on another theme. 2018-02-02 11:15:34 -07:00
Kyzentun 55562324e2 Fix relative paths in simfiles. (#1512) 2017-10-20 18:45:47 -07:00
ListenerJubatus f2f707cbae More minor tweaks to theme 2017-08-08 12:42:04 -06: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
MrThatKid a3eab2e7ab Added nITG's various column specific & other misc modifiers (#1468)
* Added stealth control, ZBuffer & DizzyHolds mod

Modifiers added:
StealthPastReceptors
DizzyHolds
StealthType
ZBuffer

* Removed theme metrics that are now mods.

Removed metrics:
DrawHiddenNotesAfterReceptor
DizzyHoldHeads

* Implemented nITG's Shrink modifiers

Modifiers Added:
ShrinkLinear
ShrinkMult

* Implemented nITG's Attenuate mods.

Modifiers added:
AttenuateX
AttenuateY
AttenuateZ

* Implemented nITG's pulse modifiers

Modifiers added:
PulseInner
PulseOuter
PulsePeriod
PulseOffset

* Implemented nITG's DrawSize and Bounce modifiers.

Modifiers Added:
Bounce
BouncePeriod
BounceOffset
BounceZ
BounceZPeriod
BounceZOffset
DrawSize
DrawSizeBack

* Added nITG's column specific Dark & Stealth mods

Modifiers added:
Stealth<1-n>
Dark<1-n>

* Finish adding nITG's column specific mods

Modifiers added:
ConfusionXOffset<1-n>
ConfusionYOffset<1-n>
ConfusionzOffset<1-n>
Reverse<1-n>
Tiny<1-n>
Bumpy<1-n>

* Documented new modififers

* Changelog housekeeping

Fixed a typo and added this branch's PR into the changelog.

* Last bit of clean up. (#3)

* Fixed up one line of the changelog

* Add MrThatKid to credits.
2017-06-09 21:10:17 -07:00
Kyzentun dd9fa68fef Sprite:Load lua function can set additional texture hints by having a second argument. Also, rec_count_children slipped in Utilities somehow. (#1426) 2017-04-04 17:24:14 -07:00
Kyzentun Keeslala 3d98fc7a60 Add oitg_zoom_mode_actor. Turn off minimaid lights when exiting. 2016-08-29 12:43:04 -06:00
Kyzentun Keeslala ca9fd7c707 Fixed bug that allowed pausing by pressing two different pause buttons instead of double tapping one. Moved pause logic to script in _fallback to make it easier for other themese to use. 2016-06-28 16:12:45 -06:00
Kyzentun Keeslala 62ccc9dae1 Updated changelog. Reencoded small sounds to avoid the small sound crash bug on linux. 2016-03-14 16:57:56 -06:00
Kyzentun Keeslala 060f0999c2 Updated changelog. Added joelwindows7 to translator credits. 2016-03-05 19:05:31 -07:00
Kyzentun Keeslala 108b29733f Put French in credits instead of français to match other entries. 2015-10-30 00:55:52 -06:00
Kyzentun Keeslala a9372d97e7 Added Arvaneth and Prcuvu to the credits. Updated changelog. 2015-10-30 00:43:40 -06:00
Kyzentun Keeslala a888506b32 Expose the optional argument for ResolvePath to lua and add it to ResolveRelativePath. 2015-07-16 17:54:48 -06:00
Kyzentun Keeslala d7411e6cdb Fixed Actor:bezier function in 02 Actor.lua. Documented Actor:bezier and Actor:tween properly. 2015-07-13 14:07:38 -06:00
Kyzentun Keeslala dc25e2cc1b Fixed bug in LogDisplay that made it put actors at non-integer indices and not work if the screen height was not a multiple of the line height. 2015-07-11 20:18:27 -06:00
Kyzentun Keeslala d2090081a1 Doing what I should have done a long time ago. 2015-07-09 13:18:51 -06:00
Kyzentun Keeslala 398fb8872f Fixed grammar in AttractSoundFrequency text. 2015-06-26 22:59:06 -06:00
Kyzentun Keeslala ac3ecfd034 Added RayZa to translation credits. 2015-06-20 10:57:25 -06:00
Kyzentun Keeslala c78950aaeb Changed timing and life difficulty text to position value after label. Changed all AllowRepeatingInput metrics in _fallback to true. 2015-06-14 08:55:42 -06:00
Kyzentun Keeslala 6be2cac4ed Updated changelog. Added nixtrix to credits. 2015-05-19 12:57:02 -06:00
Kyzentun 7ff045f920 Updated changelog and credits. Restored spaces on RoomInfoDisplay language entries because they probably belong there. 2015-04-23 20:49:18 -06:00
Kyzentun 603d8128f3 Merge pull request #553 from dguzek/Fix-ThemePrefs
Fix theme prefs
2015-04-17 00:43:41 -06:00
Kyzentun 8aa2d42427 Added rec_print_children and rec_print_table to _fallback. Updated changelog. 2015-04-07 00:04:34 -06:00
Dan Guzek 3d7cb7305b change broadcasting of ThemePref changes
I moved a MESSAGEMAN:Broadcast() call so that it only broadcasts the setting that has been saved.  This seems more sensible to me, but it is possible I'm misinterpreting the original design here.

Feel free to merge or not merge this commit. :)
2015-04-06 21:21:23 -04:00
Dan Guzek f0e46ecb49 fix ThemePrefs
The ThemePrefs table contains several functions and single standalone variable, NeedsSaving.  When a themer calls ThemePrefs.Save() the system will check the status of NeedsSaved to determine whether it really needs to save or not.  This is by design to prevent unnecessary writing to disk.

As far as I am able to discern, NeedsSaved would never be anything but false due to scoping within the ThemePrefs table.  This commit properly scopes that variable as it used within the functions.

It looks like ThemePrefs.ForceSave() was added as a workaround; it didn't check the status of NeedsSaved and just always saved, "no matter what."  Though it seems safe to outright remove ForceSave(), I'm leaving it in for compatibility.  Consider it deprecated I suppose.
2015-04-06 21:08:12 -04:00
Dan Guzek 666cdb40bd IniFile fix: checking for false ~= checking for nil
false is a perfectly valid setting for one of SM's ini files.  The code here needs to ensure that both the key (string) and the value (string, numeric, boolean) read from file exist.  It would previously halt if the value was set to false.  This fixes that by explicitly checking for nil.
2015-04-06 21:01:52 -04:00
Kyzentun d789ef7c6b Exposed commify function to lua and made it handle decimal numbers. 2015-04-02 13:36:41 -06: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 caa7d12204 Changed GameColor functions to silently return a default color instead of a nil error if the part of the GameColor table they use doesn't exist. 2015-02-28 03:48:57 -07:00
Kyzentun 29f4ef509e Updated Translators section. Updated ScreenCredits in default. 2015-02-12 21:00:34 -07:00
Kyzentun 8d5a272d99 Fixed ScreenEvaluationSummary to not run off the end of its banner list if over 5 songs were played. Added Alejandro to translation credits. 2015-02-10 13:54:33 -07:00
Kyzentun 989ea5d862 Added script function for finding what needs to be translated. 2015-02-02 09:19:51 -07:00
Kyzentun 7443f76eab Polish installer translation from Jarosław Pietras. Removed duplicate IsRoutine function from Branches.lua. Fixed beat noteskin receptor to not set zero delay. Minor change to default's danger underlay to pass the pn when fetching style. 2015-01-28 08:52:52 -07:00
Kyzentun 40b25e6220 Fixed conflicts to merge kickbox in. 2015-01-27 18:03:41 -07:00
Kyzentun c586db8f5d Added -lrt to AM_CXXFLAGS in src/Makefile.am. Why isn't autoconf detecting this dependency? Added Jarosław Pietras to list of translators. in credits. 2015-01-27 14:36:22 -07:00
Kyzentun b09fc11210 Fixed routine notefield not being centered correctly. Hid couple-edit and threepanel styles because they don't seem intended to be playable. 2015-01-20 19:58:53 -07:00