Skip to content

Commit

Permalink
Cleanup and icon
Browse files Browse the repository at this point in the history
  • Loading branch information
LorenzoRogai committed Sep 1, 2024
1 parent 6f3afec commit 90b8c3e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
9 changes: 4 additions & 5 deletions RepHub.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
local RepHub = LibStub("AceAddon-3.0"):NewAddon("RepHub")
local AceGUI = LibStub("AceGUI-3.0")
local RepHubLDB = LibStub("LibDataBroker-1.1"):NewDataObject("RepHub", {
local LibDataBroker = LibStub("LibDataBroker-1.1"):NewDataObject("RepHub", {
type = "data source",
text = "RepHub",
icon = "Interface\\Icons\\Achievement_Reputation_01",
Expand All @@ -15,7 +15,6 @@ local LibDBIcon = LibStub("LibDBIcon-1.0")
local RepHubFrameShown = false

function RepHub:OnInitialize()
-- Assuming you have a ## SavedVariables: RepHubDB line in your TOC
self.db = LibStub("AceDB-3.0"):New("RepHubDB", {
profile = {
minimap = {
Expand All @@ -26,7 +25,7 @@ function RepHub:OnInitialize()
ReputationList = {},
},
})
LibDBIcon:Register("RepHub", RepHubLDB, self.db.profile.minimap)
LibDBIcon:Register("RepHub", LibDataBroker, self.db.profile.minimap)
RepHub:RefreshReputationGlobalDB()
end

Expand Down Expand Up @@ -101,8 +100,8 @@ function RepHub:ShowRepHubFrame()
)

local ScrollingTable = LibStub("ScrollingTable")
local Table = ScrollingTable:CreateST(columnsArr, 27, nil, nil, RepHubFrame.frame)
Table:SetData(dataArr, true)
local RepHubTable = ScrollingTable:CreateST(columnsArr, 27, nil, nil, RepHubFrame.frame)
RepHubTable:SetData(dataArr, true)

RepHubFrameShown = true
end
3 changes: 2 additions & 1 deletion RepHub.toc
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
## Interface: 110002
## Title: RepHub
## Description: RepHub is a simple account-wide reputation tracker
## Author: Alwayspizza
## Author: lorigio
## SavedVariables: RepHubDB
## IconTexture: Interface\Icons\Achievement_Reputation_01
## X-Curse-Project-ID: 1094884

Libs.xml
Expand Down

0 comments on commit 90b8c3e

Please sign in to comment.