From bff5948f0092528dcc97d603e0d9e04e8fa2d778 Mon Sep 17 00:00:00 2001 From: ChrisK2 Date: Fri, 24 Oct 2014 01:16:04 +0200 Subject: osc: make tooltip_an default property --- player/lua/osc.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'player/lua/osc.lua') diff --git a/player/lua/osc.lua b/player/lua/osc.lua index 43ab7ddef8..56b5dd4628 100644 --- a/player/lua/osc.lua +++ b/player/lua/osc.lua @@ -514,7 +514,7 @@ function render_elements(master_ass) local sliderpos = get_slider_value(element) local tooltiplabel = element.slider.tooltipF(sliderpos) - local an = slider_lo.tooltip_an or 2 + local an = slider_lo.tooltip_an if (slider_lo.adjust_tooltip) then if (sliderpos < (s_min + 5)) then @@ -534,7 +534,7 @@ function render_elements(master_ass) local ty - if (slider_lo.tooltip_an or 2) == 2 then + if (slider_lo.tooltip_an == 2) then ty = element.hitbox.y1 - slider_lo.border else ty = element.hitbox.y2 + slider_lo.border @@ -647,6 +647,7 @@ function add_layout(name) stype = "slider", adjust_tooltip = true, tooltip_style = "", + tooltip_an = 2, } elseif (elements[name].type == "box") then elements[name].layout.box = {radius = 0} -- cgit v1.2.3