/
SimpleGold v5.5.2 |
SimpleGold v5.5.3 |
Description |
Why did _I_ make this? |
Because I built a nice UI using assorted bar mods and panels. But I wanted a little money display. Now I have one! |
Thanks to Sysop Meeanda for the color update for WoW Client 7.3. |
Install |
======= |
Versions |
======== |
5.5.3 - Jun 27, 2018 |
* Updated TOC for WoW client 7.3 |
* Updated SetTexture() calls to SetVertexColor() |
5.5.2 - Mar 30, 2017 |
* Updated TOC for WoW client 7.2 |
<!-- SimpleGold 5.5.2 --> |
<!-- SimpleGold 5.5.3 --> |
<Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/ |
-------- --------------- |
FixVars(); |
local tColor=SimpleGoldSavedVars["color"]; |
SimpleGold_BackgroundTexture:SetTexture(tColor[1],tColor[2],tColor[3],tColor[4]); |
SimpleGold_BackgroundTexture:SetVertexColor(tColor[1],tColor[2],tColor[3],tColor[4]); |
end |
-- initialize our saved variables if needed |
if (SimpleGoldSavedVars == nil) then |
SimpleGoldSavedVars={ |
xPos=-6666, |
yPos=-6666, |
xPos=0, |
yPos=0, |
lastPreset=1, |
color={0,0,0,1}, |
borderStyle=1, |
-- OnShow |
-- OnShow |
function SimpleGoldPrefsFrameOnShow() |
-- see if we need to position this frame: |
SimpleGoldPrefsCenter(); |
end |
end |
DrawBG(); |
SimpleGoldSavedVars["viz"]=true; |
-- SimpleGoldUpdate(); |
FixVars(); |
local currentStep=SimpleGoldSavedVars["lastPreset"]; |
local presetCount=table.getn(colorPresetList); |
local presetCount=#(colorPresetList); |
currentStep=currentStep+1; |
if (currentStep > presetCount) then |
currentStep=1; |
end |
local tColor=colorPresetList[currentStep]; |
SimpleGold_BackgroundTexture:SetTexture(tColor[1],tColor[2],tColor[3],tColor[4]); |
SimpleGold_BackgroundTexture:SetVertexColor(tColor[1],tColor[2],tColor[3],tColor[4]); |
SimpleGoldSavedVars["lastPreset"]=currentStep; |
SimpleGoldSavedVars["color"]=tColor; |
-- SimpleGold_BackgroundTexture:SetTexture(1,1,1,0); |
end --thisRealmList |
end |
if (table.getn(tooltipList))>0 then |
if (#(tooltipList))>0 then |
GameTooltip:AddLine("Total: "..string.format("%.2f",totalGold/10000), .8, .8, 1.8); |
for i = 1, table.getn(tooltipList) do |
for i = 1, #(tooltipList) do |
-- GameTooltip:AddLine(tooltipList[i], .8, .8, 1.8); |
GameTooltip:AddLine(tooltipList[i][1]..': '..tooltipList[i][2], .8, .8, 1.8); |
end -- for fieldCount |
function SimpleGoldSaveLastPosition() |
local point, relativeTo, relativePoint, xOff, yOff; |
point, relativeTo, relativePoint, xOff, yOff = SimpleGoldDisplayFrame:GetPoint(); |
-- <Anchor point="CENTER"> |
-- <Offset> |
-- <AbsDimension x="0" y="0"/> |
-- </Offset> |
-- </Anchor> |
-- |
SimpleGoldSavedVars["xPos"]=xOff; |
SimpleGoldSavedVars["yPos"]=yOff; |
point, relativeTo, relativePoint, xOff, yOff = SimpleGoldDisplayFrame:GetPoint(); |
SimpleGoldSavedVars["xPos"]=xOff; |
SimpleGoldSavedVars["yPos"]=yOff; |
end |
## Interface: 70200 |
## X-Min-Interface: 70200 |
## Interface: 70300 |
## X-Min-Interface: 70300 |
## Title: SimpleGold |
## Notes: Creates draggable money window |
## Version: 5.5.2 |
## Version: 5.5.3 |
## Author: Schnoggo |
## Dependencies: |
## SavedVariables: SimpleGoldGlobals |
SASSTEXT_TITLE="Schnoggo's Simple Gold Ver. 5.5.2"; |
SASSTEXT_TITLE="Schnoggo's Simple Gold Ver. 5.5.3"; |
SGOLDTEXT = { |
WELCOME="SimpleGold Loaded. Type /simplegold for more information. ", |
HELP="Drag the window to move it. Shift-click the window to change the background. Commands:", |