2016-05-06 15:49:39 +02:00
local aceDBOptions = LibStub ( " AceDBOptions-3.0 " )
2016-05-08 16:23:04 +02:00
function Rekt : GetRektOptions ( )
2016-05-06 15:49:39 +02:00
local db = self.db . profile ;
local options = {
2016-05-08 16:23:04 +02:00
type = " group " , name = " Rekt " , childGroups = " tab " ,
2016-05-06 15:49:39 +02:00
args = {
enabled = {
type = " toggle " , name = " Enabled " , desc = " Enable/Disable the addon " , order = 0 ,
2016-05-08 16:23:04 +02:00
get = function ( ) return Rekt : isEnabled ( ) end ,
2016-05-06 15:49:39 +02:00
set = function ( _ , v )
2016-05-08 16:23:04 +02:00
Rekt : setEnabledOrDisabled ( v ) ;
2016-05-06 15:49:39 +02:00
end
} ,
lock = {
type = " toggle " , name = " Lock " , desc = " Uncheck to move the frames " , order = 1 ,
2016-05-08 16:23:04 +02:00
get = function ( ) return Rekt : isLocked ( ) end ,
2016-05-06 15:49:39 +02:00
set = function ( _ , v )
db.locked = v ;
2016-05-08 16:23:04 +02:00
if v then Rekt : LockFrames ( ) else Rekt : UnlockFrames ( ) end ;
2016-05-06 15:49:39 +02:00
end
} ,
targetandfocus = {
type = " group " , name = " CDs " , desc = " Cooldown frame's settings. " , childGroups = " tab " , order = 2 ,
2016-05-08 16:23:04 +02:00
args = Rekt : getTargetandFocusOptions ( ) ;
2016-05-06 15:49:39 +02:00
} ,
droptions = {
type = " group " , name = " DRs " , desc = " DR frame's settings. " , childGroups = " tab " , order = 3 ,
2016-05-08 16:23:04 +02:00
args = Rekt : getDROptions ( ) ;
2016-05-06 15:49:39 +02:00
} ,
2016-05-06 16:05:24 +02:00
coloroptions = {
type = " group " , name = " Global " , desc = " Global settings. " , childGroups = " tab " , order = 4 ,
2016-05-08 16:23:04 +02:00
args = Rekt : getGlobalOptions ( )
2016-05-06 15:49:39 +02:00
} ,
debugoptions = {
type = " group " , name = " Debug " , desc = " Debug settings. " , childGroups = " tab " , order = 5 ,
2016-05-08 16:23:04 +02:00
args = Rekt : getDebugOptions ( ) ;
2016-05-06 15:49:39 +02:00
} ,
profileoptions = aceDBOptions : GetOptionsTable ( self.db )
}
}
return options ;
end
2016-05-08 19:58:38 +02:00
2016-05-06 15:49:39 +02:00
--order 10-20
2016-05-08 16:23:04 +02:00
function Rekt : getTargetandFocusOptions ( )
2016-05-06 15:49:39 +02:00
local args = {
targetHeader = {
type = " header " , name = " Target's settings " , order = 10
} ,
targettoggle = {
type = " toggle " , name = " Target " , desc = " Enable/Disable showing the target's cooldowns " , order = 11 ,
2016-05-08 16:23:04 +02:00
get = function ( ) return Rekt : isPartEnabled ( " target " ) end ,
2016-05-06 15:49:39 +02:00
set = function ( _ , v )
2016-05-08 16:23:04 +02:00
Rekt : SetPartEnabledOrDisabled ( " target " , v ) ;
2016-05-06 15:49:39 +02:00
end
} ,
targetrange = {
type = " range " , name = " Target's size " , order = 12 , min = 10 , max = 150 , step = 1 ,
2016-05-08 16:23:04 +02:00
get = function ( ) return Rekt : getFrameSize ( " target " ) end ,
2016-05-06 15:49:39 +02:00
set = function ( _ , v )
2016-05-08 16:23:04 +02:00
Rekt : setFrameSize ( " target " , v ) ;
2016-05-06 15:49:39 +02:00
end
} ,
targetGrowSelect = {
type = " select " , style = " dropdown " , name = " targetGrow " ,
desc = " Change which way the target's cooldowns will grow " , order = 13 ,
values = {
[ " 1 " ] = " Up " ,
[ " 2 " ] = " Right " ,
[ " 3 " ] = " Down " ,
[ " 4 " ] = " Left "
} ,
2016-05-08 16:23:04 +02:00
get = function ( ) return Rekt : getGrowOrder ( " target " ) end ,
2016-05-06 15:49:39 +02:00
set = function ( _ , v )
2016-05-08 16:23:04 +02:00
Rekt : setGrowOrder ( " target " , v ) ;
2016-05-06 15:49:39 +02:00
end
} ,
targetSortSelect = {
type = " select " , style = " dropdown " , name = " targetSortOrder " ,
desc = " Change the target's cooldowns's sort order " , order = 14 ,
values = {
[ " 1 " ] = " Ascending (CD left) " ,
[ " 2 " ] = " Descending (CD left) " ,
[ " 3 " ] = " Ascending (CD total) " ,
[ " 4 " ] = " Descending (CD total) " ,
[ " 5 " ] = " Recent first " ,
[ " 6 " ] = " Recent Last " ,
[ " 7 " ] = " No order "
} ,
2016-05-08 16:23:04 +02:00
get = function ( ) return Rekt : getSortOrder ( " target " ) end ,
2016-05-06 15:49:39 +02:00
set = function ( _ , v )
2016-05-08 16:23:04 +02:00
Rekt : setSortOrder ( " target " , v ) ;
2016-05-06 15:49:39 +02:00
end
} ,
2016-05-06 16:05:24 +02:00
targetcolortoggle = {
type = " toggle " , name = " Colors " , desc = " Enable/Disable showing the target's cooldown's colors. " , order = 15 ,
2016-05-08 16:23:04 +02:00
get = function ( ) return Rekt : getColorFrameEnabled ( " target " ) end ,
2016-05-06 16:05:24 +02:00
set = function ( _ , v )
2016-05-08 16:23:04 +02:00
Rekt : setColorFrameEnabled ( " target " , v ) ;
2016-05-06 16:05:24 +02:00
end
} ,
targetcolorrange = {
type = " range " , name = " Target's Color size " , order = 16 , min = 1 , max = 30 , step = 1 ,
2016-05-08 16:23:04 +02:00
get = function ( ) return Rekt : getColorFrameSize ( " target " ) end ,
2016-05-06 16:05:24 +02:00
set = function ( _ , v )
2016-05-08 16:23:04 +02:00
Rekt : setColorFrameSize ( " target " , v ) ;
2016-05-06 16:05:24 +02:00
end
} ,
2016-05-06 15:49:39 +02:00
focusHeader = {
2016-05-06 16:05:24 +02:00
type = " header " , name = " Focus's settings " , order = 17
2016-05-06 15:49:39 +02:00
} ,
focustoggle = {
2016-05-06 16:05:24 +02:00
type = " toggle " , name = " Focus " , desc = " Enable/Disable showing the focus's cooldowns " , order = 18 ,
2016-05-08 16:23:04 +02:00
get = function ( ) return Rekt : isPartEnabled ( " focus " ) end ,
2016-05-06 15:49:39 +02:00
set = function ( _ , v )
2016-05-08 16:23:04 +02:00
Rekt : SetPartEnabledOrDisabled ( " focus " , v ) ;
2016-05-06 15:49:39 +02:00
end
} ,
focusRange = {
2016-05-06 16:05:24 +02:00
type = " range " , name = " Focus's size " , order = 19 , min = 10 , max = 150 , step = 1 ,
2016-05-08 16:23:04 +02:00
get = function ( ) return Rekt : getFrameSize ( " focus " ) end ,
2016-05-06 15:49:39 +02:00
set = function ( _ , v )
2016-05-08 16:23:04 +02:00
Rekt : setFrameSize ( " focus " , v ) ;
2016-05-06 15:49:39 +02:00
end
} ,
focusGrowSelect = {
type = " select " , style = " dropdown " , name = " focusGrow " ,
2016-05-06 16:05:24 +02:00
desc = " Change which way the focus's cooldowns will grow " , order = 20 ,
2016-05-06 15:49:39 +02:00
values = {
[ " 1 " ] = " Up " ,
[ " 2 " ] = " Right " ,
[ " 3 " ] = " Down " ,
[ " 4 " ] = " Left "
} ,
2016-05-08 16:23:04 +02:00
get = function ( ) return Rekt : getGrowOrder ( " focus " ) end ,
2016-05-06 15:49:39 +02:00
set = function ( _ , v )
2016-05-08 16:23:04 +02:00
Rekt : setGrowOrder ( " focus " , v ) ;
2016-05-06 15:49:39 +02:00
end
} ,
focusSortSelect = {
type = " select " , style = " dropdown " , name = " focusSortOrder " ,
2016-05-06 16:05:24 +02:00
desc = " Change the focus's cooldowns's sort order " , order = 21 ,
2016-05-06 15:49:39 +02:00
values = {
[ " 1 " ] = " Ascending (CD left) " ,
[ " 2 " ] = " Descending (CD left) " ,
[ " 3 " ] = " Ascending (CD total) " ,
[ " 4 " ] = " Descending (CD total) " ,
[ " 5 " ] = " Recent first " ,
[ " 6 " ] = " Recent Last " ,
[ " 7 " ] = " No order "
} ,
2016-05-08 16:23:04 +02:00
get = function ( ) return Rekt : getSortOrder ( " focus " ) end ,
2016-05-06 15:49:39 +02:00
set = function ( _ , v )
2016-05-08 16:23:04 +02:00
Rekt : setSortOrder ( " focus " , v ) ;
2016-05-06 15:49:39 +02:00
end
2016-05-06 15:56:29 +02:00
} ,
2016-05-06 16:05:24 +02:00
focuscolortoggle = {
type = " toggle " , name = " Colors " , desc = " Enable/Disable showing the target's cooldown's colors. " , order = 22 ,
2016-05-08 16:23:04 +02:00
get = function ( ) return Rekt : getColorFrameEnabled ( " focus " ) end ,
2016-05-06 16:05:24 +02:00
set = function ( _ , v )
2016-05-08 16:23:04 +02:00
Rekt : setColorFrameEnabled ( " focus " , v ) ;
2016-05-06 16:05:24 +02:00
end
} ,
focuscolorrange = {
type = " range " , name = " Focus's Color size " , order = 23 , min = 1 , max = 30 , step = 1 ,
2016-05-08 16:23:04 +02:00
get = function ( ) return Rekt : getColorFrameSize ( " focus " ) end ,
2016-05-06 16:05:24 +02:00
set = function ( _ , v )
2016-05-08 16:23:04 +02:00
Rekt : setColorFrameSize ( " focus " , v ) ;
2016-05-06 16:05:24 +02:00
end
2016-05-06 15:56:29 +02:00
} ,
2016-05-08 19:58:38 +02:00
ibHeader = {
type = " header " , name = " InterruptBar's settings " , order = 30
} ,
ibtoggle = {
type = " toggle " , name = " InterruptBar " , desc = " Enable/Disable showing the InterruptBar " , order = 31 ,
get = function ( ) return Rekt : isPartEnabled ( " interruptbar " ) end ,
set = function ( _ , v )
Rekt : SetPartEnabledOrDisabled ( " interruptbar " , v ) ;
end
} ,
ibrange = {
type = " range " , name = " InterruptBar's size " , order = 32 , min = 10 , max = 150 , step = 1 ,
get = function ( ) return Rekt : getFrameSize ( " interruptbar " ) end ,
set = function ( _ , v )
Rekt : setFrameSize ( " interruptbar " , v ) ;
end
} ,
ibGrowSelect = {
type = " select " , style = " dropdown " , name = " InterruptBarGrow " ,
desc = " Change which way the InterruptBar's cooldowns will grow " , order = 33 ,
values = {
[ " 1 " ] = " Up " ,
[ " 2 " ] = " Right " ,
[ " 3 " ] = " Down " ,
[ " 4 " ] = " Left "
} ,
get = function ( ) return Rekt : getGrowOrder ( " interruptbar " ) end ,
set = function ( _ , v )
Rekt : setGrowOrder ( " interruptbar " , v ) ;
end
} ,
ibSortSelect = {
type = " select " , style = " dropdown " , name = " InterruptBarSortOrder " ,
desc = " Change the InterruptBar's cooldowns's sort order " , order = 34 ,
values = {
[ " 1 " ] = " Ascending (CD left) " ,
[ " 2 " ] = " Descending (CD left) " ,
[ " 3 " ] = " Ascending (CD total) " ,
[ " 4 " ] = " Descending (CD total) " ,
[ " 5 " ] = " Recent first " ,
[ " 6 " ] = " Recent Last " ,
[ " 7 " ] = " No order "
} ,
get = function ( ) return Rekt : getSortOrder ( " interruptbar " ) end ,
set = function ( _ , v )
Rekt : setSortOrder ( " interruptbar " , v ) ;
end
} ,
ibcolortoggle = {
type = " toggle " , name = " Colors " , desc = " Enable/Disable showing the InterruptBar's cooldown's colors. " , order = 35 ,
get = function ( ) return Rekt : getColorFrameEnabled ( " interruptbar " ) end ,
set = function ( _ , v )
Rekt : setColorFrameEnabled ( " interruptbar " , v ) ;
end
} ,
ibcolorrange = {
type = " range " , name = " InterruptBar's Color size " , order = 36 , min = 1 , max = 30 , step = 1 ,
get = function ( ) return Rekt : getColorFrameSize ( " interruptbar " ) end ,
set = function ( _ , v )
Rekt : setColorFrameSize ( " interruptbar " , v ) ;
end
} ,
2016-05-06 15:49:39 +02:00
}
return args ;
end
--order 20-40
2016-05-08 16:23:04 +02:00
function Rekt : getDROptions ( )
2016-05-06 15:49:39 +02:00
local args = {
targetdrHeader = {
2016-05-06 16:05:24 +02:00
type = " header " , name = " Target's settings " , order = 10
2016-05-06 15:49:39 +02:00
} ,
targetdrtoggle = {
type = " toggle " , name = " Enabled " , desc = " Enable/Disable showing the target's DRs. " , order = 11 ,
2016-05-08 16:23:04 +02:00
get = function ( ) return Rekt : isPartEnabled ( " targetdr " ) end ,
2016-05-06 15:49:39 +02:00
set = function ( _ , v )
2016-05-08 16:23:04 +02:00
Rekt : SetDRPartEnabledOrDisabled ( " targetdr " , v ) ;
2016-05-06 15:49:39 +02:00
end
} ,
targetdrrange = {
type = " range " , name = " Target's DRs size " , order = 12 , min = 10 , max = 150 , step = 1 ,
2016-05-08 16:23:04 +02:00
get = function ( ) return Rekt : getFrameSize ( " targetdr " ) end ,
2016-05-06 15:49:39 +02:00
set = function ( _ , v )
2016-05-08 16:23:04 +02:00
Rekt : setFrameSize ( " targetdr " , v ) ;
2016-05-06 15:49:39 +02:00
end
} ,
targetdrGrowSelect = {
type = " select " , style = " dropdown " , name = " targetDRGrow " ,
desc = " Change which way the target's cooldowns will grow " , order = 13 ,
values = {
[ " 1 " ] = " Up " ,
[ " 2 " ] = " Right " ,
[ " 3 " ] = " Down " ,
[ " 4 " ] = " Left "
} ,
2016-05-08 16:23:04 +02:00
get = function ( ) return Rekt : getGrowOrder ( " targetdr " ) end ,
2016-05-06 15:49:39 +02:00
set = function ( _ , v )
2016-05-08 16:23:04 +02:00
Rekt : setDRGrowOrder ( " targetdr " , v ) ;
2016-05-06 15:49:39 +02:00
end
} ,
targetdrSortSelect = {
type = " select " , style = " dropdown " , name = " targetDRSortOrder " ,
desc = " Change the target's DR's sort order " , order = 14 ,
values = {
[ " 1 " ] = " Ascending (CD left) " ,
[ " 2 " ] = " Descending (CD left) " ,
[ " 3 " ] = " Ascending (CD total) " ,
[ " 4 " ] = " Descending (CD total) " ,
[ " 5 " ] = " Recent first " ,
[ " 6 " ] = " Recent Last " ,
[ " 7 " ] = " No order "
} ,
2016-05-08 16:23:04 +02:00
get = function ( ) return Rekt : getSortOrder ( " targetdr " ) end ,
2016-05-06 15:49:39 +02:00
set = function ( _ , v )
2016-05-08 16:23:04 +02:00
Rekt : setSortOrder ( " targetdr " , v ) ;
2016-05-06 15:49:39 +02:00
end
} ,
targetdrnumsizerange = {
2016-05-06 15:50:46 +02:00
type = " range " , name = " Number's size " , desc = " Target's DR's Number's size. Set it to 0 to disable it! " ,
2016-05-06 15:49:39 +02:00
order = 15 , min = 1 , max = 30 , step = 1 ,
2016-05-08 16:23:04 +02:00
get = function ( ) return Rekt : getDRNumSize ( " targetdr " ) end ,
2016-05-06 15:49:39 +02:00
set = function ( _ , v )
2016-05-08 16:23:04 +02:00
Rekt : setDRNumSize ( " targetdr " , v ) ;
2016-05-06 15:49:39 +02:00
end
} ,
targetdrnumposselect = {
type = " select " , style = " dropdown " , name = " targetDRNumPos " ,
desc = " Change the target's DR's number's position. " , order = 16 ,
values = {
[ " 1 " ] = " Up " ,
[ " 2 " ] = " Right " ,
[ " 3 " ] = " Down " ,
[ " 4 " ] = " Left " ,
[ " 5 " ] = " Middle "
} ,
2016-05-08 16:23:04 +02:00
get = function ( ) return Rekt : getDRNumPosition ( " targetdr " ) end ,
2016-05-06 15:49:39 +02:00
set = function ( _ , v )
2016-05-08 16:23:04 +02:00
Rekt : setDRNumPosition ( " targetdr " , v ) ;
2016-05-06 15:49:39 +02:00
end
} ,
focusdrHeader = {
2016-05-06 15:50:46 +02:00
type = " header " , name = " Focus's settings " , order = 17
2016-05-06 15:49:39 +02:00
} ,
focusdrtoggle = {
2016-05-06 15:50:46 +02:00
type = " toggle " , name = " Enabled " , desc = " Enable/Disable showing the focus's DRs. " , order = 18 ,
2016-05-08 16:23:04 +02:00
get = function ( ) return Rekt : isPartEnabled ( " focusdr " ) end ,
2016-05-06 15:49:39 +02:00
set = function ( _ , v )
2016-05-08 16:23:04 +02:00
Rekt : SetDRPartEnabledOrDisabled ( " focusdr " , v ) ;
2016-05-06 15:49:39 +02:00
end
} ,
focusdrRange = {
2016-05-06 15:50:46 +02:00
type = " range " , name = " Focus's size " , order = 19 , min = 10 , max = 150 , step = 1 ,
2016-05-08 16:23:04 +02:00
get = function ( ) return Rekt : getFrameSize ( " focusdr " ) end ,
2016-05-06 15:49:39 +02:00
set = function ( _ , v )
2016-05-08 16:23:04 +02:00
Rekt : setFrameSize ( " focusdr " , v ) ;
2016-05-06 15:49:39 +02:00
end
} ,
focusdrGrowSelect = {
type = " select " , style = " dropdown " , name = " focusDRGrow " ,
2016-05-06 15:50:46 +02:00
desc = " Change which way the focus's DRs will grow " , order = 20 ,
2016-05-06 15:49:39 +02:00
values = {
[ " 1 " ] = " Up " ,
[ " 2 " ] = " Right " ,
[ " 3 " ] = " Down " ,
[ " 4 " ] = " Left "
} ,
2016-05-08 16:23:04 +02:00
get = function ( ) return Rekt : getGrowOrder ( " focusdr " ) end ,
2016-05-06 15:49:39 +02:00
set = function ( _ , v )
2016-05-08 16:23:04 +02:00
Rekt : setDRGrowOrder ( " focusdr " , v ) ;
2016-05-06 15:49:39 +02:00
end
} ,
focusdrSortSelect = {
type = " select " , style = " dropdown " , name = " focusDRSortOrder " ,
2016-05-06 15:50:46 +02:00
desc = " Change the focus's DR's sort order " , order = 21 ,
2016-05-06 15:49:39 +02:00
values = {
[ " 1 " ] = " Ascending (CD left) " ,
[ " 2 " ] = " Descending (CD left) " ,
[ " 3 " ] = " Ascending (CD total) " ,
[ " 4 " ] = " Descending (CD total) " ,
[ " 5 " ] = " Recent first " ,
[ " 6 " ] = " Recent Last " ,
[ " 7 " ] = " No order "
} ,
2016-05-08 16:23:04 +02:00
get = function ( ) return Rekt : getSortOrder ( " focusdr " ) end ,
2016-05-06 15:49:39 +02:00
set = function ( _ , v )
2016-05-08 16:23:04 +02:00
Rekt : setSortOrder ( " focusdr " , v ) ;
2016-05-06 15:49:39 +02:00
end
2016-05-06 15:50:46 +02:00
} ,
focusdrnumsizerange = {
type = " range " , name = " Number's size " , desc = " Focus's DR's Number's size. Set it to 0 to disable it! " ,
order = 22 , min = 1 , max = 30 , step = 1 ,
2016-05-08 16:23:04 +02:00
get = function ( ) return Rekt : getDRNumSize ( " focusdr " ) end ,
2016-05-06 15:50:46 +02:00
set = function ( _ , v )
2016-05-08 16:23:04 +02:00
Rekt : setDRNumSize ( " focusdr " , v ) ;
2016-05-06 15:50:46 +02:00
end
} ,
focusdrnumposselect = {
type = " select " , style = " dropdown " , name = " focusDRNumPos " ,
desc = " Change the focus's DR's number's position. " , order = 23 ,
values = {
[ " 1 " ] = " Up " ,
[ " 2 " ] = " Right " ,
[ " 3 " ] = " Down " ,
[ " 4 " ] = " Left " ,
[ " 5 " ] = " Middle "
} ,
2016-05-08 16:23:04 +02:00
get = function ( ) return Rekt : getDRNumPosition ( " focusdr " ) end ,
2016-05-06 15:50:46 +02:00
set = function ( _ , v )
2016-05-08 16:23:04 +02:00
Rekt : setDRNumPosition ( " focusdr " , v ) ;
2016-05-06 15:50:46 +02:00
end
} ,
2016-05-06 16:05:24 +02:00
selfdrHeader = {
type = " header " , name = " Self's settings " , order = 24
} ,
2016-05-06 15:49:39 +02:00
selfdrtoggle = {
2016-05-06 16:05:24 +02:00
type = " toggle " , name = " Enabled " , desc = " Enable/Disable showing the your DRs. " , order = 25 ,
2016-05-08 16:23:04 +02:00
get = function ( ) return Rekt : isPartEnabled ( " selfdr " ) end ,
2016-05-06 15:49:39 +02:00
set = function ( _ , v )
2016-05-08 16:23:04 +02:00
Rekt : SetDRPartEnabledOrDisabled ( " selfdr " , v ) ;
2016-05-06 15:49:39 +02:00
end
} ,
selfdrrange = {
2016-05-06 16:05:24 +02:00
type = " range " , name = " Self's DRs size " , order = 26 , min = 10 , max = 150 , step = 1 ,
2016-05-08 16:23:04 +02:00
get = function ( ) return Rekt : getFrameSize ( " selfdr " ) end ,
2016-05-06 15:49:39 +02:00
set = function ( _ , v )
2016-05-08 16:23:04 +02:00
Rekt : setFrameSize ( " selfdr " , v ) ;
2016-05-06 15:49:39 +02:00
end
} ,
selfdrGrowSelect = {
type = " select " , style = " dropdown " , name = " selfDRGrow " ,
2016-05-06 16:05:24 +02:00
desc = " Change which way the your DRs will grow " , order = 27 ,
2016-05-06 15:49:39 +02:00
values = {
[ " 1 " ] = " Up " ,
[ " 2 " ] = " Right " ,
[ " 3 " ] = " Down " ,
[ " 4 " ] = " Left "
} ,
2016-05-08 16:23:04 +02:00
get = function ( ) return Rekt : getGrowOrder ( " selfdr " ) end ,
2016-05-06 15:49:39 +02:00
set = function ( _ , v )
2016-05-08 16:23:04 +02:00
Rekt : setDRGrowOrder ( " selfdr " , v ) ;
2016-05-06 15:49:39 +02:00
end
} ,
selfdrSortSelect = {
type = " select " , style = " dropdown " , name = " selfDRSortOrder " ,
2016-05-06 16:05:24 +02:00
desc = " Change the your DR's sort order " , order = 28 ,
2016-05-06 15:49:39 +02:00
values = {
[ " 1 " ] = " Ascending (CD left) " ,
[ " 2 " ] = " Descending (CD left) " ,
[ " 3 " ] = " Ascending (CD total) " ,
[ " 4 " ] = " Descending (CD total) " ,
[ " 5 " ] = " Recent first " ,
[ " 6 " ] = " Recent Last " ,
[ " 7 " ] = " No order "
} ,
2016-05-08 16:23:04 +02:00
get = function ( ) return Rekt : getSortOrder ( " selfdr " ) end ,
2016-05-06 15:49:39 +02:00
set = function ( _ , v )
2016-05-08 16:23:04 +02:00
Rekt : setSortOrder ( " selfdr " , v ) ;
2016-05-06 15:49:39 +02:00
end
} ,
2016-05-06 15:50:46 +02:00
selfdrnumsizerange = {
type = " range " , name = " Number's size " , desc = " Your DR's Number's size. Set it to 0 to disable it! " ,
2016-05-06 16:05:24 +02:00
order = 29 , min = 1 , max = 30 , step = 1 ,
2016-05-08 16:23:04 +02:00
get = function ( ) return Rekt : getDRNumSize ( " selfdr " ) end ,
2016-05-06 15:50:46 +02:00
set = function ( _ , v )
2016-05-08 16:23:04 +02:00
Rekt : setDRNumSize ( " selfdr " , v ) ;
2016-05-06 15:50:46 +02:00
end
} ,
selfdrnumposselect = {
type = " select " , style = " dropdown " , name = " selfDRNumPos " ,
2016-05-06 16:05:24 +02:00
desc = " Change your DR's number's position. " , order = 30 ,
2016-05-06 15:50:46 +02:00
values = {
[ " 1 " ] = " Up " ,
[ " 2 " ] = " Right " ,
[ " 3 " ] = " Down " ,
[ " 4 " ] = " Left " ,
[ " 5 " ] = " Middle "
} ,
2016-05-08 16:23:04 +02:00
get = function ( ) return Rekt : getDRNumPosition ( " selfdr " ) end ,
2016-05-06 15:50:46 +02:00
set = function ( _ , v )
2016-05-08 16:23:04 +02:00
Rekt : setDRNumPosition ( " selfdr " , v ) ;
2016-05-06 15:50:46 +02:00
end
} ,
2016-05-06 15:49:39 +02:00
}
return args ;
end
2016-05-06 16:05:24 +02:00
--order 40-50
2016-05-08 16:23:04 +02:00
function Rekt : getGlobalOptions ( )
2016-05-06 16:05:24 +02:00
local args = {
globalHeader = {
type = " header " , name = " Global CD settings " , order = 10
} ,
specdetectiontoggle = {
type = " toggle " , name = " Spec Detection " , desc = " Enable/Disable Spec Detection " , order = 11 ,
2016-05-08 16:23:04 +02:00
get = function ( ) return Rekt : isSpecDetectionEnabled ( ) end ,
2016-05-06 16:05:24 +02:00
set = function ( _ , v )
2016-05-08 16:23:04 +02:00
Rekt : setSpecDetectionEnabledorDisabled ( v ) ;
2016-05-06 16:05:24 +02:00
end
} ,
petcdguessingtoggle = {
type = " toggle " , name = " Pet CD Guessing " ,
desc = " Enable/Disable Pet Cd Guessing, this will show pet cds on all possible masters, since there is no reasonable way of determining who's pet it is from combatlog events and GUIDs, this will be really inaccurate if there are 2-3 lock for example. " ,
order = 12 ,
2016-05-08 16:23:04 +02:00
get = function ( ) return Rekt : getPetCDGuessing ( ) end ,
2016-05-06 16:05:24 +02:00
set = function ( _ , v )
2016-05-08 16:23:04 +02:00
Rekt : setPetCDGuessing ( v ) ;
2016-05-06 16:05:24 +02:00
end
} ,
globalcdtypesortHeader = {
type = " header " , name = " Global CD Type sorting " , order = 13
} ,
cdtypesortordertoggle = {
2016-05-06 16:09:39 +02:00
type = " toggle " , name = " Enabled " , desc = " Enable/Disable CD Type Sort Order, It works like this: you set silence to 1, then cc to 2 and anticc to 2, then silences will go first, then cc and anticc as secound, they are organized within groups based on how you set them in the CDs settings tab. " , order = 15 ,
2016-05-08 16:23:04 +02:00
get = function ( ) return Rekt : getCDTypeSortingEnable ( ) end ,
2016-05-06 16:05:24 +02:00
set = function ( _ , v )
2016-05-08 16:23:04 +02:00
Rekt : setCDTypeSortingEnable ( v ) ;
2016-05-06 16:05:24 +02:00
end
} ,
silencerange = {
type = " range " , name = " Silence's Type Order " , order = 17 , min = 1 , max = 15 , step = 1 ,
2016-05-08 16:23:04 +02:00
get = function ( ) return Rekt : getTypeSortOrder ( " silence " ) end ,
2016-05-06 16:05:24 +02:00
set = function ( _ , v )
2016-05-08 16:23:04 +02:00
Rekt : setTypeSortOrder ( " silence " , v ) ;
2016-05-06 16:05:24 +02:00
end
} ,
gapcloserrange = {
type = " range " , name = " Gapcloser's Type Order " , order = 18 , min = 1 , max = 15 , step = 1 ,
2016-05-08 16:23:04 +02:00
get = function ( ) return Rekt : getTypeSortOrder ( " gapcloser " ) end ,
2016-05-06 16:05:24 +02:00
set = function ( _ , v )
2016-05-08 16:23:04 +02:00
Rekt : setTypeSortOrder ( " gapcloser " , v ) ;
2016-05-06 16:05:24 +02:00
end
} ,
defensiverange = {
type = " range " , name = " Defensive's Type Order " , order = 19 , min = 1 , max = 15 , step = 1 ,
2016-05-08 16:23:04 +02:00
get = function ( ) return Rekt : getTypeSortOrder ( " defensive " ) end ,
2016-05-06 16:05:24 +02:00
set = function ( _ , v )
2016-05-08 16:23:04 +02:00
Rekt : setTypeSortOrder ( " defensive " , v ) ;
2016-05-06 16:05:24 +02:00
end
} ,
potionrange = {
type = " range " , name = " Potion's Type Order " , order = 20 , min = 1 , max = 15 , step = 1 ,
2016-05-08 16:23:04 +02:00
get = function ( ) return Rekt : getTypeSortOrder ( " potion " ) end ,
2016-05-06 16:05:24 +02:00
set = function ( _ , v )
2016-05-08 16:23:04 +02:00
Rekt : setTypeSortOrder ( " potion " , v ) ;
2016-05-06 16:05:24 +02:00
end
} ,
nukerange = {
type = " range " , name = " Nuke's Type Order " , order = 21 , min = 1 , max = 15 , step = 1 ,
2016-05-08 16:23:04 +02:00
get = function ( ) return Rekt : getTypeSortOrder ( " nuke " ) end ,
2016-05-06 16:05:24 +02:00
set = function ( _ , v )
2016-05-08 16:23:04 +02:00
Rekt : setTypeSortOrder ( " nuke " , v ) ;
2016-05-06 16:05:24 +02:00
end
} ,
anticcrange = {
type = " range " , name = " Anticc's Type Order " , order = 22 , min = 1 , max = 15 , step = 1 ,
2016-05-08 16:23:04 +02:00
get = function ( ) return Rekt : getTypeSortOrder ( " anticc " ) end ,
2016-05-06 16:05:24 +02:00
set = function ( _ , v )
2016-05-08 16:23:04 +02:00
Rekt : setTypeSortOrder ( " anticc " , v ) ;
2016-05-06 16:05:24 +02:00
end
} ,
ccrange = {
type = " range " , name = " Cc's Type Order " , order = 23 , min = 1 , max = 15 , step = 1 ,
2016-05-08 16:23:04 +02:00
get = function ( ) return Rekt : getTypeSortOrder ( " cc " ) end ,
2016-05-06 16:05:24 +02:00
set = function ( _ , v )
2016-05-08 16:23:04 +02:00
Rekt : setTypeSortOrder ( " cc " , v ) ;
2016-05-06 16:05:24 +02:00
end
} ,
stunrange = {
type = " range " , name = " Stun's Type Order " , order = 24 , min = 1 , max = 15 , step = 1 ,
2016-05-08 16:23:04 +02:00
get = function ( ) return Rekt : getTypeSortOrder ( " stun " ) end ,
2016-05-06 16:05:24 +02:00
set = function ( _ , v )
2016-05-08 16:23:04 +02:00
Rekt : setTypeSortOrder ( " stun " , v ) ;
2016-05-06 16:05:24 +02:00
end
} ,
disarmrange = {
type = " range " , name = " Disarm's Type Order " , order = 25 , min = 1 , max = 15 , step = 1 ,
2016-05-08 16:23:04 +02:00
get = function ( ) return Rekt : getTypeSortOrder ( " disarm " ) end ,
2016-05-06 16:05:24 +02:00
set = function ( _ , v )
2016-05-08 16:23:04 +02:00
Rekt : setTypeSortOrder ( " disarm " , v ) ;
2016-05-06 16:05:24 +02:00
end
} ,
cdresetrange = {
type = " range " , name = " Cdreset's Type Order " , order = 26 , min = 1 , max = 15 , step = 1 ,
2016-05-08 16:23:04 +02:00
get = function ( ) return Rekt : getTypeSortOrder ( " cdreset " ) end ,
2016-05-06 16:05:24 +02:00
set = function ( _ , v )
2016-05-08 16:23:04 +02:00
Rekt : setTypeSortOrder ( " cdreset " , v ) ;
2016-05-06 16:05:24 +02:00
end
} ,
shieldrange = {
type = " range " , name = " shield's Type Order " , order = 27 , min = 1 , max = 15 , step = 1 ,
2016-05-08 16:23:04 +02:00
get = function ( ) return Rekt : getTypeSortOrder ( " shield " ) end ,
2016-05-06 16:05:24 +02:00
set = function ( _ , v )
2016-05-08 16:23:04 +02:00
Rekt : setTypeSortOrder ( " shield " , v ) ;
2016-05-06 16:05:24 +02:00
end
} ,
uncategorizedrange = {
type = " range " , name = " Uncategorized's Type Order " , order = 28 , min = 1 , max = 15 , step = 1 ,
2016-05-08 16:23:04 +02:00
get = function ( ) return Rekt : getTypeSortOrder ( " uncategorized " ) end ,
2016-05-06 16:05:24 +02:00
set = function ( _ , v )
2016-05-08 16:23:04 +02:00
Rekt : setTypeSortOrder ( " uncategorized " , v ) ;
2016-05-06 16:05:24 +02:00
end
} ,
--50+
globalcolorHeader = {
type = " header " , name = " CD Color settings " , order = 51
} ,
silencecolorsel = {
type = " color " , name = " Silence's color " , hasAlpha = true , order = 52 ,
2016-05-08 16:23:04 +02:00
get = function ( ) return Rekt : getColor ( " silence " ) end ,
2016-05-06 16:05:24 +02:00
set = function ( _ , r , g , b , a )
2016-05-08 16:23:04 +02:00
Rekt : setColor ( " silence " , r , g , b , a ) ;
2016-05-06 16:05:24 +02:00
end
} ,
gapclosercolorsel = {
type = " color " , name = " Gapcloser's color " , hasAlpha = true , order = 53 ,
2016-05-08 16:23:04 +02:00
get = function ( ) return Rekt : getColor ( " gapcloser " ) end ,
2016-05-06 16:05:24 +02:00
set = function ( _ , r , g , b , a )
2016-05-08 16:23:04 +02:00
Rekt : setColor ( " gapcloser " , r , g , b , a ) ;
2016-05-06 16:05:24 +02:00
end
} ,
defensivecolorsel = {
type = " color " , name = " Defensive's color " , hasAlpha = true , order = 54 ,
2016-05-08 16:23:04 +02:00
get = function ( ) return Rekt : getColor ( " defensive " ) end ,
2016-05-06 16:05:24 +02:00
set = function ( _ , r , g , b , a )
2016-05-08 16:23:04 +02:00
Rekt : setColor ( " defensive " , r , g , b , a ) ;
2016-05-06 16:05:24 +02:00
end
} ,
potioncolorsel = {
type = " color " , name = " Potion's color " , hasAlpha = true , order = 55 ,
2016-05-08 16:23:04 +02:00
get = function ( ) return Rekt : getColor ( " potion " ) end ,
2016-05-06 16:05:24 +02:00
set = function ( _ , r , g , b , a )
2016-05-08 16:23:04 +02:00
Rekt : setColor ( " potion " , r , g , b , a ) ;
2016-05-06 16:05:24 +02:00
end
} ,
nukecolorsel = {
type = " color " , name = " Nuke's color " , hasAlpha = true , order = 56 ,
2016-05-08 16:23:04 +02:00
get = function ( ) return Rekt : getColor ( " nuke " ) end ,
2016-05-06 16:05:24 +02:00
set = function ( _ , r , g , b , a )
2016-05-08 16:23:04 +02:00
Rekt : setColor ( " nuke " , r , g , b , a ) ;
2016-05-06 16:05:24 +02:00
end
} ,
anticccolorsel = {
type = " color " , name = " Anticc's color " , hasAlpha = true , order = 57 ,
2016-05-08 16:23:04 +02:00
get = function ( ) return Rekt : getColor ( " anticc " ) end ,
2016-05-06 16:05:24 +02:00
set = function ( _ , r , g , b , a )
2016-05-08 16:23:04 +02:00
Rekt : setColor ( " anticc " , r , g , b , a ) ;
2016-05-06 16:05:24 +02:00
end
} ,
cccolorsel = {
type = " color " , name = " Cc's color " , hasAlpha = true , order = 58 ,
2016-05-08 16:23:04 +02:00
get = function ( ) return Rekt : getColor ( " cc " ) end ,
2016-05-06 16:05:24 +02:00
set = function ( _ , r , g , b , a )
2016-05-08 16:23:04 +02:00
Rekt : setColor ( " cc " , r , g , b , a ) ;
2016-05-06 16:05:24 +02:00
end
} ,
stuncolorsel = {
type = " color " , name = " Stun's color " , hasAlpha = true , order = 59 ,
2016-05-08 16:23:04 +02:00
get = function ( ) return Rekt : getColor ( " stun " ) end ,
2016-05-06 16:05:24 +02:00
set = function ( _ , r , g , b , a )
2016-05-08 16:23:04 +02:00
Rekt : setColor ( " stun " , r , g , b , a ) ;
2016-05-06 16:05:24 +02:00
end
} ,
disarmcolorsel = {
type = " color " , name = " Disarm's color " , hasAlpha = true , order = 60 ,
2016-05-08 16:23:04 +02:00
get = function ( ) return Rekt : getColor ( " disarm " ) end ,
2016-05-06 16:05:24 +02:00
set = function ( _ , r , g , b , a )
2016-05-08 16:23:04 +02:00
Rekt : setColor ( " disarm " , r , g , b , a ) ;
2016-05-06 16:05:24 +02:00
end
} ,
cdresetcolorsel = {
type = " color " , name = " Cdreset's color " , hasAlpha = true , order = 61 ,
2016-05-08 16:23:04 +02:00
get = function ( ) return Rekt : getColor ( " cdreset " ) end ,
2016-05-06 16:05:24 +02:00
set = function ( _ , r , g , b , a )
2016-05-08 16:23:04 +02:00
Rekt : setColor ( " cdreset " , r , g , b , a ) ;
2016-05-06 16:05:24 +02:00
end
} ,
shieldcolorsel = {
type = " color " , name = " Shield's color " , hasAlpha = true , order = 62 ,
2016-05-08 16:23:04 +02:00
get = function ( ) return Rekt : getColor ( " shield " ) end ,
2016-05-06 16:05:24 +02:00
set = function ( _ , r , g , b , a )
2016-05-08 16:23:04 +02:00
Rekt : setColor ( " shield " , r , g , b , a ) ;
2016-05-06 16:05:24 +02:00
end
} ,
uncategorizedcolorsel = {
type = " color " , name = " Uncategorized's color " , hasAlpha = true , order = 63 ,
2016-05-08 16:23:04 +02:00
get = function ( ) return Rekt : getColor ( " uncategorized " ) end ,
2016-05-06 16:05:24 +02:00
set = function ( _ , r , g , b , a )
2016-05-08 16:23:04 +02:00
Rekt : setColor ( " uncategorized " , r , g , b , a ) ;
2016-05-06 16:05:24 +02:00
end
} ,
}
return args ;
end
2016-05-06 15:49:39 +02:00
--order 50+
2016-05-08 16:23:04 +02:00
function Rekt : getDebugOptions ( )
2016-05-06 15:49:39 +02:00
local args = {
spellcast = {
type = " toggle " , name = " SpellCast " , desc = " Enable/Disable writing out SPELL_CAST_SUCCESS events. " , order = 50 ,
2016-05-08 16:23:04 +02:00
get = function ( ) return Rekt : getSpellCastDebug ( ) end ,
2016-05-06 15:49:39 +02:00
set = function ( _ , v )
2016-05-08 16:23:04 +02:00
Rekt : setSpellCastDebug ( v ) ;
2016-05-06 15:49:39 +02:00
end
} ,
spellAura = {
type = " toggle " , name = " SpellAura " , desc = " Enable/Disablewriting out SPLL_AURA_* events " , order = 51 ,
2016-05-08 16:23:04 +02:00
get = function ( ) return Rekt : getSpellAuraDebug ( ) end ,
2016-05-06 15:49:39 +02:00
set = function ( _ , v )
2016-05-08 16:23:04 +02:00
Rekt : setSpellAuraDebug ( v ) ;
2016-05-06 15:49:39 +02:00
end
} ,
allLog = {
type = " toggle " , name = " Uber debug " , desc = " Enable/Disable writing out all combatlog events " , order = 52 ,
2016-05-08 16:23:04 +02:00
get = function ( ) return Rekt : getAllCDebug ( ) end ,
2016-05-06 15:49:39 +02:00
set = function ( _ , v )
2016-05-08 16:23:04 +02:00
Rekt : setAllCDebug ( v ) ;
2016-05-06 15:49:39 +02:00
end
} ,
selfcd = {
type = " toggle " , name = " Self CDs " , desc = " Enable/Disable registering self CDs " , order = 53 ,
2016-05-08 16:23:04 +02:00
get = function ( ) return Rekt : getSelfCDRegister ( ) end ,
2016-05-06 15:49:39 +02:00
set = function ( _ , v )
2016-05-08 16:23:04 +02:00
Rekt : setSelfCDRegister ( v ) ;
2016-05-06 15:49:39 +02:00
end
} ,
2016-05-08 19:58:38 +02:00
selfcd = {
type = " toggle " , name = " Friendly + Self Interrupts " , desc = " Enable/Disable registering, and showing friendly and self interrupts at the interruptbar. " , order = 54 ,
get = function ( ) return Rekt : getIBSelfCDRegister ( ) end ,
set = function ( _ , v )
Rekt : setIBSelfCDRegister ( v ) ;
end
} ,
2016-05-06 15:49:39 +02:00
debugselect = {
type = " select " , style = " dropdown " , name = " debuglevel " ,
2016-05-08 19:58:38 +02:00
desc = " Change the debuglevel " , order = 55 ,
2016-05-06 15:49:39 +02:00
values = {
[ " 0 " ] = " No Messages " ,
} ,
2016-05-08 16:23:04 +02:00
get = function ( ) return Rekt : getDebugLevel ( ) end ,
2016-05-06 15:49:39 +02:00
set = function ( _ , v )
2016-05-08 16:23:04 +02:00
Rekt : setDebugLevel ( v ) ;
2016-05-06 15:49:39 +02:00
end
} ,
}
return args ;
end
2016-05-06 16:05:24 +02:00
2016-05-08 16:23:04 +02:00
function Rekt : GetTypeSortDropdown ( num )
2016-05-06 16:05:24 +02:00
local arr = {
type = " select " , style = " dropdown " , name = " selfDRSortOrder " ,
desc = " Change the your DR's sort order " , order = 28 ,
values = {
[ " 1 " ] = " Ascending (CD left) " ,
[ " 2 " ] = " Descending (CD left) " ,
[ " 3 " ] = " Ascending (CD total) " ,
[ " 4 " ] = " Descending (CD total) " ,
[ " 5 " ] = " Recent first " ,
[ " 6 " ] = " Recent Last " ,
[ " 7 " ] = " No order "
} ,
2016-05-08 16:23:04 +02:00
get = function ( ) return Rekt : getSortOrder ( " selfdr " ) end ,
2016-05-06 16:05:24 +02:00
set = function ( _ , v )
2016-05-08 16:23:04 +02:00
Rekt : setSortOrder ( " selfdr " , v ) ;
2016-05-06 16:05:24 +02:00
end
}
return arr ;
end