Mercurial > wow > cyborg-mmo7
comparison OptionView.lua @ 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 | 72adde883f46 | 
| children | c22f1accec43 | 
   comparison
  equal
  deleted
  inserted
  replaced
| 58:cec87b651c10 | 59:b7ee4a10eaf0 | 
|---|---|
| 57 local rowStr = string.sub(name, row-1,row-1) | 57 local rowStr = string.sub(name, row-1,row-1) | 
| 58 return (mode-1) * 13 + row | 58 return (mode-1) * 13 + row | 
| 59 end | 59 end | 
| 60 | 60 | 
| 61 function CyborgMMO_ShowProfileTooltip(self) | 61 function CyborgMMO_ShowProfileTooltip(self) | 
| 62 local red,green,blue = self:GetVertexColor() | 62 if not CyborgMMO_ModeDetected then | 
| 63 if red == 0 and green == 0 and blue == 0 then | |
| 64 GameTooltip:SetOwner(self:GetParent(), "ANCHOR_RIGHT") | 63 GameTooltip:SetOwner(self:GetParent(), "ANCHOR_RIGHT") | 
| 65 GameTooltip:SetText(CyborgMMO_StringTable["CyborgMMO_ToolTipLine1"], nil, nil, nil, nil, 1) | 64 GameTooltip:SetText(CyborgMMO_StringTable["CyborgMMO_ToolTipLine1"], nil, nil, nil, nil, 1) | 
| 66 GameTooltip:AddLine(nil, 0.8, 1.0, 0.8) | 65 GameTooltip:AddLine(nil, 0.8, 1.0, 0.8) | 
| 67 GameTooltip:AddLine(CyborgMMO_StringTable["CyborgMMO_ToolTipLine2"], 0.8, 1.0, 0.8) | 66 GameTooltip:AddLine(CyborgMMO_StringTable["CyborgMMO_ToolTipLine2"], 0.8, 1.0, 0.8) | 
| 68 GameTooltip:AddLine(nil, 0.8, 1.0, 0.8) | 67 GameTooltip:AddLine(nil, 0.8, 1.0, 0.8) | 
