change parameter text style
This commit is contained in:
parent
cb133e4c63
commit
d150205535
1 changed files with 13 additions and 2 deletions
|
@ -83,7 +83,8 @@ function self.createSliders()
|
||||||
max = v.max,
|
max = v.max,
|
||||||
default = v.default,
|
default = v.default,
|
||||||
name = ease1.name .. 'param1' .. i,
|
name = ease1.name .. 'param1' .. i,
|
||||||
displayname = 'Parameter ' .. v.name
|
topdisplayname = 'Parameter',
|
||||||
|
displayname = v.name
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -97,7 +98,8 @@ function self.createSliders()
|
||||||
max = v.max,
|
max = v.max,
|
||||||
default = v.default,
|
default = v.default,
|
||||||
name = ease2.name .. 'param2' .. i,
|
name = ease2.name .. 'param2' .. i,
|
||||||
displayname = 'Parameter ' .. v.name
|
topdisplayname = 'Parameter',
|
||||||
|
displayname = v.name
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -168,6 +170,15 @@ function self.render()
|
||||||
|
|
||||||
love.graphics.printf(v.displayname, v.x + margin * 2 - ssize * 6, v.y - ssize, ssize * 12, 'center')
|
love.graphics.printf(v.displayname, v.x + margin * 2 - ssize * 6, v.y - ssize, ssize * 12, 'center')
|
||||||
|
|
||||||
|
if v.topdisplayname then
|
||||||
|
love.graphics.setColor(0.4, 0.4, 0.55, 1)
|
||||||
|
love.graphics.push()
|
||||||
|
love.graphics.translate(v.x, v.y - ssize * 1.4)
|
||||||
|
love.graphics.scale(0.75, 0.75)
|
||||||
|
love.graphics.printf(v.topdisplayname, -ssize * 6, 0, ssize * 12, 'center')
|
||||||
|
love.graphics.pop()
|
||||||
|
end
|
||||||
|
|
||||||
if dragging then
|
if dragging then
|
||||||
v.value = ((mx - (x + 1)) / (w - 2)) * (v.max - v.min) + v.min
|
v.value = ((mx - (x + 1)) / (w - 2)) * (v.max - v.min) + v.min
|
||||||
if v.name == 'mix' then graph.touchtimer = 1 end -- sorry !!!
|
if v.name == 'mix' then graph.touchtimer = 1 end -- sorry !!!
|
||||||
|
|
Loading…
Reference in a new issue