WoWInterface SVN GrimUI

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /trunk
    from Rev 3 to Rev 2
    Reverse comparison

Rev 3 → Rev 2

GrimUIcore/GrimMMBar.lua New file
0,0 → 1,95
local micromenu = {
CharacterMicroButton,
SpellbookMicroButton,
TalentMicroButton,
AchievementMicroButton,
QuestLogMicroButton,
SocialsMicroButton,
PVPMicroButton,
LFGMicroButton,
MainMenuMicroButton,
HelpMicroButton
}
 
function GrimMMBar:InitMicromenu()
for i = 1, 10 do
local b = micromenu[i]
b:SetParent(GrimMMBar_Micromenu)
end
GrimMMBar:HideMicromenu(GrimMMBar.db.char.microMenuHidden)
GrimMMBar:LockMicromenu(GrimMMBar.db.char.microMenuLocked)
GrimMMBar:ScaleMicromenu(GrimMMBar.db.char.microMenuScale)
end
 
function GrimMMBar:UpdateMicromenu()
if UnitHasVehicleUI("player") then return end
 
local b = CharacterMicroButton
b:ClearAllPoints()
b:SetPoint("BOTTOMLEFT", GrimMMBar_Micromenu, "BOTTOMLEFT", 2, 3)
 
GrimMMBar_Micromenu:ClearAllPoints()
GrimMMBar_Micromenu:SetPoint(
self.db.char.microMenuPoint.point,
WorldFrame,
self.db.char.microMenuPoint.relativePoint,
self.db.char.microMenuPoint.xOfs,
self.db.char.microMenuPoint.yOfs
)
end
 
function GrimMMBar:InitBags()
for i = 1, 10 do
local b = micromenu[i]
b:SetParent(GrimMMBar_Micromenu)
end
end
 
function GrimMMBar:HideMicromenu(value)
if value then
GrimMMBar_Micromenu:Hide()
else
GrimMMBar_Micromenu:Show()
end
GrimMMBar.db.char.microMenuHidden = value
end
 
function GrimMMBar:LockMicromenu(value)
if value then
GrimMMBar_Micromenu:SetMovable(false);
GrimMMBar_Micromenu:RegisterForDrag(nil)
GrimMMBar_Micromenu:SetBackdrop({ })
else
GrimMMBar_Micromenu:SetMovable(true);
GrimMMBar_Micromenu:RegisterForDrag("RightButton")
GrimMMBar_Micromenu:SetBackdrop({
bgFile = "Interface/DialogFrame/UI-DialogBox-Background"
})
end
GrimMMBar.db.char.microMenuLocked = value
GrimMMBar:UpdateMicromenu()
end
 
function GrimMMBar:ScaleMicromenu(value)
GrimMMBar.db.char.microMenuScale = value
GrimMMBar_Micromenu:SetScale(value)
end
 
function GrimMMBar_Micromenu_OnDragStart()
if GrimMMBar.db.char.microMenuLocked then return end
 
this:StartMoving();
this.isMoving = true;
end
 
function GrimMMBar_Micromenu_OnDragStop()
GrimMMBar_Micromenu:StopMovingOrSizing();
GrimMMBar_Micromenu.isMoving = false;
 
point, relativeTo, relativePoint, xOfs, yOfs = GrimMMBar_Micromenu:GetPoint()
 
GrimMMBar.db.char.microMenuPoint.xOfs = xOfs
GrimMMBar.db.char.microMenuPoint.yOfs = yOfs
GrimMMBar.db.char.microMenuPoint.point = point
GrimMMBar.db.char.microMenuPoint.relativePoint = relativePoint
end
GrimUIcore/GrimUIcoreFormArt.xml New file
0,0 → 1,438
<Ui xmlns="http://www.blizzard.com/wow/ui" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<!--Autogenerated by wowuides, Version=1.0.300.0, Culture=neutral, PublicKeyToken=null-->
<Frame name="GrimUIcoreArtB1" parent="UIParent" frameStrata="BACKGROUND" frameLevel="1">
<!--<FrameSkin skinid="f15d4970-d66d-444e-bb2d-1ad102c87fed" frameid="f15d4971-d66d-444e-bb2d-1ad102c87fed" />-->
<Size>
<AbsDimension x="468" y="238" />
</Size>
<Anchors>
<Anchor point="BOTTOMLEFT" relativeTo="UIParent">
<Offset>
<AbsDimension x="0" y="0" />
</Offset>
</Anchor>
</Anchors>
<Backdrop bgFile="interface\AddOns\GrimUIcore\Art\Bottom1">
<BackgroundInsets>
<AbsInset left="0" right="0" top="0" bottom="0" />
</BackgroundInsets>
<TileSize>
<AbsValue val="0" />
</TileSize>
<EdgeSize>
<AbsValue val="0" />
</EdgeSize>
</Backdrop>
</Frame>
<Frame name="GrimUIcoreArtB4" parent="UIParent" frameStrata="BACKGROUND" frameLevel="2">
<!--<FrameSkin skinid="f15d4970-d66d-444e-bb2d-1ad102c87fed" frameid="f15d4971-d66d-444e-bb2d-1ad102c87fed" />-->
<Size>
<AbsDimension x="474" y="238" />
</Size>
<Anchors>
<Anchor point="BOTTOMRIGHT" relativeTo="UIParent">
<Offset>
<AbsDimension x="0" y="0" />
</Offset>
</Anchor>
</Anchors>
<Backdrop bgFile="interface\AddOns\GrimUIcore\Art\Bottom4">
<BackgroundInsets>
<AbsInset left="0" right="0" top="0" bottom="0" />
</BackgroundInsets>
<TileSize>
<AbsValue val="0" />
</TileSize>
<EdgeSize>
<AbsValue val="0" />
</EdgeSize>
</Backdrop>
</Frame>
<Frame name="GrimUIcoreArtB2" parent="UIParent" frameStrata="BACKGROUND" frameLevel="1">
<!--<FrameSkin skinid="f15d4970-d66d-444e-bb2d-1ad102c87fed" frameid="f15d4971-d66d-444e-bb2d-1ad102c87fed" />-->
<Size>
<AbsDimension x="578" y="238" />
</Size>
<Anchors>
<Anchor point="BOTTOM" relativeTo="UIParent">
<Offset>
<AbsDimension x="-210" y="0" />
</Offset>
</Anchor>
</Anchors>
<Backdrop bgFile="interface\AddOns\GrimUIcore\Art\Bottom2">
<BackgroundInsets>
<AbsInset left="0" right="0" top="0" bottom="0" />
</BackgroundInsets>
<TileSize>
<AbsValue val="0" />
</TileSize>
<EdgeSize>
<AbsValue val="0" />
</EdgeSize>
</Backdrop>
</Frame>
<Frame name="GrimUIcoreArtB3" parent="UIParent" frameStrata="BACKGROUND" frameLevel="1">
<!--<FrameSkin skinid="f15d4970-d66d-444e-bb2d-1ad102c87fed" frameid="f15d4971-d66d-444e-bb2d-1ad102c87fed" />-->
<Size>
<AbsDimension x="440" y="238" />
</Size>
<Anchors>
<Anchor point="BOTTOM" relativeTo="UIParent">
<Offset>
<AbsDimension x="295" y="0" />
</Offset>
</Anchor>
</Anchors>
<Backdrop bgFile="interface\AddOns\GrimUIcore\Art\Bottom3">
<BackgroundInsets>
<AbsInset left="0" right="0" top="0" bottom="0" />
</BackgroundInsets>
<TileSize>
<AbsValue val="0" />
</TileSize>
<EdgeSize>
<AbsValue val="0" />
</EdgeSize>
</Backdrop>
</Frame>
<Frame name="GrimUIcoreArtMM" parent="UIParent" frameStrata="LOW" frameLevel="1">
<!--<FrameSkin skinid="f15d4970-d66d-444e-bb2d-1ad102c87fed" frameid="f15d4971-d66d-444e-bb2d-1ad102c87fed" />-->
<Size>
<AbsDimension x="253" y="253" />
</Size>
<Anchors>
<Anchor point="BOTTOM" relativeTo="UIParent">
<Offset>
<AbsDimension x="-40" y="-81" />
</Offset>
</Anchor>
</Anchors>
<Backdrop bgFile="interface\AddOns\GrimUIcore\Art\MinimapBorder">
<BackgroundInsets>
<AbsInset left="0" right="0" top="0" bottom="0" />
</BackgroundInsets>
<TileSize>
<AbsValue val="0" />
</TileSize>
<EdgeSize>
<AbsValue val="0" />
</EdgeSize>
</Backdrop>
</Frame>
<Frame name="GrimUIcoreArtTarget" parent="DUF_TargetFrame" frameStrata="BACKGROUND" frameLevel="4">
<!--<FrameSkin skinid="f15d4970-d66d-444e-bb2d-1ad102c87fed" frameid="f15d4971-d66d-444e-bb2d-1ad102c87fed" />-->
<Size>
<AbsDimension x="207" y="210" />
</Size>
<Anchors>
<Anchor point="BOTTOM" relativeTo="UIParent">
<Offset>
<AbsDimension x="0" y="118" />
</Offset>
</Anchor>
</Anchors>
<Backdrop bgFile="interface\AddOns\GrimUIcore\Art\FloatingCave">
<BackgroundInsets>
<AbsInset left="0" right="0" top="0" bottom="0" />
</BackgroundInsets>
<TileSize>
<AbsValue val="0" />
</TileSize>
<EdgeSize>
<AbsValue val="0" />
</EdgeSize>
</Backdrop>
<Frames>
<Button name="$InspectButton" frameStrata="HIGH" hidden="true">
<!--<FrameSkin skinid="dcb143e1-a4ab-4e7c-b934-1efa40101d21" frameid="2d508884-59c2-4f83-ae10-27aaad48391b" />-->
<Size>
<AbsDimension x="15" y="15" />
</Size>
<Anchors>
<Anchor point="CENTER">
<Offset>
<AbsDimension x="50" y="-50" />
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>self:RegisterEvent("PLAYER_TARGET_CHANGED")
self:Hide()</OnLoad>
<OnEvent>if UnitIsPlayer("target") == nil then
self:Hide()
else
self:Show()
end</OnEvent>
<OnClick>InspectUnit("target")</OnClick>
</Scripts>
<NormalTexture file="Interface\AddOns\GrimUIcore\Icons\InspectIcon">
<TexCoords left="0" right="1" top="0" bottom="1" />
</NormalTexture>
<PushedTexture file="Interface\AddOns\GrimUIcore\Icons\InspectIcon">
<TexCoords left="0" right="1" top="0" bottom="1" />
</PushedTexture>
<DisabledTexture file="Interface\AddOns\GrimUIcore\Icons\InspectIcon">
<TexCoords left="0" right="1" top="0" bottom="1" />
</DisabledTexture>
<HighlightTexture file="Interface\AddOns\GrimUIcore\Icons\InspectIcon" alphaMode="ADD">
<TexCoords left="0" right="1" top="0" bottom="1" />
</HighlightTexture>
<ButtonText name="$parentText">
<FontHeight>
<AbsValue val="10" />
</FontHeight>
</ButtonText>
<NormalFont style="GameFontNormal" />
<HighlightFont style="GameFontHighlight" />
<DisabledFont style="GameFontDisable" />
</Button>
<Button name="$TradeButton" frameStrata="HIGH" hidden="true">
<!--<FrameSkin skinid="dcb143e1-a4ab-4e7c-b934-1efa40101d21" frameid="2d508884-59c2-4f83-ae10-27aaad48391b" />-->
<Size>
<AbsDimension x="15" y="15" />
</Size>
<Anchors>
<Anchor point="CENTER">
<Offset>
<AbsDimension x="50" y="-35" />
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>self:RegisterEvent("PLAYER_TARGET_CHANGED")
self:Hide()</OnLoad>
<OnEvent>if UnitIsFriend("player","target") and UnitIsPlayer("target") then
self:Show()
else
self:Hide()
end</OnEvent>
<OnClick>InitiateTrade("target")</OnClick>
</Scripts>
<NormalTexture file="Interface\AddOns\GrimUIcore\Icons\TradeIcon">
<TexCoords left="0" right="1" top="0" bottom="1" />
</NormalTexture>
<PushedTexture file="Interface\AddOns\GrimUIcore\Icons\TradeIcon">
<TexCoords left="0" right="1" top="0" bottom="1" />
</PushedTexture>
<DisabledTexture file="Interface\AddOns\GrimUIcore\Icons\TradeIcon">
<TexCoords left="0" right="1" top="0" bottom="1" />
</DisabledTexture>
<HighlightTexture file="Interface\AddOns\GrimUIcore\Icons\TradeIcon" alphaMode="ADD">
<TexCoords left="0" right="1" top="0" bottom="1" />
</HighlightTexture>
<ButtonText name="$parentText">
<FontHeight>
<AbsValue val="10" />
</FontHeight>
</ButtonText>
<NormalFont style="GameFontNormal" />
<HighlightFont style="GameFontHighlight" />
<DisabledFont style="GameFontDisable" />
</Button>
<Button name="$FollowButton" frameStrata="HIGH" hidden="true">
<!--<FrameSkin skinid="dcb143e1-a4ab-4e7c-b934-1efa40101d21" frameid="2d508884-59c2-4f83-ae10-27aaad48391b" />-->
<Size>
<AbsDimension x="15" y="15" />
</Size>
<Anchors>
<Anchor point="CENTER">
<Offset>
<AbsDimension x="-50" y="-35" />
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>self:RegisterEvent("PLAYER_TARGET_CHANGED")
self:Hide()</OnLoad>
<OnEvent>if UnitIsFriend("player","target") and UnitIsPlayer("target") then
self:Show()
else
self:Hide()
end</OnEvent>
<OnClick>FollowUnit("target")</OnClick>
</Scripts>
<NormalTexture file="Interface\AddOns\GrimUIcore\Icons\FollowIcon">
<TexCoords left="0" right="1" top="0" bottom="1" />
</NormalTexture>
<PushedTexture file="Interface\AddOns\GrimUIcore\Icons\FollowIcon">
<TexCoords left="0" right="1" top="0" bottom="1" />
</PushedTexture>
<DisabledTexture file="Interface\AddOns\GrimUIcore\Icons\FollowIcon">
<TexCoords left="0" right="1" top="0" bottom="1" />
</DisabledTexture>
<HighlightTexture file="Interface\AddOns\GrimUIcore\Icons\FollowIcon" alphaMode="ADD">
<TexCoords left="0" right="1" top="0" bottom="1" />
</HighlightTexture>
<ButtonText name="$parentText">
<FontHeight>
<AbsValue val="10" />
</FontHeight>
</ButtonText>
<NormalFont style="GameFontNormal" />
<HighlightFont style="GameFontHighlight" />
<DisabledFont style="GameFontDisable" />
</Button>
<Button name="$WhisperButton" frameStrata="HIGH" hidden="true">
<!--<FrameSkin skinid="dcb143e1-a4ab-4e7c-b934-1efa40101d21" frameid="2d508884-59c2-4f83-ae10-27aaad48391b" />-->
<Size>
<AbsDimension x="15" y="15" />
</Size>
<Anchors>
<Anchor point="CENTER">
<Offset>
<AbsDimension x="-50" y="-50" />
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>self:RegisterEvent("PLAYER_TARGET_CHANGED")
self:Hide()</OnLoad>
<OnEvent>if UnitIsFriend("player","target") and UnitIsPlayer("target") then
self:Show()
else
self:Hide()
end</OnEvent>
<OnClick>local name, realm = UnitName("target");
if(realm) then
ChatFrame_SendTell(name.."-"..realm);
else
ChatFrame_SendTell(name)
end</OnClick>
</Scripts>
<NormalTexture file="Interface\AddOns\GrimUIcore\Icons\WhisperIcon">
<TexCoords left="0" right="1" top="0" bottom="1" />
</NormalTexture>
<PushedTexture file="Interface\AddOns\GrimUIcore\Icons\WhisperIcon">
<TexCoords left="0" right="1" top="0" bottom="1" />
</PushedTexture>
<DisabledTexture file="Interface\AddOns\GrimUIcore\Icons\WhisperIcon">
<TexCoords left="0" right="1" top="0" bottom="1" />
</DisabledTexture>
<HighlightTexture file="Interface\AddOns\GrimUIcore\Icons\WhisperIcon" alphaMode="ADD">
<TexCoords left="0" right="1" top="0" bottom="1" />
</HighlightTexture>
<ButtonText name="$parentText">
<FontHeight>
<AbsValue val="10" />
</FontHeight>
</ButtonText>
<NormalFont style="GameFontNormal" />
<HighlightFont style="GameFontHighlight" />
<DisabledFont style="GameFontDisable" />
</Button>
<Button name="$InviteButton" frameStrata="HIGH" hidden="true">
<!--<FrameSkin skinid="dcb143e1-a4ab-4e7c-b934-1efa40101d21" frameid="2d508884-59c2-4f83-ae10-27aaad48391b" />-->
<Size>
<AbsDimension x="15" y="15" />
</Size>
<Anchors>
<Anchor point="CENTER">
<Offset>
<AbsDimension x="-25" y="-0" />
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>self:RegisterEvent("PLAYER_TARGET_CHANGED") self:RegisterEvent("PARTY_MEMBERS_CHANGED")
self:Hide()</OnLoad>
<OnEvent>if UnitIsFriend("player","target") and UnitIsPlayer("target") and not UnitInParty("target") then
self:Show()
else
self:Hide()
end</OnEvent>
<OnClick>local name = UnitName("target");
InviteUnit(name)</OnClick>
</Scripts>
<NormalTexture file="Interface\AddOns\GrimUIcore\Icons\InviteIcon">
<TexCoords left="0" right="1" top="0" bottom="1" />
</NormalTexture>
<PushedTexture file="Interface\AddOns\GrimUIcore\Icons\InviteIcon">
<TexCoords left="0" right="1" top="0" bottom="1" />
</PushedTexture>
<DisabledTexture file="Interface\AddOns\GrimUIcore\Icons\InviteIcon">
<TexCoords left="0" right="1" top="0" bottom="1" />
</DisabledTexture>
<HighlightTexture file="Interface\AddOns\GrimUIcore\Icons\InviteIcon" alphaMode="ADD">
<TexCoords left="0" right="1" top="0" bottom="1" />
</HighlightTexture>
<ButtonText name="$parentText">
<FontHeight>
<AbsValue val="10" />
</FontHeight>
</ButtonText>
<NormalFont style="GameFontNormal" />
<HighlightFont style="GameFontHighlight" />
<DisabledFont style="GameFontDisable" />
</Button>
</Frames>
</Frame>
<Frame name="GrimUIcoreArtAggroL" alpha="0.50" frameStrata="LOW" frameLevel="2">
<!--<FrameSkin skinid="f15d4970-d66d-444e-bb2d-1ad102c87fed" frameid="f15d4971-d66d-444e-bb2d-1ad102c87fed" />-->
<Size>
<AbsDimension x="63" y="65" />
</Size>
<Anchors>
<Anchor point="BOTTOM" relativeTo="UIParent">
<Offset>
<AbsDimension x="-347" y="14" />
</Offset>
</Anchor>
</Anchors>
<Backdrop bgFile="interface\AddOns\GrimUIcore\Art\Aggro">
<BackgroundInsets>
<AbsInset left="0" right="0" top="0" bottom="0" />
</BackgroundInsets>
<TileSize>
<AbsValue val="0" />
</TileSize>
<EdgeSize>
<AbsValue val="0" />
</EdgeSize>
</Backdrop>
<Scripts>
<OnLoad>self:RegisterEvent("PLAYER_REGEN_DISABLED")
self:RegisterEvent("PLAYER_REGEN_ENABLED")
self:Hide()</OnLoad>
<OnEvent>if event == "PLAYER_REGEN_ENABLED" then
self:Hide()
elseif event == "PLAYER_REGEN_DISABLED" then
self:Show()
end</OnEvent>
</Scripts>
</Frame>
<Frame name="GrimUIcoreArtAggroR" alpha="0.50" frameStrata="LOW" frameLevel="2">
<!--<FrameSkin skinid="f15d4970-d66d-444e-bb2d-1ad102c87fed" frameid="f15d4971-d66d-444e-bb2d-1ad102c87fed" />-->
<Size>
<AbsDimension x="66" y="65" />
</Size>
<Anchors>
<Anchor point="BOTTOM" relativeTo="UIParent">
<Offset>
<AbsDimension x="344" y="14" />
</Offset>
</Anchor>
</Anchors>
<Backdrop bgFile="interface\AddOns\GrimUIcore\Art\Aggro">
<BackgroundInsets>
<AbsInset left="0" right="0" top="0" bottom="0" />
</BackgroundInsets>
<TileSize>
<AbsValue val="0" />
</TileSize>
<EdgeSize>
<AbsValue val="0" />
</EdgeSize>
</Backdrop>
<Scripts>
<OnLoad>self:RegisterEvent("PLAYER_REGEN_DISABLED")
self:RegisterEvent("PLAYER_REGEN_ENABLED")
self:Hide()</OnLoad>
<OnEvent>if event == "PLAYER_REGEN_ENABLED" then
self:Hide()
elseif event == "PLAYER_REGEN_DISABLED" then
self:Show()
end</OnEvent>
</Scripts>
</Frame>
</Ui>
GrimUIcore/GrimUIcore.lua New file
0,0 → 1,64
-- Start WorldFrame/Viewport --
WorldFrame:ClearAllPoints(); WorldFrame:SetPoint("TOPLEFT", 0, -15); WorldFrame:SetPoint("BOTTOMRIGHT", 0, 95);
-- End WorldFrame/Viewport --
 
-- Start Latency Frame --
function LatencyDisplay_OnLoad()
LATENCYDISPLAY_LOW_LATENCY = 150;
LATENCYDISPLAY_MEDIUM_LATENCY = 420;
LATENCYDISPLAY_UPDATE_INTERVAL = 1;
this.updateInterval = 0;
end
 
function LatencyDisplay_OnUpdate()
if (this.updateInterval > 0) then
this.updateInterval = this.updateInterval - arg1;
else
this.updateInterval = LATENCYDISPLAY_UPDATE_INTERVAL;
local bandwidthIn, bandwidthOut, latency = GetNetStats();
if (latency > LATENCYDISPLAY_MEDIUM_LATENCY) then
LatencyDisplay_Text:SetTextColor(1, 0, 0);
elseif (latency > LATENCYDISPLAY_LOW_LATENCY) then
LatencyDisplay_Text:SetTextColor(1, 1, 0);
else
LatencyDisplay_Text:SetTextColor(0, 1, 0);
end
if (latency > 9999) then
LatencyDisplay_Text:SetText("HIGH ");
else
LatencyDisplay_Text:SetText(""..latency.."ms");
end
end
 
end
-- End Latency Frame --
-- Start FPS Frame
function FPSDisplay_OnLoad()
FPSDISPLAY_LOW_FPS = 40;
FPSDISPLAY_MEDIUM_FPS = 20;
FPSDISPLAY_UPDATE_INTERVAL = 1;
this.updateInterval = 0;
end
 
function FPSDisplay_OnUpdate()
if (this.updateInterval > 0) then
this.updateInterval = this.updateInterval - arg1;
else
this.updateInterval = FPSDISPLAY_UPDATE_INTERVAL;
local FPS = GetFramerate();
if (FPS < FPSDISPLAY_MEDIUM_FPS) then
FPSDisplay_Text:SetTextColor(1, 0, 0);
elseif (FPS < FPSDISPLAY_LOW_FPS) then
FPSDisplay_Text:SetTextColor(1, 1, 0);
else
FPSDisplay_Text:SetTextColor(0, 1, 0);
end
if (FPS < 3) then
FPSDisplay_Text:SetText("WTF");
else
FPSDisplay_Text:SetText("".. floor(FPS) .."fps");
end
end
 
end
-- End FPS Frame --
\ No newline at end of file
GrimUIcore/Art/Bottom3.blp Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes : Added: svn:mime-type + application/octet-stream
GrimUIcore/Art/Bottom4.blp Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes : Added: svn:mime-type + application/octet-stream
GrimUIcore/Art/MinimapBorder.blp Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes : Added: svn:mime-type + application/octet-stream
GrimUIcore/Art/Aggro.blp Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes : Added: svn:mime-type + application/octet-stream
GrimUIcore/Art/pedestal.tga Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes : Added: svn:mime-type + application/octet-stream
GrimUIcore/Art/FloatingCave.blp Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes : Added: svn:mime-type + application/octet-stream
GrimUIcore/Art/Bottom1.blp Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes : Added: svn:mime-type + application/octet-stream
GrimUIcore/Art/Bottom2.blp Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes : Added: svn:mime-type + application/octet-stream
GrimUIcore/GrimUIclock.lua New file
0,0 → 1,68
local date, tonumber, GetGameTime = date, tonumber, GetGameTime
 
local Clock = CreateFrame('Button', "GrimUIclock", UIParent)
Clock:SetPoint('BOTTOMRIGHT', UIParent, 'BOTTOMRIGHT', -46, 205)
Clock:SetHeight(20)
Clock:SetWidth(55)
Clock:RegisterForClicks('LeftButtonUp', 'RightButtonUp')
 
 
local Time = Clock:CreateFontString(nil, 'ARTWORK')
Time:SetFont([[Fonts\ARIALN.ttf]], 13)
Time:SetShadowOffset(1, -1)
Time:SetTextColor(1, 1, 1, 1)
Time:SetPoint('CENTER', Clock)
 
Clock:SetScript('OnClick', function(self, button)
if button == 'LeftButton' then
ToggleTimeManager()
else
ToggleCalendar()
end
end)
 
local server_hour, server_minute
local function OnEnter(self)
if self.tooltip then
GameTooltip:ClearLines()
else
GameTooltip:SetOwner(self, 'ANCHOR_TOP', -5, 88)
end
GameTooltip:AddDoubleLine("Today's Date", date("%A, %B %d, %Y"))
GameTooltip:AddDoubleLine("Local Time", Time:GetText())
GameTooltip:AddDoubleLine("Server Time", ("%d:%.02d %sM"):format(server_hour ~= 0 and server_hour or 12, server_minute, server_hour >= 12 and "P" or "A"))
GameTooltip:AddLine(" ")
GameTooltip:AddLine("|cffeda55fLeft Click|r toggles the Time Manager", 0.2, 1, 0.2)
GameTooltip:AddLine("|cffeda55fRight Click|r toggles the Calendar", 0.2, 1, 0.2)
if not self.tooltip then
GameTooltip:Show()
self.tooltip = true
end
end
Clock:SetScript('OnEnter', OnEnter)
 
Clock:SetScript('OnLeave', function(self)
GameTooltip:Hide()
self.tooltip = nil
end)
 
Clock:SetScript('OnMouseDown', function(self, button)
if button ~= 'LeftButton' or not IsAltKeyDown() then return end
self:ClearAllPoints()
self:StartMoving()
self.moving = true
end)
 
local previousMinute, timer = -1, -1
Clock:SetScript('OnUpdate', function(self, elapsed)
timer = timer - elapsed
if timer > 0 then return end
timer = 5
server_hour, server_minute = GetGameTime()
if server_minute == previousMinute then return end
previousMinute = server_minute
Time:SetText(("%d:%s"):format(tonumber(date("%I")), date("%M %p")))
if self.tooltip then
OnEnter(self)
end
end)
\ No newline at end of file
GrimUIcore/GrimUIcoreForm.xml New file
0,0 → 1,251
<Ui xmlns="http://www.blizzard.com/wow/ui" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Frame name="GrimUICoreFrame" parent="UIParent" enableMouse="true">
<Size>
<AbsDimension x="32" y="32" />
</Size>
<Anchors>
<Anchor point="RIGHT" relativeTo="UIParent">
<Offset>
<AbsDimension x="-30" y="-390" />
</Offset>
</Anchor>
</Anchors>
<Backdrop bgFile="none" edgeFile="none" tile="true">
<BackgroundInsets>
<AbsInset left="11" right="12" top="12" bottom="11" />
</BackgroundInsets>
<TileSize>
<AbsValue val="32" />
</TileSize>
<EdgeSize>
<AbsValue val="32" />
</EdgeSize>
</Backdrop>
<Layers>
<Layer>
<Texture name="$parentTitleBorder" hidden="true">
<Size>
<AbsDimension x="160" y="32" />
</Size>
<Anchors>
<Anchor point="TOP">
<Offset>
<AbsDimension x="0" y="5" />
</Offset>
</Anchor>
</Anchors>
<TexCoords left="0.2" right="0.8" top="0" bottom="0.6" />
</Texture>
<FontString name="$parentTitleString" hidden="true" font="Fonts\FRIZQT__.TTF">
<Size>
<AbsDimension x="140" y="0" />
</Size>
<Anchors>
<Anchor point="TOP">
<Offset>
<AbsDimension x="0" y="-4" />
</Offset>
</Anchor>
</Anchors>
<FontHeight>
<AbsValue val="12" />
</FontHeight>
<Color r="1" g="0.8196079" b="0" />
<Shadow>
<Color r="0" g="0" b="0" />
<Offset>
<AbsDimension x="1" y="-1" />
</Offset>
</Shadow>
</FontString>
</Layer>
</Layers>
<Frames>
<Button name="$GrimUIButton1">
<Size>
<AbsDimension x="30" y="30" />
</Size>
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="16" y="-3" />
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnClick>
for i = 1, 5 do
local bag_btn = _G["MacaroonBagButton"..i]
if bag_btn:IsVisible() then
bag_btn:Hide()
else
bag_btn:Show()
end
end
 
for i = 1, 11 do
local menu_btn = _G["MacaroonMenuButton"..i]
if menu_btn:IsVisible() then
menu_btn:Hide()
else
menu_btn:Show()
end
end
</OnClick>
</Scripts>
<NormalTexture file="Interface\AddOns\GrimUIcore\Icons\GrimUIicon">
<TexCoords left="0" right="1" top="0" bottom="1" />
</NormalTexture>
<PushedTexture file="Interface\AddOns\GrimUIcore\Icons\GrimUIicon">
<TexCoords left="0" right="1" top="0" bottom="1" />
</PushedTexture>
<DisabledTexture file="Interface\AddOns\GrimUIcore\Icons\GrimUIicon">
<TexCoords left="0" right="1" top="0" bottom="1" />
</DisabledTexture>
<HighlightTexture file="Interface\AddOns\GrimUIcore\Icons\GrimUIicon" alphaMode="ADD">
<TexCoords left="0" right="1" top="0" bottom="1" />
</HighlightTexture>
<ButtonText name="$parentText">
<FontHeight>
<AbsValue val="10" />
</FontHeight>
</ButtonText>
<NormalFont style="GameFontNormal" />
<HighlightFont style="GameFontHighlight" />
<DisabledFont style="GameFontDisable" />
</Button>
</Frames>
</Frame>
<!-- Start Latency Frame -->
<Script file="GrimUIcore.lua"/>
<Frame name="LatencyDisplayFrame" frameStrata="BACKGROUND" frameLevel="2" toplevel="true" enableMouse="false" movable="false" parent="UIParent">
<Size>
<AbsDimension x="100" y="25"/>
</Size>
<Anchors>
<Anchor point="BOTTOMRIGHT">
<Offset>
<AbsDimension x="-74" y = "202"/>
</Offset>
</Anchor>
</Anchors>
<TitleRegion setAllPoints="true"/>
<Backdrop name="$parentBackdrop" bgFile="none">
<EdgeSize>
<AbsValue val="16"/>
</EdgeSize>
<TileSize>
<AbsValue val="16"/>
</TileSize>
<BackgroundInsets>
<AbsInset left="3" right="5" top="3" bottom="5"/>
</BackgroundInsets>
</Backdrop>
<Frames>
<Button name="LatencyButton">
<Size>
<AbsDimension x="47" y="19"/>
</Size>
<Anchors>
<Anchor point="CENTER">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
<Layers>
<Layer level="BACKGROUND" frameLevel="2">
<FontString name="LatencyDisplay_Text" inherits="GameFontNormal" wraponspaces="true">
<Anchors>
<Anchor point="CENTER">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
</Button>
</Frames>
<Scripts>
<OnLoad>
LatencyDisplay_OnLoad();
</OnLoad>
<OnEvent>
</OnEvent>
<OnUpdate>
LatencyDisplay_OnUpdate();
</OnUpdate>
</Scripts>
</Frame>
<!-- End Latency Frame -->
<!-- Start FPS Frame -->
<Script file="GrimUIcore.lua"/>
<Frame name="FPSDisplayFrame" frameStrata="BACKGROUND" frameLevel="2" toplevel="true" enableMouse="false" movable="false" parent="UIParent">
<Size>
<AbsDimension x="100" y="25"/>
</Size>
<Anchors>
<Anchor point="BOTTOMRIGHT">
<Offset>
<AbsDimension x="-117" y = "202"/>
</Offset>
</Anchor>
</Anchors>
<TitleRegion setAllPoints="true"/>
<Backdrop name="$parentBackdrop" bgFile="none">
<EdgeSize>
<AbsValue val="16"/>
</EdgeSize>
<TileSize>
<AbsValue val="16"/>
</TileSize>
<BackgroundInsets>
<AbsInset left="3" right="5" top="3" bottom="5"/>
</BackgroundInsets>
</Backdrop>
<Frames>
<Button name="FPSButton">
<Size>
<AbsDimension x="47" y="19"/>
</Size>
<Anchors>
<Anchor point="CENTER">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
<Layers>
<Layer level="BACKGROUND" frameLevel="2">
<FontString name="FPSDisplay_Text" inherits="GameFontNormal" wraponspaces="true">
<Anchors>
<Anchor point="CENTER">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
</Button>
</Frames>
<Scripts>
<OnLoad>
FPSDisplay_OnLoad();
</OnLoad>
<OnEvent>
</OnEvent>
<OnUpdate>
FPSDisplay_OnUpdate();
</OnUpdate>
</Scripts>
</Frame>
<!-- End FPS Frame -->
<!-- Start Blizzard AddOn Option Panel-->
 
 
<!-- End Blizzard AddOn Option Panel-->
</Ui>
\ No newline at end of file
GrimUIcore/GrimUIcore.toc New file
0,0 → 1,16
## Interface: 30200
## Title: GrimUIcore
## Author: Grimsin
## Version: 3.2.1
## Notes: GrimUIcore does a number of things. Puts G button for toggeling the system and bag bars. Controls the Clock amoung other things. Thanks to everyone who has helped or allowed me to use there code!
## eMail: adam@adamsmind.net
## URL: adamsmind.net
## RequiredDeps: Macaroon
## DefaultState: Enabled
## LoadOnDemand: 0
GrimUIcoreFormArt.xml
GrimUIclock.lua
GrimUIcore.lua
GrimUIcoreForm.xml
GrimUICoreNoVar.lua
GrimMMBar.xml
\ No newline at end of file
GrimUIcore/Untitled3.xml --- GrimUIcore/GrimUICoreNoVar.lua (revision 0) +++ GrimUIcore/GrimUICoreNoVar.lua (revision 2) @@ -0,0 +1,270 @@ +-------------------------------------- +-- Start Blizzard AddOn Option Panel-- +-------------------------------------- + +local GrimUIOptions = CreateFrame( "Frame", nil , UIParent ); + GrimUIOptions.name = "GrimUI"; + InterfaceOptions_AddCategory(GrimUIOptions); + +------------------------------------ +-- End Blizzard AddOn Option Panel-- +------------------------------------ + +---------------------------------- +-- Start Hidden Blizzard Frames -- +---------------------------------- + +RuneFrame:Hide(); + +-------------------------------- +-- End Hidden Blizzard Frames -- +-------------------------------- + +------------------------------- +-- Start Hidden AddOn Frames -- +------------------------------- + + + +------------------------------- +-- Start Hidden AddOn Frames -- +------------------------------- + + +------------------------ +-- Start Castbar Hide -- +------------------------ + +CastingBarFrame:SetScript("OnUpdate", nil) +CastingBarFrame:SetScript("OnEvent", nil) +CastingBarFrame:Hide() + +---------------------- +-- End Castbar Hide -- +---------------------- + +----------------------------------- +-- Start Movable Blizzard Frames -- +----------------------------------- + +local addon = CreateFrame("Frame") +-- These frames are hooked on login. +local frames = { + -- ["FrameName"] = true (the parent frame should be moved) or false (the frame itself should be moved) + + -- Blizzard Frames + ["RuneFrame"] = false, + ["SpellBookFrame"] = false, + ["QuestLogFrame"] = false, + ["FriendsFrame"] = false, + ["LFGParentFrame"] = false, + ["KnowledgeBaseFrame"] = true, + ["HelpFrame"] = false, + ["GossipFrame"] = false, + ["MerchantFrame"] = false, + ["MailFrame"] = false, + ["OpenMailFrame"] = false, + ["GuildRegistrarFrame"] = false, + ["DressUpFrame"] = false, + ["TabardFrame"] = false, + ["TaxiFrame"] = false, + ["QuestFrame"] = false, + ["TradeFrame"] = false, + ["LootFrame"] = false, + ["PetStableFrame"] = false, + ["StackSplitFrame"] = false, + ["PetitionFrame"] = false, + ["WorldStateScoreFrame"] = false, + ["BattlefieldFrame"] = false, + ["ArenaFrame"] = false, + ["ItemTextFrame"] = false, + ["GameMenuFrame"] = false, + ["InterfaceOptionsFrame"] = false, + ["MacOptionsFrame"] = false, + ["PetPaperDollFrame"] = true, + ["PetPaperDollFrameCompanionFrame"] = "CharacterFrame", + ["PetPaperDollFramePetFrame"] = "CharacterFrame", + ["PaperDollFrame"] = true, + ["ReputationFrame"] = true, + ["SkillFrame"] = true, + ["PVPFrame"] = true, + ["PVPBattlegroundFrame"] = true, + ["SendMailFrame"] = true, + ["TokenFrame"] = true, + ["InterfaceOptionsFrame"] = false, + ["VideoOptionsFrame"] = false, + ["AudioOptionsFrame"] = false, + ["BankFrame"] = false, + + -- AddOns + ["LudwigFrame"] = false, +} + +-- Frames provided by load on demand addons, hooked when the addon is loaded. +local lodFrames = { + -- AddonName = { list of frames, same syntax as above } + Blizzard_AuctionUI = { ["AuctionFrame"] = false }, + Blizzard_BindingUI = { ["KeyBindingFrame"] = false }, + Blizzard_CraftUI = { ["CraftFrame"] = false }, + Blizzard_GMSurveyUI = { ["GMSurveyFrame"] = false }, + Blizzard_InspectUI = { ["InspectFrame"] = false, ["InspectPVPFrame"] = true, ["InspectTalentFrame"] = true }, + Blizzard_ItemSocketingUI = { ["ItemSocketingFrame"] = false }, + Blizzard_MacroUI = { ["MacroFrame"] = false }, + Blizzard_TalentUI = { ["PlayerTalentFrame"] = false }, + Blizzard_TradeSkillUI = { ["TradeSkillFrame"] = false }, + Blizzard_TrainerUI = { ["ClassTrainerFrame"] = false }, + Blizzard_GuildBankUI = { ["GuildBankFrame"] = false, ["GuildBankEmblemFrame"] = true }, + Blizzard_TimeManager = { ["TimeManagerFrame"] = false }, + Blizzard_AchievementUI = { ["AchievementFrame"] = false, ["AchievementFrameHeader"] = true, ["AchievementFrameCategoriesContainer"] = "AchievementFrame" }, + Blizzard_TokenUI = { ["TokenFrame"] = true }, + Blizzard_ItemSocketingUI = { ["ItemSocketingFrame"] = false }, + Blizzard_GlyphUI = { ["GlyphFrame"] = "PlayerTalentFrame" }, + Blizzard_BarbershopUI = { ["BarberShopFrame"] = false }, + Blizzard_Calendar = { ["CalendarFrame"] = false, ["CalendarCreateEventFrame"] = true }, +} + +local parentFrame = {} +local hooked = {} + +local function print(msg) + DEFAULT_CHAT_FRAME:AddMessage("GrimUI" .. msg) +end + +function addon:PLAYER_LOGIN() + self:HookFrames(frames) + -- Bugfix for 3.1+ Battleground frame (wrong anchor) + if PVPBattlegroundFrameFrameLabel and PVPBattlegroundFrame then + PVPBattlegroundFrameFrameLabel:ClearAllPoints() + PVPBattlegroundFrameFrameLabel:SetPoint("TOP", PVPBattlegroundFrame, "TOP", 0, -17) + end + -- Bugfix for 3.2 Battleground frame -.- + if PVPBattlegroundFrameNameHeader and PVPBattlegroundFrame then + PVPBattlegroundFrameNameHeader:ClearAllPoints() + PVPBattlegroundFrameNameHeader:SetPoint("TOPLEFT", PVPBattlegroundFrame, "TOPLEFT", 70, -55) + PVPBattlegroundFrameNameHeader2:ClearAllPoints() + PVPBattlegroundFrameNameHeader2:SetPoint("TOPLEFT", PVPBattlegroundFrame, "TOPLEFT", 70, -172) + end +end + +function addon:ADDON_LOADED(name) + local frameList = lodFrames[name] + if frameList then + self:HookFrames(frameList) + end +end + +local function MouseDownHandler(frame, button) + frame = parentFrame[frame] or frame + if frame and button == "LeftButton" then + frame:StartMoving() + frame:SetUserPlaced(false) + end +end + +local function MouseUpHandler(frame, button) + frame = parentFrame[frame] or frame + if frame and button == "LeftButton" then + frame:StopMovingOrSizing() + end +end + +function addon:HookFrames(list) + for name, child in pairs(list) do + self:HookFrame(name, child) + end +end + +function addon:HookFrame(name, moveParent) + local frame = _G[name] + local parent + if frame and not hooked[name] then + if moveParent then + if type(moveParent) == "string" then + parent = _G[moveParent] + else + parent = frame:GetParent() + end + if not parent then + print("Parent frame not found: " .. name) + return + end + parentFrame[frame] = parent + end + if parent then + parent:SetMovable(true) + parent:SetClampedToScreen(false) + end + frame:EnableMouse(true) + frame:SetMovable(true) + frame:SetClampedToScreen(false) + self:HookScript(frame, "OnMouseDown", MouseDownHandler) + self:HookScript(frame, "OnMouseUp", MouseUpHandler) + hooked[name] = true + end +end + +function addon:HookScript(frame, script, handler) + if not frame.GetScript then return end + local oldHandler = frame:GetScript(script) + if oldHandler then + frame:SetScript(script, function(...) + handler(...) + oldHandler(...) + end) + else + frame:SetScript(script, handler) + end +end + +addon:SetScript("OnEvent", function(f, e, ...) f[e](f, ...) end) +addon:RegisterEvent("PLAYER_LOGIN") +addon:RegisterEvent("ADDON_LOADED") + +-- Hook bag frames +hooksecurefunc("ContainerFrame_GenerateFrame", function(frame, size, id) + if id <= NUM_BAG_FRAMES or id == KEYRING_CONTAINER then + addon:HookFrame(frame:GetName()) + end +end) +---------------------------------- +-- End Moveable Blizzard Frames -- +---------------------------------- + +------------------------------ +-- Start ToolTip Item Icons -- +------------------------------ + +local DEFAULT_ICON_SIZE = 24 + +local function AddIcon(self, icon) + if icon then + local title = _G[self:GetName() .. 'TextLeft1'] + if title and not title:GetText():find('|T' .. icon) then + title:SetFormattedText('|T%s:%d|t %s', icon, _G['GrimUIcoreSize'] or DEFAULT_ICON_SIZE, title:GetText()) + end + end +end +-- Item -- +local function hookItem(tip) + tip:HookScript('OnTooltipSetItem', function(self, ...) + local name, link = self:GetItem() + local icon = link and GetItemIcon(link) + AddIcon(self, icon) + end) +end +hookItem(_G['GameTooltip']) +hookItem(_G['ItemRefTooltip']) + +-- Spell -- +local function hookSpell(tip) + tip:HookScript('OnTooltipSetSpell', function(self, ...) + local name, rank, icon = GetSpellInfo(self:GetSpell()) + AddIcon(self, icon) + end) +end +hookSpell(_G['GameTooltip']) +hookSpell(_G['ItemRefTooltip']) + +--------------------------- +-- End ToolTip Item Icon -- +--------------------------- \ No newline at end of file
GrimUIcore/Icons/GrimUIicon.blp Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes : Added: svn:mime-type + application/octet-stream
GrimUIcore/Icons/InviteIcon.blp Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes : Added: svn:mime-type + application/octet-stream
GrimUIcore/Icons/TradeIcon.blp Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes : Added: svn:mime-type + application/octet-stream
GrimUIcore/Icons/WhisperIcon.blp Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes : Added: svn:mime-type + application/octet-stream
GrimUIcore/Icons/FollowIcon.blp Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes : Added: svn:mime-type + application/octet-stream
GrimUIcore/Icons/InspectIcon.blp Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes : Added: svn:mime-type + application/octet-stream
GrimUIcore/GrimMMBar.xml New file
0,0 → 1,25
<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/
..\FrameXML\UI.xsd">
<Frame name="GrimBBBar_Micromenu" parent="MainMenuBar" enableMouse="true" frameStrata="BACKGROUND" hidden="false">
<Size>
<AbsDimension x="260" y="43"/>
</Size>
<Anchors>
<Anchor point="BOTTOMLEFT" relativePoint="TOPLEFT">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
<Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" tile="false">
</Backdrop>
<Scripts>
<OnDragStart>
GrimMMBar_Micromenu_OnDragStart()
</OnDragStart>
<OnDragStop>
GrimmMMBar_Micromenu_OnDragStop()
</OnDragStop>
</Scripts>
</Frame>
</Ui>
\ No newline at end of file