Change clock texture usage and implement conversion
This commit is contained in:
parent
4db935e91e
commit
b852e56df3
67 changed files with 70 additions and 3 deletions
|
@ -22,7 +22,11 @@ local random_frame = math.random(0, clock_frames-1)
|
|||
-- Image of all possible faces
|
||||
watch.images = {}
|
||||
for frame=0, clock_frames-1 do
|
||||
table.insert(watch.images, "mcl_clock_clock.png^[verticalframe:"..clock_frames..":"..frame)
|
||||
local sframe = tostring(frame)
|
||||
if string.len(sframe) == 1 then
|
||||
sframe = "0" .. sframe
|
||||
end
|
||||
table.insert(watch.images, "mcl_clock_clock_"..sframe..".png")
|
||||
end
|
||||
|
||||
local function round(num)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue