Skip to content

Commit

Permalink
cleanup and small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Hoizame committed Jul 2, 2019
1 parent ba1619f commit f6d8272
Show file tree
Hide file tree
Showing 44 changed files with 20,074 additions and 1,913 deletions.
19,452 changes: 19,452 additions & 0 deletions .luacheckrc

Large diffs are not rendered by default.

22 changes: 11 additions & 11 deletions AtlasLootClassic/Addons/Search.lua
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ local function FrameOnDragStop(self)
end

local function FrameOnShow(self)

end

function Search:Open()
if not Search.GUI then
local frameName = "AtlasLoot_Search-Frame"

local frame = CreateFrame("Frame", frameName)
frame:ClearAllPoints()
frame:SetParent(UIParent)
Expand All @@ -53,38 +53,38 @@ function Search:Open()
frame:SetToplevel(true)
frame:SetClampedToScreen(true)
frame:SetBackdrop({bgFile = "Interface/Tooltips/UI-Tooltip-Background",
edgeFile = "Interface/Tooltips/UI-Tooltip-Border",
tile = true, tileSize = 16, edgeSize = 16,
edgeFile = "Interface/Tooltips/UI-Tooltip-Border",
tile = true, tileSize = 16, edgeSize = 16,
insets = { left = 4, right = 4, top = 4, bottom = 4 }})
frame:SetBackdropColor(1,1,1,1)
frame:Hide()
tinsert(UISpecialFrames, frameName) -- allow ESC close

frame.CloseButton = CreateFrame("Button", frameName.."-CloseButton", frame, "UIPanelCloseButton")
frame.CloseButton:SetPoint("TOPRIGHT", frame, "TOPRIGHT")

frame.Title = frame:CreateFontString(nil, "ARTWORK", "GameFontNormal")
frame.Title:SetPoint("TOP", frame, "TOP", 0, -10)
frame.Title:SetText(AL["AtlasLoot Search"])

frame.NameBox = CreateFrame("EditBox", frameName.."-NameBox", frame, "SearchBoxTemplate")
frame.NameBox:SetPoint("TOPLEFT", frame, "TOPLEFT", 15, -20)
frame.NameBox:SetWidth(250)
frame.NameBox:SetHeight(35)
frame.NameBox:SetAutoFocus(false)
--frame.NameBox:SetTextInsets(0, 8, 0, 0)
frame.NameBox:SetMaxLetters(100)
frame.NameBox:SetScript("OnEnterPressed",function(self)
frame.NameBox:SetScript("OnEnterPressed",function(self)
print(frame.NameBox:GetText())
frame.NameBox:ClearFocus()
end)


Search.GUI = frame
elseif Search.GUI:IsShown() then
Search.GUI:Hide()
return
end

Search.GUI:Show()
end
11 changes: 7 additions & 4 deletions AtlasLootClassic/AtlasLoot.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@
-- Functions
local _G = getfenv(0)

-- Libraries
-- lua
local assert, type, pairs, next = assert, type, pairs, next
local wipe = wipe

-- wow
local CreateFrame = CreateFrame
-- ----------------------------------------------------------------------------
-- AddOn namespace.
-- ----------------------------------------------------------------------------
Expand Down Expand Up @@ -56,8 +59,8 @@ function AtlasLoot:OnInitialize()
end

self.db = ALDB:Register(AtlasLootClassicCharDB, AtlasLootClassicDB, AtlasLoot.AtlasLootDBDefaults)


-- bindings
BINDING_HEADER_ATLASLOOT = AL["AtlasLoot"]
BINDING_NAME_ATLASLOOT_TOGGLE = AL["Toggle AtlasLoot"]
Expand Down Expand Up @@ -139,7 +142,7 @@ function AtlasLoot:AutoSelect()
end
if (dataID) then break end
end
if (refresh and (o_moduleName ~= moduleName or o_dataID ~= dataID)) then
AtlasLoot.GUI.frame.moduleSelect:SetSelected(moduleName)
AtlasLoot.GUI.frame.subCatSelect:SetSelected(dataID)
Expand Down
2 changes: 0 additions & 2 deletions AtlasLootClassic/AtlasLootClassic.toc
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,5 @@ GUI\Template_Model.lua
GUI\ItemFrame.lua
GUI\ModelFrame.lua
GUI\SoundFrame.lua
GUI\QuickLootFrame.lua
GUI\SetViewFrame.lua

Addons\Addons.lua
Loading

0 comments on commit f6d8272

Please sign in to comment.