Mercurial > wow > cyborg-mmo7
changeset 59:b7ee4a10eaf0
Initialize the Cyborg heads as mode 1. Still display the minimap button tooltip until a mode change has been detected.
author | madcatzinc@35b17cf1-18cd-47ff-9ca3-31d6b526ef09 |
---|---|
date | Fri, 03 May 2013 23:24:48 +0000 |
parents | cec87b651c10 |
children | a710bedc1ec4 |
files | CyborgMMO7.lua OptionView.lua |
diffstat | 2 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/CyborgMMO7.lua Fri May 03 23:24:42 2013 +0000 +++ b/CyborgMMO7.lua Fri May 03 23:24:48 2013 +0000 @@ -44,6 +44,7 @@ local SettingsLoaded = false local SaveName = GetRealmName().."_"..UnitName("player") local Settings = nil +CyborgMMO_ModeDetected = false function CyborgMMO_MiniMapButtonReposition(angle) @@ -390,6 +391,9 @@ CyborgMMO_SetCyborgHeadButton(Settings.CyborgButton) CyborgMMO_SetPerSpecBindings(Settings.PerSpecBindings) + -- assume we start with mode 1, it's the most likely + CyborgMMO_MouseModeChange(1) + SettingsLoaded = true end @@ -420,6 +424,7 @@ function CyborgMMO_SetupModeCallbacks(modeNum) local fn = function() + CyborgMMO_ModeDetected = true CyborgMMO_MouseModeChange(modeNum) CyborgMMO_RatPageModel:SetMode(modeNum) end
--- a/OptionView.lua Fri May 03 23:24:42 2013 +0000 +++ b/OptionView.lua Fri May 03 23:24:48 2013 +0000 @@ -59,8 +59,7 @@ end function CyborgMMO_ShowProfileTooltip(self) - local red,green,blue = self:GetVertexColor() - if red == 0 and green == 0 and blue == 0 then + if not CyborgMMO_ModeDetected then GameTooltip:SetOwner(self:GetParent(), "ANCHOR_RIGHT") GameTooltip:SetText(CyborgMMO_StringTable["CyborgMMO_ToolTipLine1"], nil, nil, nil, nil, 1) GameTooltip:AddLine(nil, 0.8, 1.0, 0.8)