comparison Libs/DF/cooltip.lua @ 58:0682d738499b v8.0.1.058

- 8.0.1 Update.
author Tercio
date Fri, 20 Jul 2018 19:04:12 -0300
parents 7c0f819a85c6
children
comparison
equal deleted inserted replaced
57:b1c62eed8999 58:0682d738499b
119 ["SelectedBottomAnchorMod"] = true, 119 ["SelectedBottomAnchorMod"] = true,
120 ["SelectedLeftAnchorMod"] = true, 120 ["SelectedLeftAnchorMod"] = true,
121 ["SelectedRightAnchorMod"] = true, 121 ["SelectedRightAnchorMod"] = true,
122 } 122 }
123 123
124 CoolTip.AliasList = {
125 ["VerticalOffset"] = "ButtonsYMod",
126 ["VerticalPadding"] = "YSpacingMod",
127 ["LineHeightSizeOffset"] = "ButtonHeightMod",
128 ["FrameHeightSizeOffset"] = "HeighMod",
129
130 }
131
124 CoolTip.OptionsTable = {} 132 CoolTip.OptionsTable = {}
125 133
126 --cprops 134 --cprops
127 CoolTip.Indexes = 0 --> amount of lines current on shown 135 CoolTip.Indexes = 0 --> amount of lines current on shown
128 CoolTip.IndexesSub = {} --> amount of lines current on shown 136 CoolTip.IndexesSub = {} --> amount of lines current on shown
1822 CoolTip:SetOption ("RelativeAnchor", "top") 1830 CoolTip:SetOption ("RelativeAnchor", "top")
1823 CoolTip:SetOption ("WidthAnchorMod", 0) 1831 CoolTip:SetOption ("WidthAnchorMod", 0)
1824 CoolTip:SetOption ("HeightAnchorMod", 0) 1832 CoolTip:SetOption ("HeightAnchorMod", 0)
1825 end 1833 end
1826 1834
1827 function CoolTip:SetOption (option, value) 1835 function CoolTip:SetOption (optionName, value)
1836
1837 --> check for name alias
1838 optionName = CoolTip.AliasList [optionName] or optionName
1839
1828 --> check if this options exists 1840 --> check if this options exists
1829 if (not CoolTip.OptionsList [option]) then 1841 if (not CoolTip.OptionsList [optionName]) then
1830 return --> error 1842 return --> error
1831 end 1843 end
1832 1844
1833 --> set options 1845 --> set options
1834 CoolTip.OptionsTable [option] = value 1846 CoolTip.OptionsTable [optionName] = value
1835 end 1847 end
1836 1848
1837 ---------------------------------------------------------------------- 1849 ----------------------------------------------------------------------
1838 --> set the anchor of cooltip 1850 --> set the anchor of cooltip
1839 --> parameters: frame [, cooltip anchor point, frame anchor point [, x mod, y mod]] 1851 --> parameters: frame [, cooltip anchor point, frame anchor point [, x mod, y mod]]