Post #1 · Posted at 2017-10-06 10:41:39pm 6.6 years ago
ZTS | |
---|---|
Member | |
140 Posts | |
Not Set | |
Reg. 2015-01-13 | |
"But enough talk! Have at you!" |
Last updated: 2017-10-06 10:47pm
For all you who can't be bothered to figure it out yourself or add it to the StepMania source (like me), here's the basic function.
https://pastebin.com/tU5fyDUN
https://pastebin.com/tU5fyDUN
Post #2 · Posted at 2017-10-08 02:29:12am 6.6 years ago
kyz's is better than mine
Post #3 · Posted at 2017-10-08 02:42:18am 6.6 years ago
Kyzentun | |
---|---|
Member | |
3,209 Posts | |
Reg. 2008-02-20 | |
"I'm honestly pissed off." |
Neither of you two make sense. You get the path, split it at the slashes, then recombine it? Why split it up? Just find the last slash, clip it to there, then put the jacket name on the end.
local path= SONGMAN:GetSongGroupBannerPath(groupName)
if path == "" then return nil end
local last_slash= path:reverse():find("/")
return path:sub(1, -last_slash) .. "jacket.png"
local path= SONGMAN:GetSongGroupBannerPath(groupName)
if path == "" then return nil end
local last_slash= path:reverse():find("/")
return path:sub(1, -last_slash) .. "jacket.png"