Add various new bindings for ProfileManager, also GetGUID binding for Profile. [asorenson]

This commit is contained in:
AJ Kelly
2012-11-22 12:42:12 -06:00
parent f80c03af7b
commit b4bd8e82d9
6 changed files with 2685 additions and 2634 deletions
+7
View File
@@ -4,6 +4,13 @@ The StepMania 5 Changelog covers all post-sm-ssc changes. For a list of changes
from StepMania 4 alpha 5 to sm-ssc v1.2.5, see Changelog_sm-ssc.txt.
________________________________________________________________________________
2012/11/22
----------
* [ProfileManager] Added SaveProfile, SaveLocalProfile, GetLocalProfileIDs,
ProfileFromMemoryCardIsNew, GetSongNumTimesPlayed, LocalProfileIDToDir, and
GetLocalProfileDisplayNames Lua bindings. [Alfred Sorenson]
* [Profile] Add GetGUID Lua binding. [Alfred Sorenson]
2012/07/26
----------
* [ScreenDebugOverlay] Added BackgroundColor metric. [AJ]
+182 -179
View File
@@ -1,179 +1,182 @@
StepMania 5 credits (in no particular order)
--------------------------------------------
If you have any corrections to this list, let us know (via forums or IRC).
==StepMania Team==
Chris Danford, Glenn Maynard, Steve Checkoway, et al
* Keeping StepMania 5 alive with changes, and providing a nice codebase for
us to work with.
==the spinal shark collective==
AJ Kelly as freem
* (sm-ssc) Project Coordinator/Leader
* Main programming
* Various Lua scripts
* Some small theme edits here and there
* Noteskins (retro, retrobar*)
* Windows project file maintainer (mostly)
Midiman
* Did most of the work on _fallback and default themes
* Some programming
* Noteskins (midi-*)
shakesoda
* Programming
* Noteskins (delta, gamma, port of orbital to kb7)
* Theme edits
* Mac OS X primary maintainer
==sm-ssc Team==
(in no particular order)
Aldo_MX
* Code (Pump it Up delays, among others), ideas, and support.
cerbo
* [SongManager] SetPreferredSongs() and SetPreferredCourses() Lua bindings
Daisuke Master
* Programming
* Pump/simple and Pump/complex noteskins
* /Docs/Themerdocs/Noteskin elements Reference.txt
* Taking advantage of sm-ssc's new features :)
FSX
* Various fixes. (see Changelogs for more details)
Nicole Reid (okeeblow)
* Tested building sm-ssc on FreeBSD, provided fixes.
(fixes that still need to get implemented)
Thai Pangsakulyanont (theDtTvB)
* Changes to BMS loading/playback behavior to make things work better.
Jason Felds (Wolfman2000)
* [Player] PercentUntilColorCombo metric
* Mac OS X maintainer
* Various fixes/changes. (see Changelogs for more details)
==other contributors==
(in no particular order)
1a2a3a2a1a
* Various beat mode fixes
Kaox
* Pump/default noteskin
cesarmades
* Pump/cmd-* noteskins
David Santamaría Rogado (howl)
* Various patches (see Changelogs for more details and links)
Kita K./D. Trucks
* default theme music
kurisu
* Dance-threepanel gametype code (3.9; re-adapted for sm-ssc)
v1toko
* Lead coder of StepNXA, which is where we got the original XMode code from.
Macgravel
* Orbular noteskin (the default kb7 noteskin)
hanubeki (@803832, formerly sy567)
* Small beginner helper fix
(http://www.stepmania.com/forums/showpost.php?p=158721&postcount=12)
* Lots of code changes from hanubeki-modified-sm-ssc:
http://code.google.com/r/hanubeki-modified-sm-ssc/
galopin
* Pump it Up Exceed PlayStation 2 USB dance mat support patch
(stepmania-devs mailing list 20091213 11:27 -0800 [Pacific Standard Time])
Henke37
* [MovieTexture_FFMpeg] Stutter fix
(http://www.pasteall.org/11353/diff)
corec
* [ArchHooks_Unix, MovieTexture_FFMpeg] Make sm-ssc work with system's FFMpeg.
(http://github.com/corec/cc-overlay/blob/master/games-arcade/sm-ssc/files/sm-ssc-ffmpeg-fixes-01.patch)
* [InputMapper] Enabling upper diagonal keys for Positive Gaming Impact dance mat
(http://ssc.ajworld.net/sm-ssc/bugtracker/view.php?id=137)
gholms
* Make autogen.sh look for automake 1.11
(http://ssc.ajworld.net/sm-ssc/bugtracker/view.php?id=140)
juanelote
* [SongManager] GetSongGroupByIndex function
* [MusicWheel] JumpToNextGroup/JumpToPrevGroup logic modifications
NitroX72
* Pump/frame noteskin
Tatsh
* A patch to fix building with system ffmpeg
(http://ssc.ajworld.net/sm-ssc/bugtracker/view.php?id=218)
A.C (@waiei)
* Hybrid scoring mode + scoring fixes
* Various patches/fixes/bug reporting
John_Reactor
* Polish translation
DHalens
* Spanish translation
桜為å°é³©/Sakurana-Kobato (@sakuraponila)
* Scoring fixes
@Niler_jp
* Japanese translation
Deamon007
* Dutch translation
cvpcs
* Updated ffmpeg support to v0.10
djpohly
* Various patches/fixes
==the beta testers==
[SSC Beta Testing Team]
KeithD
tweak/tweak62
[Friends of the Devs]
And4713
HankPeters
okeeblow
kdaymea
taiyal
[Members of Team Step Masters (http://www.team-stepmasters.net/foro/)]
Daisuke Master
Nueel/emmanuel virus
Fye
Bijou
Nek0
Jib
Robe
Urqui
h4m573r
Torta
[Private Beta Wave 1.x Testers]
FSX
Sniper257
Wolfman2000
NitroX72
Wanny
Tio
Cerbo
Daisuke Master
StepMania 5 credits (in no particular order)
--------------------------------------------
If you have any corrections to this list, let us know (via forums or IRC).
==StepMania Team==
Chris Danford, Glenn Maynard, Steve Checkoway, et al
* Keeping StepMania 5 alive with changes, and providing a nice codebase for
us to work with.
==the spinal shark collective==
AJ Kelly as freem
* (sm-ssc) Project Coordinator/Leader
* Main programming
* Various Lua scripts
* Some small theme edits here and there
* Noteskins (retro, retrobar*)
* Windows project file maintainer (mostly)
Midiman
* Did most of the work on _fallback and default themes
* Some programming
* Noteskins (midi-*)
shakesoda
* Programming
* Noteskins (delta, gamma, port of orbital to kb7)
* Theme edits
* Mac OS X primary maintainer
==sm-ssc Team==
(in no particular order)
Aldo_MX
* Code (Pump it Up delays, among others), ideas, and support.
cerbo
* [SongManager] SetPreferredSongs() and SetPreferredCourses() Lua bindings
Daisuke Master
* Programming
* Pump/simple and Pump/complex noteskins
* /Docs/Themerdocs/Noteskin elements Reference.txt
* Taking advantage of sm-ssc's new features :)
FSX
* Various fixes. (see Changelogs for more details)
Nicole Reid (okeeblow)
* Tested building sm-ssc on FreeBSD, provided fixes.
(fixes that still need to get implemented)
Thai Pangsakulyanont (theDtTvB)
* Changes to BMS loading/playback behavior to make things work better.
Jason Felds (Wolfman2000)
* [Player] PercentUntilColorCombo metric
* Mac OS X maintainer
* Various fixes/changes. (see Changelogs for more details)
djpohly
* Various patches/fixes
==other contributors==
(in no particular order)
1a2a3a2a1a
* Various beat mode fixes
Kaox
* Pump/default noteskin
cesarmades
* Pump/cmd-* noteskins
David Santamaría Rogado (howl)
* Various patches (see Changelogs for more details and links)
Kita K./D. Trucks
* default theme music
kurisu
* Dance-threepanel gametype code (3.9; re-adapted for sm-ssc)
v1toko
* Lead coder of StepNXA, which is where we got the original XMode code from.
Macgravel
* Orbular noteskin (the default kb7 noteskin)
hanubeki (@803832, formerly sy567)
* Small beginner helper fix
(http://www.stepmania.com/forums/showpost.php?p=158721&postcount=12)
* Lots of code changes from hanubeki-modified-sm-ssc:
http://code.google.com/r/hanubeki-modified-sm-ssc/
galopin
* Pump it Up Exceed PlayStation 2 USB dance mat support patch
(stepmania-devs mailing list 20091213 11:27 -0800 [Pacific Standard Time])
Henke37
* [MovieTexture_FFMpeg] Stutter fix
(http://www.pasteall.org/11353/diff)
corec
* [ArchHooks_Unix, MovieTexture_FFMpeg] Make sm-ssc work with system's FFMpeg.
(http://github.com/corec/cc-overlay/blob/master/games-arcade/sm-ssc/files/sm-ssc-ffmpeg-fixes-01.patch)
* [InputMapper] Enabling upper diagonal keys for Positive Gaming Impact dance mat
(http://ssc.ajworld.net/sm-ssc/bugtracker/view.php?id=137)
gholms
* Make autogen.sh look for automake 1.11
(http://ssc.ajworld.net/sm-ssc/bugtracker/view.php?id=140)
juanelote
* [SongManager] GetSongGroupByIndex function
* [MusicWheel] JumpToNextGroup/JumpToPrevGroup logic modifications
NitroX72
* Pump/frame noteskin
Tatsh
* A patch to fix building with system ffmpeg
(http://ssc.ajworld.net/sm-ssc/bugtracker/view.php?id=218)
A.C (@waiei)
* Hybrid scoring mode + scoring fixes
* Various patches/fixes/bug reporting
John_Reactor
* Polish translation
DHalens
* Spanish translation
桜為å°é³©/Sakurana-Kobato (@sakuraponila)
* Scoring fixes
@Niler_jp
* Japanese translation
Deamon007
* Dutch translation
cvpcs
* Updated ffmpeg support to v0.10
Alfred Sorenson
* Various small additions
==the beta testers==
[SSC Beta Testing Team]
KeithD
tweak/tweak62
[Friends of the Devs]
And4713
HankPeters
okeeblow
kdaymea
taiyal
[Members of Team Step Masters (http://www.team-stepmasters.net/foro/)]
Daisuke Master
Nueel/emmanuel virus
Fye
Bijou
Nek0
Jib
Robe
Urqui
h4m573r
Torta
[Private Beta Wave 1.x Testers]
FSX
Sniper257
Wolfman2000
NitroX72
Wanny
Tio
Cerbo
Daisuke Master
@@ -1,160 +1,161 @@
local function Fooled()
local phrases = {
"hornswaggled",
"bamboozled",
"hoodwinked",
"swindled",
"duped",
"hoaxed",
"fleeced",
"shafted",
"caboodled",
"beguiled",
"finagled",
"two-timed",
"suckered",
"flimflammed"
}
return phrases[math.random(#phrases)]
end
local ssc = {
"AJ Kelly as freem",
"Jonathan Payne (Midiman)",
"Colby Klein (shakesoda)",
}
local sm_ssc = {
"Jason Felds (wolfman2000)", -- Timing Segments, Split Timing, optimization
"Thai Pangsakulyanont (theDtTvB)", -- BMS, Split Timing, optimization
"Alberto Ramos (Daisuke Master)",
"Jack Walstrom (FSX)",
}
local stepmania = {
"Chris Danford",
"Glenn Maynard",
"Steve Checkoway",
-- and various other contributors
}
local oitg = {
"infamouspat",
"Mark Cannon (vyhd)",
}
local contrib = {
"Aldo Fregoso (Aldo_MX)", -- delays and much more. StepMania AMX creator
"A.C/@waiei", -- custom scoring fixes + Hybrid scoring
"cerbo", -- lua bindings and other fun stuff
"cesarmades", -- pump/cmd* noteskins
"Chris Eldridge (kurisu)", -- dance-threepanel stepstype support
"Christophe Goulet-LeBlanc (Kommisar)", -- songs
"corec", -- various fixes
"galopin", -- piu PlayStation2 usb mat support
"gholms", -- automake 1.11 support
"juanelote", -- SongManager:GetSongGroupByIndex, JumpToNext/PrevGroup logic mods
"Kaox", -- pump/default noteskin
"NitroX72", -- pump/frame noteskin
"Petriform", -- default theme music
"桜為小鳩/Sakurana-Kobato (@sakuraponila)", -- custom scoring fixes
"Samuel Kim (1a2a3a2a1a)", -- various beat mode fixes
"hanubeki (@803832)", -- beginner helper fix, among various other things
"v1toko", -- x-mode from StepNXA
}
local translators = {
"John Reactor (Polish)",
"DHalens (Spanish)",
"@Niler_jp (Japanese)",
"Deamon007 (Dutch)"
}
local thanks = {
"A Pseudonymous Coder", -- support
"Bill Shillito (DM Ashura)", -- Music (not yet though)
"cpubasic13", -- testing (a lot)
"Dreamwoods",
"Jason Bolt (LightningXCE)",
"Jousway", -- Noteskins
"Luizsan", -- creator of Delta theme
"Matt1360", -- Automake magic + oitg bro
"Renard",
"Ryan McKanna (Plaguefox)",
"Sta Kousin", --help with Japanese bug reports
}
local shoutout = {
"The Lua team", -- lua project lead or some shit. super nerdy but oh hell.
"Mojang AB", -- minecraft forever -freem
"Wolfire Games", -- piles of inspiration
"NAKET Coder",
"Ciera Boyd", -- you bet your ass I'm putting my girlfriend in the credits
--Image(), -- we should have some logos probably to look super pro
"#KBO",
"Celestia Radio", -- LOVE AND TOLERANCE
"You showed us... your ultimate dance",
}
local copyright = {
"StepMania is released under the terms of the MIT license.",
"If you paid for the program you've been " .. Fooled() .. ".",
"All content is the sole property of their respectful owners."
}
local sections = {
{ "the spinal shark collective (project lead)", ssc },
{ "sm-ssc Team", sm_ssc },
{ "StepMania Team", stepmania },
{ "OpenITG Team", oitg },
{ "Translators", translators },
{ "Other Contributors", contrib },
{ "Special Thanks", thanks },
{ "Shoutouts", shoutout },
{ "Copyright", copyright },
}
-- To add people or sections modify the above.
local lineOn = cmd(zoom,0.875;strokecolor,color("#444444");shadowcolor,color("#444444");shadowlength,3)
local sectionOn = cmd(diffuse,color("#88DDFF");strokecolor,color("#446688");shadowcolor,color("#446688");shadowlength,3)
local item_padding_start = 4;
local creditScroller = Def.ActorScroller {
SecondsPerItem = 0.5;
NumItemsToDraw = 40;
TransformFunction = function( self, offset, itemIndex, numItems)
self:y(30*offset)
end;
OnCommand = cmd(scrollwithpadding,item_padding_start,15);
}
local function AddLine( text, command )
local text = Def.ActorFrame{
LoadFont("Common normal")..{
Text = text or "";
OnCommand = command or lineOn;
}
}
table.insert( creditScroller, text )
end
-- Add sections with padding.
for section in ivalues(sections) do
AddLine( section[1], sectionOn )
for name in ivalues(section[2]) do
AddLine( name )
end
AddLine()
AddLine()
end
creditScroller.BeginCommand=function(self)
SCREENMAN:GetTopScreen():PostScreenMessage( 'SM_MenuTimer', (creditScroller.SecondsPerItem * (#creditScroller + item_padding_start) + 10) );
end;
return Def.ActorFrame{
creditScroller..{
InitCommand=cmd(CenterX;y,SCREEN_BOTTOM-64),
}
local function Fooled()
local phrases = {
"hornswaggled",
"bamboozled",
"hoodwinked",
"swindled",
"duped",
"hoaxed",
"fleeced",
"shafted",
"caboodled",
"beguiled",
"finagled",
"two-timed",
"suckered",
"flimflammed"
}
return phrases[math.random(#phrases)]
end
local ssc = {
"AJ Kelly as freem",
"Jonathan Payne (Midiman)",
"Colby Klein (shakesoda)",
}
local sm_ssc = {
"Jason Felds (wolfman2000)", -- Timing Segments, Split Timing, optimization
"Thai Pangsakulyanont (theDtTvB)", -- BMS, Split Timing, optimization
"Alberto Ramos (Daisuke Master)",
"Jack Walstrom (FSX)",
}
local stepmania = {
"Chris Danford",
"Glenn Maynard",
"Steve Checkoway",
-- and various other contributors
}
local oitg = {
"infamouspat",
"Mark Cannon (vyhd)",
}
local contrib = {
"Aldo Fregoso (Aldo_MX)", -- delays and much more. StepMania AMX creator
"A.C/@waiei", -- custom scoring fixes + Hybrid scoring
"cerbo", -- lua bindings and other fun stuff
"cesarmades", -- pump/cmd* noteskins
"Chris Eldridge (kurisu)", -- dance-threepanel stepstype support
"Christophe Goulet-LeBlanc (Kommisar)", -- songs
"corec", -- various fixes
"galopin", -- piu PlayStation2 usb mat support
"gholms", -- automake 1.11 support
"juanelote", -- SongManager:GetSongGroupByIndex, JumpToNext/PrevGroup logic mods
"Kaox", -- pump/default noteskin
"NitroX72", -- pump/frame noteskin
"Petriform", -- default theme music
"桜為小鳩/Sakurana-Kobato (@sakuraponila)", -- custom scoring fixes
"Samuel Kim (1a2a3a2a1a)", -- various beat mode fixes
"hanubeki (@803832)", -- beginner helper fix, among various other things
"v1toko", -- x-mode from StepNXA
"Alfred Sorenson", -- new lua bindings
}
local translators = {
"John Reactor (Polish)",
"DHalens (Spanish)",
"@Niler_jp (Japanese)",
"Deamon007 (Dutch)"
}
local thanks = {
"A Pseudonymous Coder", -- support
"Bill Shillito (DM Ashura)", -- Music (not yet though)
"cpubasic13", -- testing (a lot)
"Dreamwoods",
"Jason Bolt (LightningXCE)",
"Jousway", -- Noteskins
"Luizsan", -- creator of Delta theme
"Matt1360", -- Automake magic + oitg bro
"Renard",
"Ryan McKanna (Plaguefox)",
"Sta Kousin", --help with Japanese bug reports
}
local shoutout = {
"The Lua team", -- lua project lead or some shit. super nerdy but oh hell.
"Mojang AB", -- minecraft forever -freem
"Wolfire Games", -- piles of inspiration
"NAKET Coder",
"Ciera Boyd", -- you bet your ass I'm putting my girlfriend in the credits
--Image(), -- we should have some logos probably to look super pro
"#KBO",
"Celestia Radio", -- LOVE AND TOLERANCE
"You showed us... your ultimate dance",
}
local copyright = {
"StepMania is released under the terms of the MIT license.",
"If you paid for the program you've been " .. Fooled() .. ".",
"All content is the sole property of their respectful owners."
}
local sections = {
{ "the spinal shark collective (project lead)", ssc },
{ "sm-ssc Team", sm_ssc },
{ "StepMania Team", stepmania },
{ "OpenITG Team", oitg },
{ "Translators", translators },
{ "Other Contributors", contrib },
{ "Special Thanks", thanks },
{ "Shoutouts", shoutout },
{ "Copyright", copyright },
}
-- To add people or sections modify the above.
local lineOn = cmd(zoom,0.875;strokecolor,color("#444444");shadowcolor,color("#444444");shadowlength,3)
local sectionOn = cmd(diffuse,color("#88DDFF");strokecolor,color("#446688");shadowcolor,color("#446688");shadowlength,3)
local item_padding_start = 4;
local creditScroller = Def.ActorScroller {
SecondsPerItem = 0.5;
NumItemsToDraw = 40;
TransformFunction = function( self, offset, itemIndex, numItems)
self:y(30*offset)
end;
OnCommand = cmd(scrollwithpadding,item_padding_start,15);
}
local function AddLine( text, command )
local text = Def.ActorFrame{
LoadFont("Common normal")..{
Text = text or "";
OnCommand = command or lineOn;
}
}
table.insert( creditScroller, text )
end
-- Add sections with padding.
for section in ivalues(sections) do
AddLine( section[1], sectionOn )
for name in ivalues(section[2]) do
AddLine( name )
end
AddLine()
AddLine()
end
creditScroller.BeginCommand=function(self)
SCREENMAN:GetTopScreen():PostScreenMessage( 'SM_MenuTimer', (creditScroller.SecondsPerItem * (#creditScroller + item_padding_start) + 10) );
end;
return Def.ActorFrame{
creditScroller..{
InitCommand=cmd(CenterX;y,SCREEN_BOTTOM-64),
}
};
@@ -1,163 +1,164 @@
local function Fooled()
local phrases = {
"hornswaggled",
"bamboozled",
"hoodwinked",
"swindled",
"duped",
"hoaxed",
"fleeced",
"shafted",
"caboodled",
"beguiled",
"finagled",
"two-timed",
"suckered",
"flimflammed"
}
return phrases[math.random(#phrases)]
end
local ssc = {
"AJ Kelly as freem",
"Jonathan Payne (Midiman)",
"Colby Klein (shakesoda)",
}
local sm_ssc = {
"Jason Felds (wolfman2000)", -- Timing Segments, Split Timing, optimization
"Thai Pangsakulyanont (theDtTvB)", -- BMS, Split Timing, optimization
"Alberto Ramos (Daisuke Master)",
"Jack Walstrom (FSX)",
}
local stepmania = {
"Chris Danford",
"Glenn Maynard",
"Steve Checkoway",
-- and various other contributors
}
local oitg = {
"infamouspat",
"Mark Cannon (vyhd)",
}
local contrib = {
"Aldo Fregoso (Aldo_MX)", -- delays and much more. StepMania AMX creator
"A.C (@waiei)", -- custom scoring fixes + Hybrid scoring
"cerbo", -- lua bindings and other fun stuff
"cesarmades", -- pump/cmd* noteskins
"Chris Eldridge (kurisu)", -- dance-threepanel stepstype support
"Christophe Goulet-LeBlanc (Kommisar)", -- songs
"corec", -- various fixes
"galopin", -- piu PlayStation2 usb mat support
"gholms", -- automake 1.11 support
"juanelote", -- SongManager:GetSongGroupByIndex, JumpToNext/PrevGroup logic mods
"Kaox", -- pump/default noteskin
"NitroX72", -- pump/frame noteskin
"Petriform", -- default theme music
"桜為小鳩/Sakurana-Kobato (@sakuraponila)", -- custom scoring fixes
"Samuel Kim (1a2a3a2a1a)", -- various beat mode fixes
"hanubeki (@803832)", -- beginner helper fix, among various other things
"v1toko", -- x-mode from StepNXA
}
local translators = {
"John Reactor (Polish)",
"DHalens (Spanish)",
"@Niler_jp (Japanese)",
"Deamon007 (Dutch)"
}
local thanks = {
"A Pseudonymous Coder", -- support
"Bill Shillito (DM Ashura)", -- Music (not yet though)
"cpubasic13", -- testing (a lot)
"Dreamwoods",
"Jason Bolt (LightningXCE)",
"Jousway", -- Noteskins
"Luizsan", -- creator of Delta theme
"Matt1360", -- Automake magic + oitg bro
"Renard",
"Ryan McKanna (Plaguefox)",
"Sta Kousin", --help with Japanese bug reports
}
local shoutout = {
"The Lua team", -- lua project lead or some shit. super nerdy but oh hell.
"Mojang AB", -- minecraft forever -freem
"Wolfire Games", -- piles of inspiration
"NAKET Coder",
"Ciera Boyd", -- you bet your ass I'm putting my girlfriend in the credits
--Image(), -- we should have some logos probably to look super pro
"#KBO",
"Celestia Radio", -- LOVE AND TOLERANCE
"You showed us... your ultimate dance!",
}
local copyright = {
"StepMania is released under the terms of the MIT license.",
"If you paid for the program you've been " .. Fooled() .. ".",
"All content is the sole property of their respectful owners."
}
local sections = {
{ "the spinal shark collective (project lead)", ssc },
{ "sm-ssc Team", sm_ssc },
{ "StepMania Team", stepmania },
{ "OpenITG Team", oitg },
{ "Translators", translators },
{ "Other Contributors", contrib },
{ "Special Thanks", thanks },
{ "Shoutouts", shoutout },
{ "Copyright", copyright },
}
-- To add people or sections modify the above.
local lineOn = cmd(zoom,0.875;strokecolor,color("#444444");shadowcolor,color("#444444");shadowlength,3)
local sectionOn = cmd(diffuse,color("#88DDFF");strokecolor,color("#446688");shadowcolor,color("#446688");shadowlength,3)
local item_padding_start = 4;
local creditScroller = Def.ActorScroller {
SecondsPerItem = 0.5;
NumItemsToDraw = 40;
TransformFunction = function( self, offset, itemIndex, numItems)
self:y(30*offset)
end;
OnCommand = cmd(scrollwithpadding,item_padding_start,15);
}
local function AddLine( text, command )
local text = Def.ActorFrame{
LoadFont("Common normal")..{
Text = text or "";
OnCommand = command or lineOn;
}
}
table.insert( creditScroller, text )
end
-- Add sections with padding.
for section in ivalues(sections) do
AddLine( section[1], sectionOn )
for name in ivalues(section[2]) do
AddLine( name )
end
AddLine()
AddLine()
end
creditScroller.BeginCommand=function(self)
SCREENMAN:GetTopScreen():PostScreenMessage( 'SM_MenuTimer', (creditScroller.SecondsPerItem * (#creditScroller + item_padding_start) + 10) );
end;
return Def.ActorFrame{
creditScroller..{
InitCommand=cmd(CenterX;y,SCREEN_BOTTOM-64),
},
LoadActor(THEME:GetPathB("ScreenWithMenuElements","background/_bg top"))..{
InitCommand=cmd(Center),
},
};
local function Fooled()
local phrases = {
"hornswaggled",
"bamboozled",
"hoodwinked",
"swindled",
"duped",
"hoaxed",
"fleeced",
"shafted",
"caboodled",
"beguiled",
"finagled",
"two-timed",
"suckered",
"flimflammed"
}
return phrases[math.random(#phrases)]
end
local ssc = {
"AJ Kelly as freem",
"Jonathan Payne (Midiman)",
"Colby Klein (shakesoda)",
}
local sm_ssc = {
"Jason Felds (wolfman2000)", -- Timing Segments, Split Timing, optimization
"Thai Pangsakulyanont (theDtTvB)", -- BMS, Split Timing, optimization
"Alberto Ramos (Daisuke Master)",
"Jack Walstrom (FSX)",
}
local stepmania = {
"Chris Danford",
"Glenn Maynard",
"Steve Checkoway",
-- and various other contributors
}
local oitg = {
"infamouspat",
"Mark Cannon (vyhd)",
}
local contrib = {
"Aldo Fregoso (Aldo_MX)", -- delays and much more. StepMania AMX creator
"A.C (@waiei)", -- custom scoring fixes + Hybrid scoring
"cerbo", -- lua bindings and other fun stuff
"cesarmades", -- pump/cmd* noteskins
"Chris Eldridge (kurisu)", -- dance-threepanel stepstype support
"Christophe Goulet-LeBlanc (Kommisar)", -- songs
"corec", -- various fixes
"galopin", -- piu PlayStation2 usb mat support
"gholms", -- automake 1.11 support
"juanelote", -- SongManager:GetSongGroupByIndex, JumpToNext/PrevGroup logic mods
"Kaox", -- pump/default noteskin
"NitroX72", -- pump/frame noteskin
"Petriform", -- default theme music
"桜為小鳩/Sakurana-Kobato (@sakuraponila)", -- custom scoring fixes
"Samuel Kim (1a2a3a2a1a)", -- various beat mode fixes
"hanubeki (@803832)", -- beginner helper fix, among various other things
"v1toko", -- x-mode from StepNXA
"Alfred Sorenson", -- new lua bindings
}
local translators = {
"John Reactor (Polish)",
"DHalens (Spanish)",
"@Niler_jp (Japanese)",
"Deamon007 (Dutch)"
}
local thanks = {
"A Pseudonymous Coder", -- support
"Bill Shillito (DM Ashura)", -- Music (not yet though)
"cpubasic13", -- testing (a lot)
"Dreamwoods",
"Jason Bolt (LightningXCE)",
"Jousway", -- Noteskins
"Luizsan", -- creator of Delta theme
"Matt1360", -- Automake magic + oitg bro
"Renard",
"Ryan McKanna (Plaguefox)",
"Sta Kousin", --help with Japanese bug reports
}
local shoutout = {
"The Lua team", -- lua project lead or some shit. super nerdy but oh hell.
"Mojang AB", -- minecraft forever -freem
"Wolfire Games", -- piles of inspiration
"NAKET Coder",
"Ciera Boyd", -- you bet your ass I'm putting my girlfriend in the credits
--Image(), -- we should have some logos probably to look super pro
"#KBO",
"Celestia Radio", -- LOVE AND TOLERANCE
"You showed us... your ultimate dance!",
}
local copyright = {
"StepMania is released under the terms of the MIT license.",
"If you paid for the program you've been " .. Fooled() .. ".",
"All content is the sole property of their respectful owners."
}
local sections = {
{ "the spinal shark collective (project lead)", ssc },
{ "sm-ssc Team", sm_ssc },
{ "StepMania Team", stepmania },
{ "OpenITG Team", oitg },
{ "Translators", translators },
{ "Other Contributors", contrib },
{ "Special Thanks", thanks },
{ "Shoutouts", shoutout },
{ "Copyright", copyright },
}
-- To add people or sections modify the above.
local lineOn = cmd(zoom,0.875;strokecolor,color("#444444");shadowcolor,color("#444444");shadowlength,3)
local sectionOn = cmd(diffuse,color("#88DDFF");strokecolor,color("#446688");shadowcolor,color("#446688");shadowlength,3)
local item_padding_start = 4;
local creditScroller = Def.ActorScroller {
SecondsPerItem = 0.5;
NumItemsToDraw = 40;
TransformFunction = function( self, offset, itemIndex, numItems)
self:y(30*offset)
end;
OnCommand = cmd(scrollwithpadding,item_padding_start,15);
}
local function AddLine( text, command )
local text = Def.ActorFrame{
LoadFont("Common normal")..{
Text = text or "";
OnCommand = command or lineOn;
}
}
table.insert( creditScroller, text )
end
-- Add sections with padding.
for section in ivalues(sections) do
AddLine( section[1], sectionOn )
for name in ivalues(section[2]) do
AddLine( name )
end
AddLine()
AddLine()
end
creditScroller.BeginCommand=function(self)
SCREENMAN:GetTopScreen():PostScreenMessage( 'SM_MenuTimer', (creditScroller.SecondsPerItem * (#creditScroller + item_padding_start) + 10) );
end;
return Def.ActorFrame{
creditScroller..{
InitCommand=cmd(CenterX;y,SCREEN_BOTTOM-64),
},
LoadActor(THEME:GetPathB("ScreenWithMenuElements","background/_bg top"))..{
InitCommand=cmd(Center),
},
};
+2135 -2133
View File
File diff suppressed because it is too large Load Diff
+37
View File
@@ -842,6 +842,35 @@ public:
static int LastLoadWasTamperedOrCorrupt( T* p, lua_State *L ) { lua_pushboolean(L, p->LastLoadWasTamperedOrCorrupt(Enum::Check<PlayerNumber>(L, 1)) ); return 1; }
static int GetPlayerName( T* p, lua_State *L ) { PlayerNumber pn = Enum::Check<PlayerNumber>(L, 1); lua_pushstring(L, p->GetPlayerName(pn)); return 1; }
static int LocalProfileIDToDir( T* p, lua_State *L )
{
RString dir = USER_PROFILES_DIR + SArg(1) + "/";
lua_pushstring( L, dir );
return 1;
}
static int SaveProfile( T* p, lua_State *L ) { lua_pushboolean( L, p->SaveProfile(Enum::Check<PlayerNumber>(L, 1)) ); return 1; }
static int SaveLocalProfile( T* p, lua_State *L ) { lua_pushboolean( L, p->SaveLocalProfile(SArg(1)) ); return 1; }
static int ProfileFromMemoryCardIsNew( T* p, lua_State *L ) { lua_pushboolean( L, p->ProfileFromMemoryCardIsNew(Enum::Check<PlayerNumber>(L, 1)) ); return 1; }
static int GetSongNumTimesPlayed( T* p, lua_State *L )
{
lua_pushnumber(L, p->GetSongNumTimesPlayed(Luna<Song>::check(L,1),Enum::Check<ProfileSlot>(L, 2)) );
return 1;
}
static int GetLocalProfileIDs( T* p, lua_State *L )
{
vector<RString> vsProfileIDs;
p->GetLocalProfileIDs(vsProfileIDs);
LuaHelpers::CreateTableFromArray<RString>( vsProfileIDs, L );
return 1;
}
static int GetLocalProfileDisplayNames( T* p, lua_State *L )
{
vector<RString> vsProfileNames;
p->GetLocalProfileDisplayNames(vsProfileNames);
LuaHelpers::CreateTableFromArray<RString>( vsProfileNames, L );
return 1;
}
LunaProfileManager()
{
ADD_METHOD( IsPersistentProfile );
@@ -858,6 +887,14 @@ public:
ADD_METHOD( ProfileWasLoadedFromMemoryCard );
ADD_METHOD( LastLoadWasTamperedOrCorrupt );
ADD_METHOD( GetPlayerName );
//
ADD_METHOD( SaveProfile );
ADD_METHOD( SaveLocalProfile );
ADD_METHOD( ProfileFromMemoryCardIsNew );
ADD_METHOD( GetSongNumTimesPlayed );
ADD_METHOD( GetLocalProfileIDs );
ADD_METHOD( GetLocalProfileDisplayNames );
ADD_METHOD( LocalProfileIDToDir );
}
};