Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DOUBLE TEXT OF THE SONG #15971

Closed
JuanSebas1247 opened this issue Nov 27, 2024 · 3 comments
Closed

DOUBLE TEXT OF THE SONG #15971

JuanSebas1247 opened this issue Nov 27, 2024 · 3 comments
Labels
help wanted Extra attention is needed

Comments

@JuanSebas1247
Copy link

Describe your problem here.

Technically, that's how I do it, no need to explain.

Is it possible to do this in Psych Engine 1.0?

And does it really work?
Screenshot_20241126-200531

Are you modding a build from source or with Lua?

Lua

What is your build target?

Windows x64

Did you edit anything in this build? If so, mention or summarize your changes.

No response

@JuanSebas1247 JuanSebas1247 added the help wanted Extra attention is needed label Nov 27, 2024
@JuanSebas1247
Copy link
Author

If anyone has already asked and was told, let me know so I can look.

@AnotherPlayer8
Copy link

`local timeElapsed = 0 --left side of the text
local totalTime = 0 --right side of the text

function minutesAndSeconds(number)
local minutes = math.floor(number / 60) --converts the seconds to minutes
local seconds = number % 60 --amount of seconds looping from 0 to 59
if seconds < 10 then
fixedSeconds = 0 .. seconds --adds an extra 0 to always have two digits
else
fixedSeconds = seconds
end
return minutes .. ":" .. fixedSeconds --displays the time as 0:00
end

function onUpdatePost()
timeElapsed = math.floor(getSongPosition() / 1000) --time elapsed in seconds
totalTime = math.floor(songLength / 1000) --total song time in seconds
setProperty("timeTxt.text", minutesAndSeconds(timeElapsed) .. " - " .. minutesAndSeconds(totalTime)) --that's it! :)
end`
this is the best thing i could come up with, should work perfectly fine

@JuanSebas1247
Copy link
Author

JuanSebas1247 commented Dec 13, 2024

Yes it works, thanks

https://youtu.be/yxCBdeSUplA

@JuanSebas1247 JuanSebas1247 closed this as not planned Won't fix, can't repro, duplicate, stale Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants