File tree Expand file tree Collapse file tree 3 files changed +44
-2
lines changed Expand file tree Collapse file tree 3 files changed +44
-2
lines changed Original file line number Diff line number Diff line change 1
1
## Title :-|c ffFFFFFF ConRO|r - Conflict Rotation Optimizer
2
2
## Notes : Rotation helper framework.
3
- ## Version : 10.0.26
3
+ ## Version : 10.0.27
4
4
## Author : Vae
5
5
## Interface : 100005
6
6
## SavedVariables : ConROPreferences
Original file line number Diff line number Diff line change @@ -2145,6 +2145,10 @@ function ConRO:Fetch()
2145
2145
self :FetchDominos ();
2146
2146
end
2147
2147
2148
+ if IsAddOnLoaded (' NDui' ) then
2149
+ self :FetchNDui ();
2150
+ end
2151
+
2148
2152
if IsAddOnLoaded (' DiabolicUI' ) then
2149
2153
self :FetchDiabolic ();
2150
2154
end
@@ -2193,6 +2197,10 @@ function ConRO:FetchDef()
2193
2197
self :DefFetchDominos ();
2194
2198
end
2195
2199
2200
+ if IsAddOnLoaded (' NDui' ) then
2201
+ self :DefFetchNDui ();
2202
+ end
2203
+
2196
2204
if IsAddOnLoaded (' DiabolicUI' ) then
2197
2205
self :DefFetchDiabolic ();
2198
2206
end
@@ -2288,6 +2296,40 @@ function ConRO:DefFetchDominos()
2288
2296
end
2289
2297
end
2290
2298
2299
+ function ConRO :FetchNDui ()
2300
+ for i = 1 , 8 do
2301
+ for b = 1 , 12 do
2302
+ local button = _G [' NDui_ActionBar' .. i .. ' Button' .. b ];
2303
+ local hotkey ;
2304
+ if i == 1 then
2305
+ hotkey = ' ActionButton' .. i .. ' :HOTKEY' ;
2306
+ else
2307
+ hotkey = ' ActionBar' .. i .. ' Button' .. b .. ' :HOTKEY' ;
2308
+ end
2309
+ if button then
2310
+ self :AddStandardButton (button , hotkey );
2311
+ end
2312
+ end
2313
+ end
2314
+ end
2315
+
2316
+ function ConRO :DefFetchNDui ()
2317
+ for i = 1 , 8 do
2318
+ for b = 1 , 12 do
2319
+ local button = _G [' NDui_ActionBar' .. i .. ' Button' .. b ];
2320
+ local hotkey ;
2321
+ if i == 1 then
2322
+ hotkey = ' ActionButton' .. i .. ' :HOTKEY' ;
2323
+ else
2324
+ hotkey = ' ActionBar' .. i .. ' Button' .. b .. ' :HOTKEY' ;
2325
+ end
2326
+ if button then
2327
+ self :DefAddStandardButton (button , hotkey );
2328
+ end
2329
+ end
2330
+ end
2331
+ end
2332
+
2291
2333
function ConRO :FetchButtonForge ()
2292
2334
local i = 1 ;
2293
2335
while true do
Original file line number Diff line number Diff line change @@ -2957,7 +2957,7 @@ function ConRO:MeleeSpec()
2957
2957
[12] = 'DemonHunter',
2958
2958
[13] = 'Evoker', ]]
2959
2959
2960
- if classId == 1 or classId == 2 or classId == 3 or classId == 4 or classId == 5 or classId == 6 or classId == 7 or classId == 8 or classId == 10 or classId == 11 or classId == 12 or classId == 13 then
2960
+ if classId == 1 or classId == 2 or classId == 3 or classId == 4 or classId == 5 or classId == 6 or classId == 7 or classId == 8 or classId == 9 or classId == 10 or classId == 11 or classId == 12 or classId == 13 then
2961
2961
return true ;
2962
2962
end
2963
2963
return false ;
You can’t perform that action at this time.
0 commit comments