WoWInterface SVN SimpleGold

Compare Revisions

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

Rev 23 → Rev 22

SimpleGold.toc
1,8 → 1,8
## Interface: 70300
## X-Min-Interface: 70300
## Interface: 70200
## X-Min-Interface: 70200
## Title: SimpleGold
## Notes: Creates draggable money window
## Version: 5.5.3
## Version: 5.5.2
## Author: Schnoggo
## Dependencies:
## SavedVariables: SimpleGoldGlobals
localization.lua
1,4 → 1,4
SASSTEXT_TITLE="Schnoggo's Simple Gold Ver. 5.5.3";
SASSTEXT_TITLE="Schnoggo's Simple Gold Ver. 5.5.2";
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:",
Readme.txt
1,4 → 1,4
SimpleGold v5.5.3
SimpleGold v5.5.2
 
 
Description
16,7 → 16,6
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
=======
46,11 → 45,6
 
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.3 -->
<!-- SimpleGold 5.5.2 -->
 
 
<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,8 → 67,7
-------- ---------------
FixVars();
local tColor=SimpleGoldSavedVars["color"];
SimpleGold_BackgroundTexture:SetVertexColor(tColor[1],tColor[2],tColor[3],tColor[4]);
 
SimpleGold_BackgroundTexture:SetTexture(tColor[1],tColor[2],tColor[3],tColor[4]);
end
 
 
91,8 → 90,8
-- initialize our saved variables if needed
if (SimpleGoldSavedVars == nil) then
SimpleGoldSavedVars={
xPos=0,
yPos=0,
xPos=-6666,
yPos=-6666,
lastPreset=1,
color={0,0,0,1},
borderStyle=1,
309,7 → 308,7
 
 
 
-- OnShow
-- OnShow
function SimpleGoldPrefsFrameOnShow()
-- see if we need to position this frame:
 
320,7 → 319,9
SimpleGoldPrefsCenter();
end
end
 
 
 
DrawBG();
SimpleGoldSavedVars["viz"]=true;
-- SimpleGoldUpdate();
337,14 → 338,13
FixVars();
 
local currentStep=SimpleGoldSavedVars["lastPreset"];
local presetCount=#(colorPresetList);
local presetCount=table.getn(colorPresetList);
currentStep=currentStep+1;
if (currentStep > presetCount) then
currentStep=1;
end
local tColor=colorPresetList[currentStep];
SimpleGold_BackgroundTexture:SetVertexColor(tColor[1],tColor[2],tColor[3],tColor[4]);
 
SimpleGold_BackgroundTexture:SetTexture(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 (#(tooltipList))>0 then
if (table.getn(tooltipList))>0 then
GameTooltip:AddLine("Total: "..string.format("%.2f",totalGold/10000), .8, .8, 1.8);
for i = 1, #(tooltipList) do
for i = 1, table.getn(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,9 → 405,19
 
function SimpleGoldSaveLastPosition()
local point, relativeTo, relativePoint, xOff, yOff;
point, relativeTo, relativePoint, xOff, yOff = SimpleGoldDisplayFrame:GetPoint();
SimpleGoldSavedVars["xPos"]=xOff;
SimpleGoldSavedVars["yPos"]=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;
 
 
end