Skip to content

Commit

Permalink
Add Framerate to sui move
Browse files Browse the repository at this point in the history
  • Loading branch information
Wutname1 committed Jul 11, 2023
1 parent 14c5374 commit e509be3
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 16 deletions.
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,8 @@
"SecureButton_GetUnit",
"SecureButton_GetModifiedUnit",
"SecureHandlerSetFrameRef",
"IsLoggedIn"
"IsLoggedIn",
"FramerateFrame"
],
"Lua.workspace.ignoreDir": [".vscode", "libs/*"],
"Lua.diagnostics.enable": true,
Expand Down
1 change: 1 addition & 0 deletions Core/Framework.lua
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ local DBdefault = {
['BossButton'] = 'BOTTOM,SpartanUI,BOTTOM,0,210',
['AlertFrame'] = 'BOTTOM,SpartanUI,BOTTOM,0,215',
['VehicleLeaveButton'] = 'BOTTOM,SpartanUI,BOTTOM,0,180',
['FramerateFrame'] = 'BOTTOM,SpartanUI,BOTTOM,0,210',
},
Color = {
Art = false,
Expand Down
8 changes: 8 additions & 0 deletions Modules/Artwork/BlizzMovers.lua
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,13 @@ local function AbilityBars()
MoveIt:CreateMover(BossButtonHolder, 'BossButton', 'Extra action button', nil, 'Blizzard UI')
end

local function FramerateFrame()
local holder = GenerateHolder('FramerateFrame')
holder:SetSize(64, 20)
AttachToHolder(_G['FramerateFrame'], holder)
MoveIt:CreateMover(holder, 'FramerateFrame', 'Framerate frame', nil, 'Blizzard UI')
end

local function AlertFrame()
local holder = GenerateHolder('AlertFrame')

Expand Down Expand Up @@ -217,6 +224,7 @@ end

-- This is the main inpoint
function module.BlizzMovers()
FramerateFrame()
AbilityBars()
AlertFrame()
DurabilityFrame()
Expand Down
3 changes: 0 additions & 3 deletions Themes/Arcane/Style.lua
Original file line number Diff line number Diff line change
Expand Up @@ -207,9 +207,6 @@ function module:CreateArtwork()
plate.BG3:SetPoint('BOTTOMLEFT', plate, 'BOTTOM', 110, 70)
plate.BG4:SetPoint('BOTTOMLEFT', plate, 'BOTTOM', 110, 25)

FramerateText:ClearAllPoints()
FramerateText:SetPoint('TOPLEFT', SpartanUI, 'TOPLEFT', 10, -10)

--Setup the Bottom Artwork
artFrame:SetFrameStrata('BACKGROUND')
artFrame:SetFrameLevel(1)
Expand Down
3 changes: 0 additions & 3 deletions Themes/Digital/Style.lua
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,6 @@ function module:CreateArtwork()
artFrame.Right:SetPoint('BOTTOMLEFT', artFrame, 'BOTTOM')
artFrame.Right:SetTexture('Interface\\AddOns\\SpartanUI\\Themes\\Digital\\Images\\Base_Bar_Right')
-- artFrame.Right:SetScale(.75)

FramerateText:ClearAllPoints()
FramerateText:SetPoint('TOPLEFT', SpartanUI, 'TOPLEFT', 10, -10)
end

function module:EnableArtwork()
Expand Down
3 changes: 0 additions & 3 deletions Themes/Fel/Style.lua
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,6 @@ function module:CreateArtwork()
artFrame.Right = artFrame:CreateTexture('SUI_Art_Fel_Right', 'BORDER')
artFrame.Right:SetPoint('BOTTOMLEFT', artFrame, 'BOTTOM')
artFrame.Right:SetTexture('Interface\\AddOns\\SpartanUI\\Themes\\Fel\\Images\\Base_Bar_Right')

FramerateText:ClearAllPoints()
FramerateText:SetPoint('TOPLEFT', SpartanUI, 'TOPLEFT', 10, -10)
end

function module:EnableArtwork()
Expand Down
3 changes: 0 additions & 3 deletions Themes/Tribal/Style.lua
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,6 @@ function module:CreateArtwork()
plate.BG3:SetPoint('BOTTOMLEFT', plate, 'BOTTOM', 110, 70)
plate.BG4:SetPoint('BOTTOMLEFT', plate, 'BOTTOM', 110, 25)

FramerateText:ClearAllPoints()
FramerateText:SetPoint('TOPLEFT', SpartanUI, 'TOPLEFT', 10, -10)

--Setup the Bottom Artwork
artFrame:SetFrameStrata('BACKGROUND')
artFrame:SetFrameLevel(1)
Expand Down
3 changes: 0 additions & 3 deletions Themes/War/Style.lua
Original file line number Diff line number Diff line change
Expand Up @@ -193,9 +193,6 @@ function module:CreateArtwork()
plate.BG3:SetPoint('BOTTOMLEFT', plate, 'BOTTOM', 110, 70)
plate.BG4:SetPoint('BOTTOMLEFT', plate, 'BOTTOM', 110, 25)

FramerateText:ClearAllPoints()
FramerateText:SetPoint('TOPLEFT', SpartanUI, 'TOPLEFT', 10, -10)

--Setup the Bottom Artwork
artFrame:SetFrameStrata('BACKGROUND')
artFrame:SetFrameLevel(1)
Expand Down
Binary file added images/UI-Button.tga
Binary file not shown.

0 comments on commit e509be3

Please sign in to comment.