You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We take the "type" `Frame` and the name `WorldMapFrame`
10
+
11
+
```lua
12
+
---@meta _
13
+
14
+
---@classWorldMapFrame:Frame
15
+
localWorldMapFrame= {}
16
+
```
17
+
18
+
Bonus:
19
+
20
+
We should create a inheritence tree to look for any `mixin=".*?"`
21
+
22
+
For example:
23
+
```xml
24
+
<Framename="WorldMapFrame"inherits="WorldMapFrameTemplate"parent="UIParent"ignoreParentScale="true"frameBuffer="true"> <!-- This is a real frame that inherits a virtual frame -->
25
+
26
+
<Framename="WorldMapFrameTemplate"inherits="MapCanvasFrameTemplate"mixin="WorldMapMixin"virtual="true"> <!-- This is virtual so it is not actually a frame but can be used as a template so "not a global" -->
27
+
<!-- PS. the "inherits can contain mulitple frames for example `inherits="Template1, Template2"`
28
+
```
29
+
30
+
```lua
31
+
---@meta _
32
+
33
+
---@class WorldMapFrame : Frame, WorldMapMixin
34
+
local WorldMapFrame = {}
35
+
36
+
```
37
+
38
+
It should be fully recursive parsing all trees and mixing them into one big inheritance if they exist.
0 commit comments