some stuff

This commit is contained in:
Sattva
2023-08-06 16:00:04 +03:00
parent 0954580d7b
commit 57182ba440
3 changed files with 234 additions and 114 deletions
+8
View File
@@ -1 +1,9 @@
desktop.ini
/.idea/.gitignore
/.idea/discord.xml
/.idea/icon.svg
/.idea/Leatrix_Plus.iml
/.idea/misc.xml
/.idea/modules.xml
/unitscan.blp
/.idea/vcs.xml
+19
View File
@@ -33,6 +33,12 @@ SlashCommand - /ltp neeeds to be fixed, not working at all.
GUI - FIX the width for long strings https://cdn.discordapp.com/attachments/766767499987386402/1119067878885437531/wow_otLn4jPKyo.jpg
Tooltip - FIX center popup when closed the leatrix window, its still staying...
WebLink - Fix ruRU encoding!!!
Minimap - Move the zone text overlapping the mail icon
--------------------------------------------------------------------------------
-- What needs to be tested:
@@ -164,3 +170,16 @@ QueueTimer - add LFG timer.
QueueTimer - add user option to disable sound.
Core - Fix ToggleZygor function
BagSearch - if item is clicked then remove focus from search
FasterLoot - add "lightweight" version of faster loot, in case someone doesn't want fastest version or it doesnt work properly on his server.
NPCLink - need to retrieve mob id by mouseover tooltip
A feature that would automatically show you the location of the nearest flight master.
A feature that would automatically show you the location of the nearest mailbox.
Right Click totems to destroy them
Show best gold value for quest reward.
+102 -9
View File
@@ -158,7 +158,7 @@
-- Add feedback label
eFrame.x = eFrame:CreateFontString(nil, 'ARTWORK', 'GameFontNormalLarge')
eFrame.x:SetPoint("TOPRIGHT", x, y)
eFrame.x:SetText("|cff00ff00Feedback Discord:|r |cffadd8e6Sattva#7238|r")
eFrame.x:SetText("|cff00ff00Feedback Discord:|r |cffadd8e6sattva108|r")
eFrame.x:SetPoint("TOPRIGHT", eFrame, "TOPRIGHT", -12, -52)
hooksecurefunc(eFrame.f, "SetText", function()
@@ -4062,7 +4062,7 @@
-- First, we create a new frame to hold all the minimap buttons.
local minimapFrame = CreateFrame("Frame", "Leatrix_ButtonGrabber", UIParent)
minimapFrame:SetSize(1, 1)
minimapFrame:SetPoint("BOTTOMRIGHT", Minimap, "BOTTOMLEFT", -2, -1)
minimapFrame:SetPoint("BOTTOMRIGHT", Minimap, "BOTTOMLEFT", -2, -1.2)
minimapFrame:SetBackdrop({
bgFile = "Interface\\Tooltips\\UI-Tooltip-Background",
edgeFile = "Interface\\DialogFrame\\UI-DialogBox-Background-Dark",
@@ -4349,6 +4349,98 @@
--------------------------------------------------------------------------------
-- Some code for testing - adds buttons to minimap
--------------------------------------------------------------------------------
-- -- Load the libraries required for button creation.
-- local LibDataBroker = LibStub:GetLibrary("LibDataBroker-1.1")
-- local LibDBIcon = LibStub:GetLibrary("LibDBIcon-1.0")
-- --===== Button 1 =====--
-- -- Create the data broker objects for the custom buttons.
-- local button1 = LibDataBroker:NewDataObject("Button1", {
-- type = "launcher",
-- icon = "Interface\\Icons\\inv_enchant_dustillusion",
-- })
-- -- Register the data broker objects with LibDBIcon to create minimap buttons.
-- LibDBIcon:Register("Button1", button1, {
-- icon = "Interface\\Icons\\inv_enchant_dustillusion",
-- })
-- --===== Button 2 =====--
-- local button2 = LibDataBroker:NewDataObject("Button2", {
-- type = "launcher",
-- icon = "Interface\\Icons\\spell_holy_prayerofhealing02",
-- })
-- LibDBIcon:Register("Button2", button2, {
-- icon = "Interface\\Icons\\spell_holy_prayerofhealing02",
-- })
-- --===== Button 3 =====--
-- local button3 = LibDataBroker:NewDataObject("Button3", {
-- type = "launcher",
-- icon = "Interface\\Icons\\spell_nature_earthquake",
-- })
-- LibDBIcon:Register("Button3", button3, {
-- icon = "Interface\\Icons\\spell_nature_earthquake",
-- })
-- --===== Button 4 =====--
-- local button4 = LibDataBroker:NewDataObject("Button4", {
-- type = "launcher",
-- icon = "Interface\\Icons\\inv_misc_summerfest_braziergreen",
-- })
-- LibDBIcon:Register("Button4", button4, {
-- icon = "Interface\\Icons\\inv_misc_summerfest_braziergreen",
-- })
-- --===== Button 5 =====--
-- local button5 = LibDataBroker:NewDataObject("Button5", {
-- type = "launcher",
-- icon = "Interface\\Icons\\inv_misc_toy_02",
-- })
-- LibDBIcon:Register("Button5", button5, {
-- icon = "Interface\\Icons\\inv_misc_toy_02",
-- })
-- --===== Button 6 =====--
-- local button6 = LibDataBroker:NewDataObject("Button6", {
-- type = "launcher",
-- icon = "Interface\\Icons\\inv_misc_toy_02",
-- })
-- LibDBIcon:Register("Button6", button6, {
-- icon = "Interface\\Icons\\inv_misc_toy_02",
-- })
--------------------------------------------------------------------------------
-- End of Testing Buttons
--------------------------------------------------------------------------------
-- -- Create button frame (parenting to cluster ensures bFrame scales correctly)
@@ -9004,7 +9096,8 @@
--===== Function to re-enable button layers =====--
function Leatrix_EnableAllBagLayers()
for bag=0, NUM_BAG_SLOTS do
for i=1, _G["ContainerFrame"..(bag+1)].size do
-- made it "or 0" because seems that if interact with vendor without first opening bag "_G["ContainerFrame"..(bag+1)].size" is nil.
for i=1, (_G["ContainerFrame"..(bag+1)].size or 0) do
local itemButton = _G["ContainerFrame"..(bag+1).."Item"..i]
if itemButton then
itemButton:EnableDrawLayer("BORDER")
@@ -12614,17 +12707,17 @@
maintitle:ClearAllPoints()
maintitle:SetPoint("TOP", 0, -72)
local expTitle = LeaPlusLC:MakeTx(interPanel, "Wrath of the Lich King Classic", 0, 0)
local expTitle = LeaPlusLC:MakeTx(interPanel, "Wrath of the Lich King 3.3.5", 0, 0)
expTitle:SetFont(expTitle:GetFont(), 32)
expTitle:ClearAllPoints()
expTitle:SetPoint("TOP", 0, -152)
local subTitle = LeaPlusLC:MakeTx(interPanel, "www.leatrix.com", 0, 0)
local subTitle = LeaPlusLC:MakeTx(interPanel, "Feedback Discord: sattva108", 0, 0)
subTitle:SetFont(subTitle:GetFont(), 20)
subTitle:ClearAllPoints()
subTitle:SetPoint("BOTTOM", 0, 72)
local slashTitle = LeaPlusLC:MakeTx(interPanel, "/run leaplus()", 0, 0)
local slashTitle = LeaPlusLC:MakeTx(interPanel, "/ltp help", 0, 0)
slashTitle:SetFont(slashTitle:GetFont(), 72)
slashTitle:ClearAllPoints()
slashTitle:SetPoint("BOTTOM", subTitle, "TOP", 0, 40)
@@ -14886,10 +14979,10 @@
-- Set skinned button textures
if not naked then
mbtn:SetNormalTexture("Interface\\AddOns\\Leatrix_Plus\\Leatrix_Plus.blp")
mbtn:SetNormalTexture("Interface\\AddOns\\Leatrix_Plus\\LeatrixPlus.blp")
mbtn:GetNormalTexture():SetTexCoord(0.125, 0.25, 0.4375, 0.5)
end
mbtn:SetHighlightTexture("Interface\\AddOns\\Leatrix_Plus\\Leatrix_Plus.blp")
mbtn:SetHighlightTexture("Interface\\AddOns\\Leatrix_Plus\\LeatrixPlus.blp")
mbtn:GetHighlightTexture():SetTexCoord(0, 0.125, 0.4375, 0.5)
-- Hide the default textures
@@ -16774,7 +16867,7 @@
LeaPlusLC:MakeWD(LeaPlusLC[pg], "To begin, choose an options page.", 146, -92);
LeaPlusLC:MakeTx(LeaPlusLC[pg], "Support", 146, -132);
LeaPlusLC:MakeWD(LeaPlusLC[pg], "|cff00ff00Feedback Discord:|r |cffadd8e6Sattva#7238|r", 146, -152);
LeaPlusLC:MakeWD(LeaPlusLC[pg], "|cff00ff00Feedback Discord:|r |cffadd8e6sattva108|r", 146, -152);
----------------------------------------------------------------------
-- LC1: Automation