Mercurial > wow > hansgar_and_franzok_assist
comparison Libs/DF/cooltip.lua @ 39:7944c081e5b4
- framework update.
- ToC Update.
| author | Tercio |
|---|---|
| date | Tue, 19 Jul 2016 13:23:40 -0300 |
| parents | d1963bd45219 |
| children | a960d5372b0c |
comparison
equal
deleted
inserted
replaced
| 38:219f04e5ba55 | 39:7944c081e5b4 |
|---|---|
| 2491 if (CoolTip.Indexes == 0) then | 2491 if (CoolTip.Indexes == 0) then |
| 2492 return --> return error | 2492 return --> return error |
| 2493 end | 2493 end |
| 2494 | 2494 |
| 2495 --> check data integrity | 2495 --> check data integrity |
| 2496 if (type (iconTexture) ~= "string" and (type (iconTexture) ~= "table" or not iconTexture.GetObjectType or iconTexture:GetObjectType() ~= "Texture") ) then | 2496 if ( (type (iconTexture) ~= "string" and type (iconTexture) ~= "number") and (type (iconTexture) ~= "table" or not iconTexture.GetObjectType or iconTexture:GetObjectType() ~= "Texture") ) then |
| 2497 return --> return error | 2497 return --> return error |
| 2498 end | 2498 end |
| 2499 | 2499 |
| 2500 side = side or 1 | 2500 side = side or 1 |
| 2501 | 2501 |
| 3031 end | 3031 end |
| 3032 | 3032 |
| 3033 --> all done | 3033 --> all done |
| 3034 CoolTip:ClearAllOptions() | 3034 CoolTip:ClearAllOptions() |
| 3035 | 3035 |
| 3036 local preset2_backdrop = {bgFile = [[Interface\DialogFrame\UI-DialogBox-Background-Dark]], edgeFile = DF.folder .. "border_3", tile=true, | 3036 -- local preset2_backdrop = {bgFile = [[Interface\DialogFrame\UI-DialogBox-Background-Dark]], edgeFile = DF.folder .. "border_3", tile=true, |
| 3037 edgeSize = 16, tileSize = 64, insets = {left = 3, right = 3, top = 4, bottom = 4}} | 3037 -- edgeSize = 16, tileSize = 64, insets = {left = 3, right = 3, top = 4, bottom = 4}} |
| 3038 | 3038 |
| 3039 local preset2_backdrop = {bgFile = DF.folder .. "background", edgeFile = [[Interface\Buttons\WHITE8X8]], tile = true, | |
| 3040 edgeSize = 1, tileSize = 16, insets = {left = 0, right = 0, top = 0, bottom = 0}} | |
| 3041 local default_backdrop_color = {0.09019, 0.09019, 0.18823, 0.8} | |
| 3042 local default_backdropborder_color = {1, 1, 1, 1} | |
| 3043 | |
| 3044 local gray_table = {0.37, 0.37, 0.37, 0.95} | |
| 3039 local white_table = {1, 1, 1, 1} | 3045 local white_table = {1, 1, 1, 1} |
| 3046 local black_table = {0.2, 0.2, 0.2, 1} | |
| 3040 | 3047 |
| 3041 function CoolTip:Preset (number) | 3048 function CoolTip:Preset (number) |
| 3042 self:Reset() | 3049 self:Reset() |
| 3043 | 3050 |
| 3044 if (number == 1) then | 3051 if (number == 1) then |
| 3056 self:SetOption ("TextSize", 12) | 3063 self:SetOption ("TextSize", 12) |
| 3057 self:SetOption ("FixedWidth", 220) | 3064 self:SetOption ("FixedWidth", 220) |
| 3058 self:SetOption ("ButtonsYMod", -4) | 3065 self:SetOption ("ButtonsYMod", -4) |
| 3059 self:SetOption ("YSpacingMod", -4) | 3066 self:SetOption ("YSpacingMod", -4) |
| 3060 self:SetOption ("IgnoreButtonAutoHeight", true) | 3067 self:SetOption ("IgnoreButtonAutoHeight", true) |
| 3061 self:SetColor (1, 0.5, 0.5, 0.5, 0.5) | 3068 |
| 3062 | 3069 --self:SetColor (1, 0.5, 0.5, 0.5, 0.5) |
| 3063 self:SetBackdrop (1, preset2_backdrop, nil, white_table) | 3070 self:SetColor (1, 0.5, 0.5, 0.5, 0) |
| 3071 | |
| 3072 self:SetBackdrop (1, preset2_backdrop, gray_table, black_table) | |
| 3064 end | 3073 end |
| 3065 end | 3074 end |
| 3066 | 3075 |
| 3067 return CoolTip | 3076 return CoolTip |
| 3068 | 3077 |
