Jump to content

Recommended Posts

In uiclock.lua I found data.day, which holds the number of segments in the day phase.

But I can't work out how to access it. I've tried code like this:

local function myfunction(inst,data)
	myday=data.day
end

but data is nul, so I assume I'm not referencing it right, or it's unavailable to mods.

So can anyone help me get the number of segments in each phase please?

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...