wuira 0.1.4 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +102 -1
- package/README.md +347 -0
- package/lib/Spells.d.ts +21 -0
- package/lib/Spells.lua +41 -0
- package/lib/datasources/AuraTimer.d.ts +21 -0
- package/lib/datasources/AuraTimer.lua +322 -0
- package/lib/datasources/CastTimer.d.ts +9 -0
- package/lib/datasources/CastTimer.lua +240 -0
- package/lib/datasources/DataSource.d.ts +4 -0
- package/lib/datasources/DataSource.lua +24 -0
- package/lib/datasources/KnownSpells.d.ts +21 -0
- package/lib/datasources/KnownSpells.lua +794 -0
- package/lib/datasources/ManaRegenTimer.d.ts +29 -0
- package/lib/datasources/ManaRegenTimer.lua +674 -0
- package/lib/datasources/ProgressSource.d.ts +6 -2
- package/lib/datasources/ProgressSource.lua +34 -3
- package/lib/datasources/Resources.d.ts +33 -2
- package/lib/datasources/Resources.lua +562 -10
- package/lib/datasources/SpellCooldown.d.ts +12 -0
- package/lib/datasources/SpellCooldown.lua +218 -0
- package/lib/datasources/SpellSource.d.ts +14 -0
- package/lib/datasources/SpellSource.lua +224 -0
- package/lib/datasources/SwingTimer.d.ts +31 -0
- package/lib/datasources/SwingTimer.lua +641 -0
- package/lib/datasources/TextureSource.d.ts +10 -0
- package/lib/datasources/TextureSource.lua +83 -0
- package/lib/datasources/TimerSource.d.ts +20 -0
- package/lib/datasources/TimerSource.lua +338 -0
- package/lib/datasources/TotemTimer.d.ts +10 -0
- package/lib/datasources/TotemTimer.lua +260 -0
- package/lib/datasources/index.d.ts +16 -1
- package/lib/datasources/index.lua +43 -0
- package/lib/index.d.ts +11 -0
- package/lib/index.lua +24 -0
- package/lib/platform/ActionBars.d.ts +27 -0
- package/lib/platform/ActionBars.lua +726 -0
- package/lib/platform/AddonSettings.d.ts +9 -0
- package/lib/platform/AddonSettings.lua +36 -0
- package/lib/platform/BlizzardUI.d.ts +17 -0
- package/lib/platform/BlizzardUI.lua +689 -0
- package/lib/platform/MicroMenu.d.ts +15 -0
- package/lib/platform/MicroMenu.lua +219 -0
- package/lib/platform/SecureButton.d.ts +5 -0
- package/lib/platform/SecureButton.lua +196 -0
- package/lib/platform/SlashCommands.d.ts +3 -0
- package/lib/platform/SlashCommands.lua +309 -0
- package/lib/platform/forever.d.ts +115 -2
- package/lib/skins/MicroBar.d.ts +8 -0
- package/lib/skins/MicroBar.lua +65 -0
- package/lib/skins/NativeSkin.d.ts +26 -0
- package/lib/skins/NativeSkin.lua +601 -0
- package/lib/skins/index.d.ts +3 -0
- package/lib/skins/index.lua +11 -0
- package/lib/store/index.lua +13 -0
- package/lib/ui/Button.d.ts +10 -0
- package/lib/ui/Button.lua +9 -0
- package/lib/ui/Cell.d.ts +7 -1
- package/lib/ui/FrameMover.d.ts +21 -0
- package/lib/ui/FrameMover.lua +123 -0
- package/lib/ui/HoverTracker.d.ts +20 -0
- package/lib/ui/HoverTracker.lua +88 -0
- package/lib/ui/Icon.d.ts +8 -0
- package/lib/ui/Icon.lua +8 -0
- package/lib/ui/KeybindCapture.d.ts +20 -0
- package/lib/ui/KeybindCapture.lua +488 -0
- package/lib/ui/Label.d.ts +10 -0
- package/lib/ui/Label.lua +8 -0
- package/lib/ui/ProgressBar.d.ts +5 -1
- package/lib/ui/SecureButton.d.ts +44 -0
- package/lib/ui/SecureButton.lua +9 -0
- package/lib/ui/index.d.ts +13 -0
- package/lib/ui/index.lua +28 -0
- package/lib/ui/layout/measureLayout.lua +11 -2
- package/lib/ui/mount.lua +679 -74
- package/lib/ui/primitives/jsx.d.ts +15 -2
- package/lib/wuira.d.ts +3 -0
- package/lib/wuira.lua +5 -0
- package/package.json +8 -1
- package/tools/build-library.mjs +1 -1
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Cell } from "../ui/Cell";
|
|
2
|
+
/** Registers a JSX settings view in the client's native addon settings list. */
|
|
3
|
+
export declare class AddonSettings {
|
|
4
|
+
readonly Frame: wuiraNativeFrame;
|
|
5
|
+
private readonly category;
|
|
6
|
+
constructor(name: string, view: Cell | (() => Cell | void));
|
|
7
|
+
Open(): void;
|
|
8
|
+
Close(): void;
|
|
9
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
|
+
-- Lua Library inline imports
|
|
3
|
+
local function __TS__Class(self)
|
|
4
|
+
local c = {prototype = {}}
|
|
5
|
+
c.prototype.__index = c.prototype
|
|
6
|
+
c.prototype.constructor = c
|
|
7
|
+
return c
|
|
8
|
+
end
|
|
9
|
+
-- End of Lua Library inline imports
|
|
10
|
+
local ____exports = {}
|
|
11
|
+
local ____wuira = require("wuira")
|
|
12
|
+
local wuira = ____wuira.wuira
|
|
13
|
+
--- Registers a JSX settings view in the client's native addon settings list.
|
|
14
|
+
____exports.AddonSettings = __TS__Class()
|
|
15
|
+
local AddonSettings = ____exports.AddonSettings
|
|
16
|
+
AddonSettings.name = "AddonSettings"
|
|
17
|
+
function AddonSettings.prototype.____constructor(self, name, view)
|
|
18
|
+
if (Settings and Settings.RegisterCanvasLayoutCategory) == nil then
|
|
19
|
+
error("AddonSettings: native settings API is unavailable")
|
|
20
|
+
end
|
|
21
|
+
self.Frame = CreateFrame("Frame", nil, UIParent)
|
|
22
|
+
self.Frame:Hide()
|
|
23
|
+
wuira:Mount(view, nil, self.Frame)
|
|
24
|
+
self.category = Settings.RegisterCanvasLayoutCategory(self.Frame, name)
|
|
25
|
+
Settings.RegisterAddOnCategory(self.category)
|
|
26
|
+
end
|
|
27
|
+
function AddonSettings.prototype.Open(self)
|
|
28
|
+
Settings.OpenToCategory(self.category:GetID())
|
|
29
|
+
end
|
|
30
|
+
function AddonSettings.prototype.Close(self)
|
|
31
|
+
local ____opt_2 = _G.SettingsPanel
|
|
32
|
+
if ____opt_2 ~= nil then
|
|
33
|
+
____opt_2:Hide()
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
return ____exports
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { MicroMenuSkinOptions } from "./MicroMenu";
|
|
2
|
+
export interface BlizzardUIOptions {
|
|
3
|
+
actionBars?: boolean;
|
|
4
|
+
player?: boolean;
|
|
5
|
+
target?: boolean;
|
|
6
|
+
focus?: boolean;
|
|
7
|
+
}
|
|
8
|
+
/** Opt-in stock UI visibility. Native buttons, bindings and event handlers remain intact. */
|
|
9
|
+
export declare class BlizzardUI {
|
|
10
|
+
private constructor();
|
|
11
|
+
/** Style native micro-menu buttons. Reload restores their original textures. */
|
|
12
|
+
static SkinMicroMenu(options?: MicroMenuSkinOptions): () => void;
|
|
13
|
+
/** Disable stock action-bar event/update paths. Restoring their scripts requires reload. */
|
|
14
|
+
static DisableActionBars(): () => void;
|
|
15
|
+
/** Returns a restore function; protected changes wait until combat ends. */
|
|
16
|
+
static Hide(options: BlizzardUIOptions): () => void;
|
|
17
|
+
}
|