add player money frame
This commit is contained in:
@@ -63,5 +63,14 @@ function handle.INIT_UI()
|
||||
btn:SetScript('OnClick',function()
|
||||
if AuctionFrame:IsVisible() then HideUIPanel(AuctionFrame) else ShowUIPanel(AuctionFrame) end
|
||||
end)
|
||||
local money_frame = CreateFrame('Frame', '$parentMoneyFrame', aux_frame.content, 'SmallMoneyFrameTemplate')
|
||||
money_frame:SetPoint('RIGHT', btn, 'LEFT', 5, 0)
|
||||
money_frame:SetToplevel()
|
||||
if gui.is_blizzard() then
|
||||
local texture = aux_frame.content:CreateTexture(nil, 'ARTWORK')
|
||||
gui.set_size(texture, 145, 34)
|
||||
texture:SetTexture('Interface\\MoneyFrame\\UI-MONEYFRAME-BORDER')
|
||||
texture:SetPoint('TOPRIGHT', money_frame, -6, 4)
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -40,7 +40,7 @@ function aux.handle.INIT_UI()
|
||||
|
||||
do
|
||||
status_bar = gui.status_bar(frame)
|
||||
status_bar:SetWidth(265)
|
||||
status_bar:SetWidth(210)
|
||||
status_bar:SetHeight(25)
|
||||
status_bar:SetPoint('TOPLEFT', aux.frame.content, 'BOTTOMLEFT', 0, -6)
|
||||
status_bar:update_status(1, 1)
|
||||
|
||||
+1
-1
@@ -42,7 +42,7 @@ function aux.handle.INIT_UI()
|
||||
|
||||
do
|
||||
status_bar = gui.status_bar(frame)
|
||||
status_bar:SetWidth(265)
|
||||
status_bar:SetWidth(210)
|
||||
status_bar:SetHeight(25)
|
||||
status_bar:SetPoint('TOPLEFT', aux.frame.content, 'BOTTOMLEFT', 0, -6)
|
||||
status_bar:update_status(1, 0)
|
||||
|
||||
+1
-1
@@ -125,7 +125,7 @@ function aux.handle.INIT_UI()
|
||||
|
||||
do
|
||||
status_bar = gui.status_bar(frame)
|
||||
status_bar:SetWidth(265)
|
||||
status_bar:SetWidth(210)
|
||||
status_bar:SetHeight(25)
|
||||
status_bar:SetPoint('TOPLEFT', aux.frame.content, 'BOTTOMLEFT', 0, -6)
|
||||
status_bar:update_status(1, 1)
|
||||
|
||||
@@ -213,7 +213,7 @@ function aux.handle.INIT_UI()
|
||||
end
|
||||
do
|
||||
local frame = CreateFrame('Frame', nil, frame)
|
||||
frame:SetWidth(265)
|
||||
frame:SetWidth(210)
|
||||
frame:SetHeight(25)
|
||||
frame:SetPoint('TOPLEFT', aux.frame.content, 'BOTTOMLEFT', 0, -6)
|
||||
status_bar_frame = frame
|
||||
|
||||
Reference in New Issue
Block a user