Unify all option panels through MTH_Layout engine

Add reusable MTH_Layout box/column layout engine (api/options-layout.lua) and route every option panel through it (shell, general, zButtons per-button config, zBar, chronometer, auto buy, profiles, credits, etc.) for consistent, auto-sizing layout. Restore realm gate. README note.
This commit is contained in:
DuvelCorp
2026-09-10 23:59:37 +02:00
parent adb21c336c
commit ccf9d8b0b6
16 changed files with 1770 additions and 1861 deletions
-18
View File
@@ -1,23 +1,5 @@
-- MetaHunt: auto-train Growl to a freshly tamed pet.
--
-- Growl is a "trainer" pet ability (Growl / Great Stamina / Natural Armor /
-- Great Resistance) that the hunter learns from a Pet Trainer NPC and then
-- teaches to the active pet through the always-available BEAST TRAINING window
-- (a spellbook-like hunter spell, no NPC required). Growl specifically costs
-- 0 training points, so it can always be taught to a brand-new pet.
--
-- The Beast Training window is driven by the vanilla Craft API:
-- GetNumCrafts() -> number of rows
-- GetCraftInfo(i) -> name, rankSubText, type, ...
-- DoCraft(i) -> trains that row (the "Select + Train" action)
-- CloseCraft() -> closes the window
--
-- The correct Growl rank is a function of the pet's level:
-- rank = floor(level / 10) + 1 (ranks 1..7, at pet levels 1/10/.../60)
--
-- Flow on a confirmed fresh tame (when enabled): compute the target rank, open
-- the Beast Training window, find the Growl row at that rank once the craft list
-- populates, DoCraft() it silently, then close the window if we opened it.
local MTH_GROWL_MAX_RANK = 7