mirror of
https://codeberg.org/Duvelcorp/MetaHunt.git
synced 2026-09-27 10:06:17 +00:00
Animations: add option-tab fade, minimap pulse, zButton expand fade, map-pin drop-in; wire BeastTraining debug log to /mth err
This commit is contained in:
@@ -29,6 +29,15 @@ MTH_Map = {
|
||||
minimapTickIdle = 0.75,
|
||||
}
|
||||
|
||||
-- Capture our PizzaSauce instance for the world map pin drop-in (guarded; may be nil).
|
||||
local MTH_MAP_Sauce = PizzaSauce
|
||||
local function MTH_Map_AnimatePin(pin)
|
||||
if not MTH_MAP_Sauce or not pin then return end
|
||||
if type(MTH_FX_IsEnabled) == "function" and not MTH_FX_IsEnabled("ui.mappins") then return end
|
||||
if type(pin.SetAlpha) == "function" then pin:SetAlpha(0) end
|
||||
MTH_MAP_Sauce:FadeIn(pin, 0.3)
|
||||
end
|
||||
|
||||
local MTH_MAP_MINIMAP_ZOOM = {
|
||||
[0] = { [0] = 300, [1] = 240, [2] = 180, [3] = 120, [4] = 80, [5] = 50 },
|
||||
[1] = { [0] = 466 + 2/3, [1] = 400, [2] = 333 + 1/3, [3] = 266 + 2/6, [4] = 200, [5] = 133 + 1/3 },
|
||||
@@ -1041,6 +1050,7 @@ function MTH_Map:UpdateWorldMap()
|
||||
pin:ClearAllPoints()
|
||||
pin:SetPoint("CENTER", worldButton, "TOPLEFT", x, -y)
|
||||
pin:Show()
|
||||
MTH_Map_AnimatePin(pin)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user