WoWInterface SVN SimpleGold

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /trunk
    from Rev 22 to Rev 23
    Reverse comparison

Rev 22 → Rev 23

Readme.txt
1,4 → 1,4
SimpleGold v5.5.2
SimpleGold v5.5.3
 
 
Description
16,6 → 16,7
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
=======
45,6 → 46,11
 
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.xml
1,4 → 1,4
<!-- 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/
SimpleGold.lua
67,7 → 67,8
-------- ---------------
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
 
 
90,8 → 91,8
-- 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,
308,7 → 309,7
 
 
 
-- OnShow
-- OnShow
function SimpleGoldPrefsFrameOnShow()
-- see if we need to position this frame:
 
319,9 → 320,7
SimpleGoldPrefsCenter();
end
end
 
 
 
DrawBG();
SimpleGoldSavedVars["viz"]=true;
-- SimpleGoldUpdate();
338,13 → 337,14
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);
382,9 → 382,9
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
405,19 → 405,9
 
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
SimpleGold.toc
1,8 → 1,8
## 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
localization.lua
1,4 → 1,4
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:",