Commit Graph

428 Commits

Author SHA1 Message Date
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
Kyzentun aeaead95c9 Changed default ScreenSelecStyle to use functions for choice names and positions instead of metrics. _fallback SSS remains the same for compatibility. Fixed style stomping bug in SetCompatibleStylesForPlayers. 2015-01-20 18:40:59 -07:00
Kyzentun 896dd7977e Maybe editing the changelog should only be done after merging a pull, to avoid conflicts. 2015-01-10 12:32:07 -07:00
Kyzentun 1ea48efb80 Changed tper to vector of float. 2015-01-06 22:00:06 -07:00
Kyzentun d3bbf9cbd3 Added SetVertsFromSplines to AMV. Moved const to the left side. Documentation for all new functions. 2015-01-06 20:14:59 -07:00
Kyzentun beb625e6aa Disable error reporting if any dialogs are ignored. 2015-01-05 16:53:52 -07:00
Kyzentun 2c6776c480 tobool should handle bools correctly. 2015-01-04 22:27:34 -07:00
Kyzentun 703b423dd4 Moved note column splines into tween state. Renamed size/dimension spline lua functions to get/set convention. Added make_camel_aliases to 01 alias.lua to make the CamelCase aliases required by shakesoda for consistency. 2015-01-04 06:10:21 -07:00
Kyzentun 5d7f6b7b52 Added code for setting player name plates with bpm info. 2014-12-27 05:44:46 -07:00
Kyzentun 7ee2938917 Wrapped CustomDifficulty color functions to report a nice error when a color doesn't exist. 2014-12-22 00:10:34 -07:00
YungDaVinci 07fdecefc7 Update 02 Actor.lua
Fix minor misspelling in heartbeat, causing an error when using the effect.
2014-12-14 13:42:05 -05: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 c65c1eb386 Added kickbox game mode with 4 styles. 2014-12-09 22:22:50 -07:00
Kyzentun 4f95bf08ad Function chaining for actors and singletons. 2014-12-01 22:31:30 -07:00
Kyzentun d2b61644f3 Changed ColorToHex to just use string.format instead of useless number to hexstring to number to hexstring conversion. 2014-10-29 00:14:13 -06:00
Kyzentun ca4eb65b61 Added lerp, lerp_color, approach, and multiapproach lua functions. 2014-10-23 00:13:13 -06:00