vanilla-wow-addons – Blame information for rev 1

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 office 1 -- OPTION TYPES
2 -- 1 - editbox
3 -- 2 - drop-menu
4 -- 3 - scroll-menu
5 -- 4 - slider
6 -- 5 - checkbox
7 -- 6 - color
8 -- 7 - plus/minus box
9  
10 DFM_METHODS_LIST = {
11 { method="SetParent",
12 help = "Sets parent frame of this frame. It will inherit alpha, scale, and visible/hidden settings from that frame.",
13 options={ {name="Parent", option=1, default="UIParent"} },
14 detection="GetParent" },
15 { method="SetFrameStrata",
16 help = "Sets strata of the frame. Frames in higher stratas display above those in lower stratas.",
17 options={ {name="FrameStrata", option=2, table="DL_FRAMESTRATAS", default="LOW"} },
18 detection="GetFrameStrata" },
19 { method="SetFrameLevel",
20 help = "Sets the level of the frame within the strata. Frames with a higher level displays above those with a lower level. However, FontString and Texture display are unaffected by level.",
21 options={ {name="FrameLevel", option=7, default=1} },
22 detection="GetFrameLevel" },
23 { method="SetHeight",
24 options={ {name="Height", option=4, default=100, min=1, max=300, minlock=true} },
25 detection="GetHeight" },
26 { method="SetWidth",
27 options={ {name="Width", option=4, default=100, min=1, max=300, minlock=true} },
28 detection="GetWidth" },
29 { method="SetScale",
30 options={ {name="Scale", option=4, default=1, min=1, max=200, scale=100, minlock=true, maxlock=true} },
31 detection="GetScale" },
32 { method="SetTexture",
33 options={ {name="Texture", option=3, table="DL_TEXTURES_LIST"} },
34 detection="GetTexture" },
35 { method="SetStatusBarTexture",
36 options={ {name="StatusBarTexture", option=3, table="DL_TEXTURES_LIST"} },
37 detection = "GetStatusBarTexture"
38 },
39 { method="SetCheckedTexture",
40 options={ {name="CheckedTexture", option=3, table="DL_TEXTURES_LIST"} } },
41 { method="SetDisabledCheckedTexture",
42 options={ {name="DisabledCheckedTexture", option=3, table="DL_TEXTURES_LIST"} } },
43 { method="SetDisabledTexture",
44 options={ {name="DisabledTexture", option=3, table="DL_TEXTURES_LIST"} } },
45 { method="SetHighlightTexture",
46 options={ {name="HighlightTexture", option=3, table="DL_TEXTURES_LIST"} } },
47 { method="SetNormalTexture",
48 options={ {name="NormalTexture", option=3, table="DL_TEXTURES_LIST"} } },
49 { method="SetPushedTexture",
50 options={ {name="PushedTexture", option=3, table="DL_TEXTURES_LIST"} } },
51 { method="SetTexCoord",
52 help = "Specifies a subsection of the texture file to use.",
53 options={
54 {name="UpperLeftX", option=7, default=0, step=.1, step2=.01, step3=.001},
55 {name="UpperLeftY", option=7, default=0, step=.1, step2=.01, step3=.001},
56 {name="LowerLeftX", option=7, default=0, step=.1, step2=.01, step3=.001},
57 {name="LowerLeftY", option=7, default=1, step=.1, step2=.01, step3=.001},
58 {name="UpperRightX", option=7, default=1, step=.1, step2=.01, step3=.001},
59 {name="UpperRightY", option=7, default=0, step=.1, step2=.01, step3=.001},
60 {name="LowerRightX", option=7, default=1, step=.1, step2=.01, step3=.001},
61 {name="LowerRightY", option=7, default=1, step=.1, step2=.01, step3=.001},
62 }
63 },
64 { method="SetText",
65 options={ {name="Text", option=1, default=""} },
66 detection="GetText" },
67 { method="SetFont",
68 options={
69 {name="Font", option=3, table="DL_FONTS_LIST", default="Fonts\\Arial.ttf"},
70 {name="FontHeight", option=4, min=1, max=30, default=12, minlock=true}
71 },
72 detection = "GetFont"
73 },
74 { method="SetBackdrop",
75 help = "These are settings for a background that appears behind the frame.",
76 options={
77 {name="BGTexture", option=3, default="Interface\\AddOns\\DiscordLibrary\\PlainBackdrop", table="DL_TEXTURES_LIST" },
78 {name="BorderTexture", option=3, default="Interface\\AddOns\\DiscordLibrary\\PlainBackdrop", table="DL_EDGE_FILES"},
79 {name="Tile", option=5},
80 {name="TileSize", option=4, default=32, min=1, max=100, minlock=true},
81 {name="EdgeSize", option=4, default=16, min=1, max=100, minlock=true},
82 {name="LeftInset", option=4, default=5, min=1, max=50, minlock=true},
83 {name="RightInset", option=4, default=5, min=1, max=50, minlock=true},
84 {name="TopInset", option=4, default=5, min=1, max=50, minlock=true},
85 {name="BottomInset", option=4, default=5, min=1, max=50, minlock=true},
86 }
87 },
88 { method="SetAlpha",
89 help = "Sets the transparency of the frame.",
90 options={ {name="Alpha", option=4, default=1, min=1, max=100, scale=100, minlock=true, maxlock=true} },
91 detection="GetAlpha" },
92 { method="SetTextColor",
93 options={
94 {name="TextColor", option=6, default={r=1, g=1, b=1}},
95 {name="TextAlpha", option=4, default=1, min=0, max=100, scale=100, minlock=true, maxlock=true}
96 },
97 detection="GetTextColor" },
98 { method="SetJustifyH",
99 options={ {name="JustifyH", option=2, table="DL_JUSTIFY_H", default="CENTER"} },
100 detection = "GetJustifyH"
101 },
102 { method="SetJustifyV",
103 options={ {name="JustifyV", option=2, table="DL_JUSTIFY_V", default="CENTER"} },
104 detection = "GetJustifyV"
105 },
106 { method="SetNonSpaceWrap",
107 options={ {name="NonSpaceWrap", option=5} } },
108 { method="SetVertexColor",
109 help = "Sets the color of the texture.",
110 options={
111 {name="Color", option=6, default={r=1, g=1, b=1}},
112 {name="TextureAlpha", option=4, default=1, min=0, max=100, scale=100, minlock=true, maxlock=true}
113 },
114 detection = "GetVertexColor"
115 },
116 { method="EnableMouse",
117 help = "Stops this frame from intercepting mouse clicks.",
118 options={ {name="DisableMouse", option=5} } },
119 { method="EnableMouseWheel",
120 help = "Stops this frame from intercepting input from the mousewheel.",
121 options={ {name="DisableMouseWheel", option=5} } },
122 { method="SetBackdropColor",
123 options={
124 {name="BackgroundColor", option=6, default={r=1, g=1, b=1}},
125 {name="BackgroundAlpha", option=4, default=1, min=0, max=100, scale=100, minlock=true, maxlock=true}
126 }
127 },
128 { method="SetBackdropBorderColor",
129 options={
130 {name="BorderColor", option=6, default={r=1, g=1, b=1}},
131 {name="BorderAlpha", option=4, default=1, min=0, max=100, scale=100, minlock=true, maxlock=true}
132 }
133 },
134 { method="SetGradient",
135 options={
136 {name="ColorGradientOrientation", option=2, default="", table="DL_ORIENTATIONS"},
137 {name="MinColor", option=6, default={r=1, g=1, b=1}},
138 {name="MaxColor", option=6, default={r=1, g=1, b=1}}
139 }
140 },
141 { method="SetGradientAlpha",
142 options={
143 {name="AlphaGradientOrientation", option=2, default="", table="DL_ORIENTATIONS"},
144 {name="MinColor", option=6, default={r=1, g=1, b=1}},
145 {name="MaxColor", option=6, default={r=1, g=1, b=1}},
146 {name="MinAlpha", option=4, default=1, min=0, max=100, scale=100, minlock=true, maxlock=true},
147 {name="MaxAlpha", option=4, default=1, min=0, max=100, scale=100, minlock=true, maxlock=true}
148 }
149 },
150 { method="SetDisabledTextColor",
151 options={ {name="DisabledTextColor", option=6, default={r=1, g=1, b=1}} } },
152 { method="SetHighlightTextColor",
153 options={ {name="HighlightTextColor", option=6, default={r=1, g=1, b=1}} } },
154 { method="SetModel",
155 options={ {name="Model", option=1, default=""} } },
156 { method="SetModelScale",
157 options={ {name="ModelScale", option=4, default=1, min=1, max=200, scale=100, minlock=true, maxlock=true} },
158 detection="GetModelScale"},
159 { method="SetPosition",
160 options={
161 {name="PositionX", option=4, default=0, min=-100, max=100},
162 {name="PositionY", option=4, default=0, min=-100, max=100},
163 {name="PositionZ", option=4, default=0, min=-100, max=100}
164 }
165 },
166 { method="ReplaceIconTexture",
167 options={ {name="IconTexture", option=3, table="DL_TEXTURES_LIST"} } },
168 { method="SetCamera",
169 options={ {name="Camera", option=4, default=0, min=-100, max=100} } },
170 { method="SetFacing",
171 options={ {name="Facing", option=4, default=0, min=0, max=10} } },
172 { method="SetFogColor",
173 options={
174 {name="FogColor", option=6, default={r=1, g=1, b=1}},
175 {name="FogAlpha", option=4, default=1, min=0, max=100, scale=100, minlock=true, maxlock=true}
176 }
177 },
178 { method="SetFogFar",
179 options={ {name="FogFar", option=4, default=6, min=0, max=50} } },
180 { method="SetFogNear",
181 options={ {name="FogNear", option=4, default=6, min=0, max=50} } },
182 { method="SetTimeVisible",
183 options={ {name="TimeVisible", option=4, default=1, min=0, max=120, minlock=true} },
184 detection = "GetTimeVisible"
185 },
186 { method="SetMaxLines",
187 options={ {name="MaxLines", option=4, default=50, min=0, max=100, minlock=true} } },
188 { method="SetFadeDuration",
189 options={ {name="FadeDuration", option=4, default=1, min=0, max=60, minlock=true} },
190 detection = "GetFadeDuration"
191 },
192 { method="SetStatusBarColor",
193 options={
194 {name="StatusBarColor", option=6, default={r=1, g=1, b=1}},
195 {name="StatusBarAlpha", option=4, default=1, min=0, max=100, scale=100, minlock=true, maxlock=true}
196 },
197 detection = "GetStatusBarColor"
198 },
199 { method="SetRotation",
200 options={ {name="Rotation", option=4, default=0, min=0, max=10} } },
201 { method="SetAlphaGradient",
202 options={
203 {name="AGStart", option=4, default=0, min=0, max=100, minlock=true},
204 {name="AGLength", option=4, default=0, min=0, max=100, minlock=true}
205 }
206 },
207 { method="SetDrawLayer",
208 help = "Sets the draw layer of a FontString or Texture. Regions in a lower draw layer display beneath those in higher layers. Frame strata takes precedence over draw layer.",
209 options={ {name="DrawLayer", option=2, default="ARTWORK", table="DL_DRAWLAYERS"} },
210 detection = "GetDrawLayer"
211 },
212 { method="SetBlendMode",
213 help = "Sets how the FontString or Texture blends with the images beneath it.",
214 options={ {name="BlendMode", option=2, default="BLEND", table="DL_BLENDMODES"} },
215 detection = "GetBlendMode"},
216 { method="SetFontObject",
217 help = "Set the text's font object rather than specifying a particular font file. Changes to the font object will change this text's font.",
218 options={ {name="FontObject", option=1, default=""} },
219 detection = "GetFontObject"},
220 { method="SetShadowColor",
221 help = "Sets the color and alpha of the drop shadow behind the text.",
222 options={
223 {name="ShadowColor", option=6, default={r=0, g=0, b=0}},
224 {name="ShadowAlpha", option=4, default=1, min=0, max=100, scale=100, minlock=true, maxlock=true}
225 },
226 detection="GetShadowColor" },
227 { method="SetShadowOffset",
228 help = "Sets the horizontal and vertical distance of the text's shadow from the foreground text.",
229 options={
230 {name="ShadowOffsetX", option=4, default=1, min=-10, max=10},
231 {name="ShadowOffsetY", option=4, default=1, min=-10, max=10}
232 },
233 detection="GetShadowOffset"
234 },
235 { method="SetSpacing",
236 options={ {name="Spacing", option=4, default=1, min=0, max=100} },
237 detection = "GetSpacing"},
238 { method="SetTextFontObject",
239 help = "Set the text's font object rather than specifying a particular font file. Changes to the font object will change this text's font.",
240 options={ {name="FontObject", option=1, default=""} },
241 detection = "GetTextFontObject"},
242 { method="SetDisabledFontObject",
243 help = "Set the disabled text's font object rather than specifying a particular font file. Changes to the font object will change this text's font.",
244 options={ {name="DisabledFontObject", option=1, default=""} },
245 detection = "GetDisabledFontObject"},
246 { method="SetHighlightFontObject",
247 help = "Set the highlight text's font object rather than specifying a particular font file. Changes to the font object will change this text's font.",
248 options={ {name="HighlightFontObject", option=1, default=""} },
249 detection = "GetHighlightFontObject"},
250 { method="SetMaskTexture",
251 options={ {name="MaskTexture", option=1, default="Textures\\MinimapMask"} } },
252 { method="SetIconTexture",
253 options={ {name="IconTexture", option=1, default="Interface\\Minimap\\POIIcons"} } },
254 { method="SetBlipTexture",
255 options={ {name="BlipTexture", option=1, default="Interface\\Minimap\\ObjectIcons"} } },
256 { method="SetOrientation",
257 options={ {name="Orientation", option=2, default="HORIZONTAL", table="DL_ORIENTATIONS"} },
258 detection = "GetOrientation"
259 },
260 { method="SetAltArrowKeyMode",
261 options={ {name="AltArrowKeyMode", option=5} },
262 detection = "GetAltArrowKeyMode"
263 },
264 { method="SetScrollChild",
265 options={ {name="ScrollChild", option=1, default=""} },
266 detection = "GetScrollChild"
267 },
268 { method="SetThumbTexture",
269 options={ {name="ThumbTexture", option=1, default=""} }, },
270 { method="SetToplevel",
271 help = "Checking this option causes the frame to move to the top of the stack of frames within a frame strata. It can cause framerate issues if multiple frames in the same strata use this option.",
272 options={ {name="SetToplevel", option=5} },
273 detection = "IsToplevel"
274 },
275 -- { method="",
276 -- options={ {name="", option=, default=} } },
277 }