Skip to content

Commit

Permalink
Add rudidmentary version to GUI to visually confirm correct package r…
Browse files Browse the repository at this point in the history
…unning
  • Loading branch information
vrooze committed Sep 29, 2022
1 parent 52c98bf commit 29d884b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ProfessionProfessor.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ ProfessionProfessor = LibStub("AceAddon-3.0"):NewAddon("ProfessionProfessor", "A

prof = ProfessionProfessor

local version = "2.0.0";

local aceGUI = LibStub("AceGUI-3.0")

local allowedTradeskills = {
Expand All @@ -18,6 +20,8 @@ local allowedTradeskills = {

-- AceAddon :OnInitialize()
function prof:OnInitialize()
self.version = version

self.db = LibStub("AceDB-3.0"):New("ProfessionProfessorDB")

-- Console commands
Expand Down Expand Up @@ -139,7 +143,7 @@ function showJson()
-- Create a container frame
local f = aceGUI:Create("Frame")
f:SetCallback("OnClose",function(widget) aceGUI:Release(widget) end)
f:SetTitle("Profession Professor Skill Checker - Export")
f:SetTitle("Profession Professor Skill Checker - Export -- v" .. prof.version)
f:SetLayout("Flow")

local editBox = aceGUI:Create("MultiLineEditBox")
Expand Down

0 comments on commit 29d884b

Please sign in to comment.