mirror of
https://github.com/Lacustat/Freewood-OctoWoW-Core.git
synced 2026-10-30 08:10:52 +00:00
0.1.149: Lernplan-Symbole/Tooltips, Item-Tooltips, Nachnahme-Anhang (1.12-Form), Brett eigenes Fenster, ClassicAPI-Pruefung, Start-Itemkatalog
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016onJCSHLwhs9udhC9ZLzk9
This commit is contained in:
co-authored by
Claude Sonnet 5.5
parent
8875f7a7d9
commit
a73810d376
@@ -3,7 +3,7 @@
|
||||
## Notes: Base addon of the Freewood family: data storage, UI kit, export/import and the main window.
|
||||
## Notes-deDE: Basis-Addon der Freewood-Familie: Datenspeicher, UI-Bausteine, Export/Import und Hauptfenster.
|
||||
## Author: Lacustat
|
||||
## Version: 0.1.148
|
||||
## Version: 0.1.149
|
||||
## SavedVariables: FreewoodDB
|
||||
## SavedVariablesPerCharacter: FreewoodCharDB
|
||||
|
||||
|
||||
+19
-3
@@ -132,9 +132,25 @@ local function SetupResize()
|
||||
grip:SetSize(18, 18)
|
||||
grip:SetPoint("BOTTOMRIGHT", frame, "BOTTOMRIGHT", -3, 3)
|
||||
grip:SetFrameLevel((frame:GetFrameLevel() or 1) + 30)
|
||||
grip:SetNormalTexture("Interface\\ChatFrame\\UI-ChatIM-SizeGrabber-Up")
|
||||
grip:SetPushedTexture("Interface\\ChatFrame\\UI-ChatIM-SizeGrabber-Down")
|
||||
grip:SetHighlightTexture("Interface\\ChatFrame\\UI-ChatIM-SizeGrabber-Highlight")
|
||||
-- Sichtbarer Griff: sechs Punkte als Dreieck in der Ecke (die Chat-Grafik gibt es auf Octo nicht)
|
||||
local dots = {}
|
||||
local spots = { { 0, 0 }, { 5, 0 }, { 10, 0 }, { 0, 5 }, { 5, 5 }, { 0, 10 } }
|
||||
for i, p in ipairs(spots) do
|
||||
local t = grip:CreateTexture(nil, "OVERLAY")
|
||||
t:SetSize(3, 3)
|
||||
t:SetPoint("BOTTOMRIGHT", grip, "BOTTOMRIGHT", -2 - p[1], 2 + p[2])
|
||||
t:SetColorTexture(UI.Color("gold"))
|
||||
t:SetAlpha(0.75)
|
||||
dots[i] = t
|
||||
end
|
||||
local function Tint(key, alpha)
|
||||
for _, t in ipairs(dots) do
|
||||
t:SetColorTexture(UI.Color(key))
|
||||
t:SetAlpha(alpha)
|
||||
end
|
||||
end
|
||||
grip:SetScript("OnEnter", function() Tint("goldLight", 1) end)
|
||||
grip:SetScript("OnLeave", function() Tint("gold", 0.75) end)
|
||||
grip:SetScript("OnMouseDown", function()
|
||||
local mw, mh = SizeLimits()
|
||||
if frame.SetResizeBounds then
|
||||
|
||||
Reference in New Issue
Block a user