Commit Graph
48 Commits
Author SHA1 Message Date
quietly-turning 69e33037ed update README's url to Lua-for-ITGMania 2025-04-25 11:15:35 -07:00
quietly-turning f13abec73d fix typos in LuaDocumentation.xml 2024-03-20 13:29:43 -05:00
quietly-turning 4f4fe7b540 validate LuaDoc XML as GitHub Workflow CI 2024-03-20 13:29:00 -05:00
quietly-turning f95df04d9e nudge enchantment noteskin's first two frames 1px
The first two frames of the "enchantment" NoteSkin's receptor spritesheet were
misaligned by 1px, causing the receptors to "wiggle" by 1px during gameplay.

To be fair, this was generally only visible on very large displays (like 55" and
up) running at high resolution, but those are becoming more common now.
2023-12-01 23:45:12 -08:00
quietly-turning e7373836e4 add _fallback redir banners for BeginnerMeter sort
This should fix MissingThemeElement warnings about 'The theme element
"Graphics/Banner BeginnerMeter" is missing.'
2023-01-28 09:23:33 -08:00
quietly-turning 6bd6963406 Revert "Merge pull request #1888 from mwkroening/notes_loader-invalid_argument"
This reverts commit 56caf6da4b.
2021-08-14 21:25:27 +01:00
quietly-turning 3968c94782 Merge pull request #2043 from Arusekk/wreturn-type
Fix -Wreturn-type and its undefined behavior
2020-09-15 19:48:15 -04:00
quietly-turning 0c85badf30 Merge pull request #2056 from quietly-turning/PacDriveLightOrdering
add preference to change PacDrive light ordering
2020-09-15 00:13:04 -04:00
quietly-turning a02ac246cf Merge pull request #2053 from quietly-turning/sha256
give CryptManager and Lua access to tomcrypt's SHA256
2020-09-09 16:46:35 -04:00
quietly-turning 72cd6edf5c give Lua access to tomcrypt's SHA256
This adds Lua hooks to CryptManager for libtomcrypt's SHA256 hash
function.  It follows along with the C++ patterns Glenn wrote a decade
and a half ago for CryptMananger's MD5 and SHA1 hooks.

StepMania's CMakeProject-tomcrypt file has been updated to build with
sha256 symbols.  Invoking cmake to build with system tomcrypt works fine
as-is.

Note that these functions return binary formatted strings, but themers
can convert to hexadecimal format using the global Lua function
BinaryToHex().
2020-09-09 15:37:01 -04:00
quietly turning fdef606b46 expose RageUtil's BinaryToHex to Lua
The hashing functions that CryptManger currently exposes to Lua
return hash strings formatted in binary.  Themes using those hash
functions may want to compare hex strings.

RageUtil already had a BinaryToHex utility; this commit exposes it
as a global function, following along with other utility functions
in RageUtil.
2020-09-09 15:16:24 -04:00
quietly-turning 1c869edab5 Merge pull request #2035 from bkirz/catalina-workaround
Reapply macOS Catalina Workarounds
2020-07-05 03:45:40 -04:00
quietly-turning 3b9edd73d1 Merge pull request #2033 from RhythmLunatic/mainline-2
Add example courses and fix typo in Jupiter
2020-07-04 14:52:12 -04:00
quietly-turning 7b4e4f81d0 Merge pull request #1886 from mwkroening/tomcrypt-header
Use correct tomcrypt headers
2020-06-25 22:24:13 -04:00
quietly-turning 2b11f88b81 Merge branch '5_1-new' into tomcrypt-header 2020-06-25 21:53:21 -04:00
quietly-turning 135dc0ddab Merge pull request #2026 from quietly-turning/more-Luadoc-updates-take2
More Luadoc Updates
2020-06-25 06:25:11 -04:00
quietly-turning df07b4c649 update Version, Date in Lua.xml
These elements are normally automatically updated when a new Lua.xml is
generated using the --ExportLuaInformation command line argument, but
I've manually updated them here.  It works for now.

Running --ExportLuaInformation will generate a new Lua.xml file with
everything available to Lua, including some repetitively-named functions
ported from notitg that were manually condensed down within Lua.xml.

We want to keep these condensed parts, so ExportLuaInformation should
probably be fixed/replaced in the future.
2020-06-25 05:14:11 -04:00
quietly-turning 4635973799 add grouping attr to Class elements in LuaDoc
These "grouping"s aren't part of the spec in Docs/Luadoc/Lua.xsd, so
they won't appear when Lua.xml is viewed in a web browser, but can still
be used by external API doc applications until ExportLuaInformation is
improved.
2020-06-25 05:10:25 -04:00
quietly-turning 5574113d63 tidy preformatted code examples in LuaDoc 2020-06-25 05:06:16 -04:00
quietly-turning 91bf61a178 update LuaDocs for Classes
Fix, clarify, and expand prose in LuaDocumentation.xml for classes made
available to Lua.

Add elements for DeviceList, InputList, Quad, and SongMeterDisplay to
Lua.xml.
2020-06-25 04:55:13 -04:00
quietly-turning d62797973f update LuaDocs for Singletons, Enums for 5.1-new 2020-06-25 04:49:09 -04:00
quietly-turning 7804efb103 update GlobalFunctions prose in LuaDocumentation
Expand and clarify the prose for many gloabl Lua functions described in
in LuaDocumentation.xml.

Get Lua.xml's GlobalFunctions listing current with 5_1-new.  Remove old
global functions (those moved to 5.1's "legacy" theme) from Lua.xml.
2020-06-25 04:24:24 -04:00
quietly-turning c57279f6b8 allow <pre> HTML elements in Luadoc via Lua.xsd
MDN's web docs describe the "HTML <pre> elements represents preformatted
text which is to be presented exactly as written in the HTML file."

It's handy for formatting multiline code examples in
LuaDocumentation.xml.
2020-06-25 03:58:57 -04:00
quietly-turning 89229ed915 Merge pull request #1855 from mwkroening/gtk3
Upgrade to gtk3
2020-06-24 17:49:14 -04:00
quietly-turning 1f1fa3c2a9 Merge pull request #1854 from mwkroening/libpng
Upgrade libpng to v1.6.37
2020-06-23 16:53:13 -04:00
quietly-turning 1aaebaa712 Merge pull request #1882 from mwkroening/keep-line-endings
Don't enforce line endings
2020-06-19 15:14:59 -04:00
quietly-turning cf945e3af3 Merge pull request #1884 from mwkroening/include-png
Only add bundled inc dirs, when using bundled libs
2020-06-18 22:17:01 -04:00
quietly-turning 3023bb90d1 Merge pull request #2020 from mwkroening/jsoncpp-ci
CI: Test system jsoncpp
2020-06-18 16:05:15 -04:00
quietly-turning 1e5cbe1324 Merge pull request #1889 from mwkroening/extract-jsoncpp
Remove custom functions from jsoncpp headers
2020-06-18 15:40:14 -04:00
quietly-turning 0d44b8c7f9 Merge pull request #2012 from Arusekk/backtrace-sigbus
Unix backtrace call detection
2020-06-18 00:54:17 -04:00
quietly-turning 56caf6da4b Merge pull request #1888 from mwkroening/notes_loader-invalid_argument
Accept non numbers in NotesLoaderSM
2020-06-16 15:00:17 -04:00
quietly-turning a21ebbd053 Merge pull request #2018 from mwkroening/actions
Actions Badge: Branch Fixup
2020-06-14 10:59:14 -04:00
quietly-turning 94203b8fbf Merge pull request #2015 from mwkroening/actions
Add GitHub Actions CI
2020-06-14 10:27:47 -04:00
quietly-turning a6b45b32c6 Merge pull request #2014 from mwkroening/appveyor
Fix Windows build
2020-06-13 16:53:20 -04:00
quietly-turning 376e5f46d8 Merge pull request #2013 from RhythmLunatic/crsDescriptionFix
Write description tag in CourseWriterCRS
2020-06-12 19:17:28 -04:00
quietly-turning 0fe9eff750 Merge pull request #2009 from quietly-turning/wildcard+endless-fix
Course Wildcard + Endless Fix (replaces #1830)
2020-06-09 16:46:17 -04:00
quietly turning 3ba2b8ba54 fix Course.cpp for 5_1-new
random_up_to() was written for SM5.2 and RageUtil's RandomInt() seems
a suitable replacement for 5_1-new.
2020-06-07 20:09:37 -04:00
quietly-turning 42f989b684 Merge pull request #1923 from eliask/fix-lrc-parsing-crash
Fix LRC parsing crash for unrecognized values
2020-06-06 00:11:45 -04:00
quietly-turning b09d492522 Merge pull request #2007 from richardloxley/fix-announcer-evaluation-sounds-issue-2005
Fix issue 2005: incorrect announcer sounds on the evaluation screen
2020-06-04 22:16:31 -04:00
quietly-turning b3bd9a3117 Merge pull request #2002 from RhythmLunatic/GetCurrentSection
Add MusicWheel:GetCurrentSections()
2020-05-28 01:22:47 -04:00
quietly-turning 09444bcb74 Merge pull request #1996 from quietly-turning/update-lua.xml
update Classes and Enums in bundled Lua.xml
2020-05-12 00:09:47 -04:00
quietly-turning a892cbc4dd update Classes and Enums in bundled Lua.xml
This updates Actor classes, class methods, and Enums listed in the
bundled copy of Lua.xml to be current.

I used the command-line arg --ExportLuaInformation, to generate a wholly
new file, then manually removed some methods (e.g. literally numbered
PlayerOptions methods ported from notitg, CamelCase aliases of
spline-related methods) to keep previous manual modifications intact.

This doesn't touch GlobalFunctions in Lua.xml; those need further
review.
2020-05-11 05:59:08 -04:00
quietly-turning d03ec2658f Merge pull request #1994 from DinsFire64/itgio
ITGIO Support for Linux
2020-05-09 17:30:01 -04:00
quietly-turning f79dc3dbda Merge pull request #1990 from quietly-turning/more-aspect-ratios
add 21:9 and 9:16 to ConfAspectRatio in _fallback
2020-04-29 23:08:32 -04: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
quietly-turning 8650fc420e Merge pull request #1982 from quietly-turning/API-doc-cleanup
fix + clarify multiple issues in LuaDocumentation.xml
2020-04-18 00:35:51 -04:00
quietly-turning 79272eedde fix+clarify multiple issues in LuaDocumentation
* removed ClearEnterMappedKeys from global functions
* typo fix in rawequal
* fix explanations of global SecondsToXXXX functions
* add to explanation of lua.ReportScriptError
* explain how ActorSound class can be used in Lua as "Sound"
* fix explanation for Course.GetCouseDir
* fix specified args for GAMESTATE.GetPreferredDifficulty
* remove HighScore.GetHighScore since it doesn't exist
* document special args for ScreenSelectProfile.SetProfileIndex
* fix specified args for Style.GetColumnInfo
* add examples of return value for Style.GetColumnInfo
* remove lingering mentions of SM4
2020-04-17 17:30:26 -04:00
quietly-turning fe9034aa91 Merge pull request #1977 from teejusb/5_1-new
Fix float parsing errors
2020-04-10 15:23:09 -04:00