SticeUI

SticeUI v1.0

May 14th, 2020
438
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 64.71 KB | None | 0 0
  1. --Don't worry about this
  2. local addon, ns = ...
  3. local Version = GetAddOnMetadata(addon, "Version")
  4.  
  5. --Cache Lua / WoW API
  6. local format = string.format
  7. local GetCVarBool = GetCVarBool
  8. local ReloadUI = ReloadUI
  9. local StopMusic = StopMusic
  10.  
  11. -- These are things we do not cache
  12. -- GLOBALS: PluginInstallStepComplete, PluginInstallFrame
  13.  
  14. --Change this line and use a unique name for your plugin.
  15. local MyPluginName = "SticeUI"
  16.  
  17. --Create references to ElvUI internals
  18. local E, L, V, P, G = unpack(ElvUI)
  19.  
  20. --Create reference to LibElvUIPlugin
  21. local EP = LibStub("LibElvUIPlugin-1.0")
  22.  
  23. --Create a new ElvUI module so ElvUI can handle initialization when ready
  24. local mod = E:NewModule(MyPluginName, "AceHook-3.0", "AceEvent-3.0", "AceTimer-3.0");
  25.  
  26. --This function will hold your layout settings
  27. local function SetupLayout(layout)
  28.     if layout == "Install" then
  29.     --"Databars"
  30.     E.db["databars"]["reputation"]["font"] = "Expressway"
  31.     E.db["databars"]["reputation"]["hideInVehicle"] = true
  32.     E.db["databars"]["reputation"]["orientation"] = "HORIZONTAL"
  33.     E.db["databars"]["reputation"]["enable"] = true
  34.     E.db["databars"]["reputation"]["height"] = 6
  35.     E.db["databars"]["reputation"]["textSize"] = 12
  36.     E.db["databars"]["reputation"]["width"] = 115
  37.     E.db["databars"]["honor"]["orientation"] = "HORIZONTAL"
  38.     E.db["databars"]["honor"]["font"] = "Expressway"
  39.     E.db["databars"]["honor"]["height"] = 6
  40.     E.db["databars"]["honor"]["width"] = 115
  41.     E.db["databars"]["experience"]["font"] = "Emblem"
  42.     E.db["databars"]["experience"]["textFormat"] = "PERCENT"
  43.     E.db["databars"]["experience"]["height"] = 6
  44.     E.db["databars"]["experience"]["orientation"] = "HORIZONTAL"
  45.     E.db["databars"]["experience"]["textSize"] = 8
  46.     E.db["databars"]["experience"]["width"] = 115
  47.     E.db["databars"]["azerite"]["font"] = "Expressway"
  48.     E.db["databars"]["azerite"]["height"] = 6
  49.     E.db["databars"]["azerite"]["orientation"] = "HORIZONTAL"
  50.     E.db["databars"]["azerite"]["textSize"] = 8
  51.     E.db["databars"]["azerite"]["width"] = 115
  52.     --"Datatext"
  53.     E.db["datatexts"]["minimapPanels"] = false
  54.     E.db["datatexts"]["goldCoins"] = true
  55.     E.db["datatexts"]["minimapBottom"] = true
  56.     E.db["datatexts"]["goldFormat"] = "BLIZZARD2"
  57.     E.db["datatexts"]["panels"]["DTB2_Top Info panel"]["right"] = "Talent/Loot Specialization"
  58.     E.db["datatexts"]["panels"]["DTB2_Top Info panel"]["left"] = "Guild"
  59.     E.db["datatexts"]["panels"]["DTB2_Top Info panel"]["middle"] = "Friends"
  60.     E.db["datatexts"]["panels"]["RightMiniPanel"] = ""
  61.     E.db["datatexts"]["panels"]["RightChatDataPanel"]["right"] = "Bags"
  62.     E.db["datatexts"]["panels"]["RightChatDataPanel"]["left"] = "MovementSpeed"
  63.     E.db["datatexts"]["panels"]["RightChatDataPanel"]["middle"] = "Durability"
  64.     E.db["datatexts"]["panels"]["BottomMiniPanel"] = "Time"
  65.     E.db["datatexts"]["panels"]["LeftMiniPanel"] = "Time"
  66.     E.db["datatexts"]["panels"]["DTB2_Top Right Panel"]["right"] = "System"
  67.     E.db["datatexts"]["panels"]["DTB2_Top mid Info panel"]["left"] = "Durability"
  68.     E.db["datatexts"]["panels"]["DTB2_Top mid Info panel"]["right"] = "Gold"
  69.     E.db["datatexts"]["panels"]["LeftChatDataPanel"]["right"] = "System"
  70.     E.db["datatexts"]["panels"]["LeftChatDataPanel"]["left"] = "BfA Missions"
  71.     E.db["datatexts"]["panels"]["LeftChatDataPanel"]["middle"] = "Gold"
  72.     E.db["datatexts"]["font"] = "Anime Ace"
  73.     E.db["datatexts"]["battleground"] = false
  74.     E.db["datatexts"]["fontOutline"] = "OUTLINE"
  75.     E.db["datatexts"]["leftChatPanel"] = false
  76.     E.db["datatexts"]["fontSize"] = 11
  77.     E.db["datatexts"]["rightChatPanel"] = false
  78.     E.db["datatexts"]["panelBackdrop"] = false
  79.     --"General"
  80.     E.db["currentTutorial"] = 4
  81.     E.db["cooldown"]["threshold"] = 2
  82.     E.db["general"]["loginmessage"] = false
  83.     E.db["general"]["fontSize"] = 11
  84.     E.db["general"]["altPowerBar"]["font"] = "Expressway"
  85.     E.db["general"]["backdropcolor"]["r"] = 0.025
  86.     E.db["general"]["backdropcolor"]["g"] = 0.025
  87.     E.db["general"]["backdropcolor"]["b"] = 0.025
  88.     E.db["general"]["autoRoll"] = true
  89.     E.db["general"]["bordercolor"]["r"] = 0
  90.     E.db["general"]["bordercolor"]["g"] = 0
  91.     E.db["general"]["bordercolor"]["b"] = 0
  92.     E.db["general"]["autoRepair"] = "PLAYER"
  93.     E.db["general"]["minimap"]["size"] = 151
  94.     E.db["general"]["minimap"]["locationFont"] = "Expressway"
  95.     E.db["general"]["minimap"]["icons"]["mail"]["scale"] = 0.85
  96.     E.db["general"]["minimap"]["icons"]["mail"]["position"] = "BOTTOMLEFT"
  97.     E.db["general"]["minimap"]["icons"]["mail"]["xOffset"] = 9
  98.     E.db["general"]["minimap"]["icons"]["mail"]["yOffset"] = -8
  99.     E.db["general"]["minimap"]["icons"]["lfgEye"]["xOffset"] = 4
  100.     E.db["general"]["minimap"]["icons"]["lfgEye"]["scale"] = 0.9
  101.     E.db["general"]["minimap"]["icons"]["lfgEye"]["yOffset"] = -5
  102.     E.db["general"]["minimap"]["icons"]["classHall"]["xOffset"] = -39
  103.     E.db["general"]["minimap"]["icons"]["classHall"]["scale"] = 0.55
  104.     E.db["general"]["minimap"]["icons"]["classHall"]["yOffset"] = -4
  105.     E.db["general"]["minimap"]["icons"]["classHall"]["position"] = "BOTTOMRIGHT"
  106.     E.db["general"]["objectiveFrameHeight"] = 600
  107.     E.db["general"]["font"] = "Expressway"
  108.     E.db["general"]["bottomPanel"] = false
  109.     E.db["general"]["backdropfadecolor"]["a"] = 0.75
  110.     E.db["general"]["backdropfadecolor"]["r"] = 0.054
  111.     E.db["general"]["backdropfadecolor"]["g"] = 0.054
  112.     E.db["general"]["backdropfadecolor"]["b"] = 0.054
  113.     E.db["general"]["valuecolor"]["r"] = 1
  114.     E.db["general"]["valuecolor"]["g"] = 0.96
  115.     E.db["general"]["valuecolor"]["b"] = 0.41
  116.     E.db["general"]["bonusObjectivePosition"] = "AUTO"
  117.     E.db["general"]["threat"]["enable"] = false
  118.     E.db["general"]["totems"]["growthDirection"] = "HORIZONTAL"
  119.     E.db["bossAuraFiltersConverted"] = true
  120.     E.db["hideTutorial"] = true
  121.     E.db["v11NamePlateReset"] = true
  122.     E.db["bagsOffsetFixed"] = true
  123.     E.db["thinBorderColorSet"] = true
  124.     E.db["dashboards"]["professions"]["enableProfessions"] = false
  125.     E.db["dashboards"]["tokens"]["enableTokens"] = false
  126.     E.db["dashboards"]["system"]["chooseSystem"]["Durability"] = false
  127.     E.db["dashboards"]["system"]["chooseSystem"]["FPS"] = false
  128.     E.db["dashboards"]["system"]["chooseSystem"]["MS"] = false
  129.     E.db["dashboards"]["system"]["chooseSystem"]["Bags"] = false
  130.     --"movers"
  131.     E.db["movers"]["ElvUF_FocusCastbarMover"] = "BOTTOMRIGHT,ElvUIParent,BOTTOMRIGHT,-337,242"
  132.     E.db["movers"]["MinimapButtonAnchor"] = "TOPRIGHT,ElvUIParent,TOPRIGHT,-4,-149"
  133.     E.db["movers"]["BuffsMover"] = "TOP,ElvUIParent,TOP,419,-4"
  134.     E.db["movers"]["TargetPowerBarMover"] = "BOTTOM,ElvUIParent,BOTTOM,237,295"
  135.     E.db["movers"]["BossButton"] = "BOTTOM,ElvUIParent,BOTTOM,0,125"
  136.     E.db["movers"]["LootFrameMover"] = "TOPRIGHT,ElvUIParent,TOPRIGHT,-385,-162"
  137.     E.db["movers"]["ZoneAbility"] = "BOTTOM,ElvUIParent,BOTTOM,66,125"
  138.     E.db["movers"]["ElvUF_RaidpetMover"] = "BOTTOMLEFT,ElvUIParent,BOTTOMLEFT,4,302"
  139.     E.db["movers"]["AutoButtonAnchor2Mover"] = "BOTTOMRIGHT,ElvUIParent,BOTTOMRIGHT,-655,142"
  140.     E.db["movers"]["DurabilityFrameMover"] = "BOTTOM,ElvUIParent,BOTTOM,-101,111"
  141.     E.db["movers"]["ElvUF_PetCastbarMover"] = "BOTTOMLEFT,ElvUIParent,BOTTOMLEFT,4,291"
  142.     E.db["movers"]["VehicleSeatMover"] = "BOTTOMLEFT,ElvUIParent,BOTTOMLEFT,483,269"
  143.     E.db["movers"]["BuiMiddleDtMover"] = "BOTTOM,ElvUIParent,BOTTOM,0,4"
  144.     E.db["movers"]["ElvUF_TargetTargetMover"] = "BOTTOM,ElvUIParent,BOTTOM,389,294"
  145.     E.db["movers"]["LossControlMover"] = "TOP,ElvUIParent,TOP,0,-400"
  146.     E.db["movers"]["MirrorTimer1Mover"] = "TOP,ElvUIParent,TOP,0,-59"
  147.     E.db["movers"]["TalkingHeadFrameMover"] = "TOP,ElvUIParent,TOP,437,-70"
  148.     E.db["movers"]["AzeriteBarMover"] = "BOTTOMLEFT,ElvUIParent,BOTTOMLEFT,169,7"
  149.     E.db["movers"]["ReputationBarMover"] = "BOTTOMLEFT,ElvUIParent,BOTTOMLEFT,51,7"
  150.     E.db["movers"]["ObjectiveFrameMover"] = "TOPRIGHT,ElvUIParent,TOPRIGHT,-59,-252"
  151.     E.db["movers"]["BNETMover"] = "TOPRIGHT,ElvUIParent,TOPRIGHT,-355,-36"
  152.     E.db["movers"]["ShiftAB"] = "TOPLEFT,ElvUIParent,BOTTOMLEFT,843,130"
  153.     E.db["movers"]["ElvUF_TargetCastbarMover"] = "BOTTOM,ElvUIParent,BOTTOM,250,240"
  154.     E.db["movers"]["ElvUF_PlayerMover"] = "BOTTOM,ElvUIParent,BOTTOM,-250,290"
  155.     E.db["movers"]["RightChatMover"] = "BOTTOMRIGHT,ElvUIParent,BOTTOMRIGHT,-4,-1"
  156.     E.db["movers"]["ComboBarMover"] = "BOTTOM,ElvUIParent,BOTTOM,0,221"
  157.     E.db["movers"]["ElvUF_AssistMover"] = "TOP,ElvUIParent,TOP,-301,-4"
  158.     E.db["movers"]["TopCenterContainerMover"] = "TOP,ElvUIParent,TOP,0,-48"
  159.     E.db["movers"]["PetAB"] = "BOTTOMLEFT,ElvUIParent,BOTTOMLEFT,638,195"
  160.     E.db["movers"]["ElvUF_RaidMover"] = "BOTTOMRIGHT,ElvUIParent,BOTTOMRIGHT,-4,-1"
  161.     E.db["movers"]["LeftChatMover"] = "BOTTOMLEFT,ElvUIParent,BOTTOMLEFT,4,21"
  162.     E.db["movers"]["GMMover"] = "TOPRIGHT,ElvUIParent,TOPRIGHT,-355,-36"
  163.     E.db["movers"]["DTB2_Top mid Info panel_Mover"] = "TOPLEFT,ElvUIParent,TOPLEFT,374,-4"
  164.     E.db["movers"]["LocationMover"] = "TOP,ElvUIParent,TOP,0,0"
  165.     E.db["movers"]["ElvUF_FocusMover"] = "BOTTOMRIGHT,ElvUIParent,BOTTOMRIGHT,-461,266"
  166.     E.db["movers"]["AutoButtonAnchorMover"] = "BOTTOMRIGHT,ElvUIParent,BOTTOMRIGHT,-655,184"
  167.     E.db["movers"]["ClassBarMover"] = "BOTTOMLEFT,ElvUIParent,BOTTOMLEFT,4,280"
  168.     E.db["movers"]["MicrobarMover"] = "TOPRIGHT,ElvUIParent,TOPRIGHT,-354,-4"
  169.     E.db["movers"]["DTB2_Top Right Panel_Mover"] = "TOPRIGHT,ElvUIParent,TOPRIGHT,-437,-4"
  170.     E.db["movers"]["ExperienceBarMover"] = "BOTTOM,ElvUIParent,BOTTOM,0,30"
  171.     E.db["movers"]["ArenaHeaderMover"] = "TOPRIGHT,ElvUIParent,TOPRIGHT,-296,-322"
  172.     E.db["movers"]["ElvUF_TargetMover"] = "BOTTOM,ElvUIParent,BOTTOM,250,290"
  173.     E.db["movers"]["AltPowerBarMover"] = "TOP,ElvUIParent,TOP,0,-27"
  174.     E.db["movers"]["BuiDashboardMover"] = "TOPRIGHT,ElvUIParent,TOPRIGHT,-5,-155"
  175.     E.db["movers"]["ElvUF_Raid40Mover"] = "BOTTOMRIGHT,ElvUIParent,BOTTOMRIGHT,-4,-1"
  176.     E.db["movers"]["ElvUF_PetMover"] = "BOTTOM,ElvUIParent,BOTTOM,-389,294"
  177.     E.db["movers"]["ElvUF_PlayerCastbarMover"] = "BOTTOM,ElvUIParent,BOTTOM,-250,240"
  178.     E.db["movers"]["ElvAB_1"] = "BOTTOM,ElvUIParent,BOTTOM,-42,260"
  179.     E.db["movers"]["ElvAB_2"] = "BOTTOM,ElvUIParent,BOTTOM,85,260"
  180.     E.db["movers"]["BelowMinimapContainerMover"] = "TOPRIGHT,ElvUIParent,TOPRIGHT,-160,-181"
  181.     E.db["movers"]["TotemBarMover"] = "BOTTOM,ElvUIParent,BOTTOM,-223,138"
  182.     E.db["movers"]["ElvAB_4"] = "BOTTOM,ElvUIParent,BOTTOM,-103,30"
  183.     E.db["movers"]["PlayerPowerBarMover"] = "BOTTOM,ElvUIParent,BOTTOM,-237,295"
  184.     E.db["movers"]["ElvUF_BodyGuardMover"] = "BOTTOMLEFT,ElvUIParent,BOTTOMLEFT,426,209"
  185.     E.db["movers"]["ElvAB_3"] = "TOP,ElvUIParent,TOP,159,-471"
  186.     E.db["movers"]["ElvAB_5"] = "BOTTOM,ElvUIParent,BOTTOM,103,30"
  187.     E.db["movers"]["ArtifactBarMover"] = "TOPRIGHT,ElvUIParent,TOPRIGHT,-3,-162"
  188.     E.db["movers"]["DTB2_Top Info panel_Mover"] = "TOPLEFT,ElvUIParent,TOPLEFT,4,-4"
  189.     E.db["movers"]["ElvUIBagMover"] = "BOTTOMLEFT,ElvUIParent,BOTTOMLEFT,4,221"
  190.     E.db["movers"]["VOICECHAT"] = "TOPLEFT,ElvUIParent,TOPLEFT,453,-54"
  191.     E.db["movers"]["AutoButtonAnchor3Mover"] = "BOTTOMRIGHT,ElvUIParent,BOTTOMRIGHT,-655,99"
  192.     E.db["movers"]["ElvNP_PlayerMover"] = "BOTTOMLEFT,ElvUIParent,BOTTOMLEFT,324,240"
  193.     E.db["movers"]["CM_MOVER"] = "BOTTOM,ElvUIParent,BOTTOM,0,389"
  194.     E.db["movers"]["HonorBarMover"] = "BOTTOMLEFT,ElvUIParent,BOTTOMLEFT,287,7"
  195.     E.db["movers"]["ElvAB_6"] = "BOTTOM,ElvUIParent,BOTTOM,0,206"
  196.     E.db["movers"]["TooltipMover"] = "TOPLEFT,ElvUIParent,TOPLEFT,453,-32"
  197.     E.db["movers"]["ElvUF_TankMover"] = "TOP,ElvUIParent,TOP,-302,-4"
  198.     E.db["movers"]["BossHeaderMover"] = "TOPRIGHT,ElvUIParent,TOPRIGHT,-296,-322"
  199.     E.db["movers"]["WatchFrameMover"] = "TOPRIGHT,ElvUIParent,TOPRIGHT,-143,-206"
  200.     E.db["movers"]["LevelUpBossBannerMover"] = "TOP,ElvUIParent,TOP,0,-113"
  201.     E.db["movers"]["ElvUF_PartyMover"] = "BOTTOM,ElvUIParent,BOTTOM,0,-1"
  202.     E.db["movers"]["AlertFrameMover"] = "TOPRIGHT,ElvUIParent,TOPRIGHT,-472,-199"
  203.     E.db["movers"]["DebuffsMover"] = "BOTTOM,ElvUIParent,BOTTOM,-260,317"
  204.     E.db["movers"]["MinimapMover"] = "TOPRIGHT,ElvUIParent,TOPRIGHT,-4,-4"
  205.     --"Bags"
  206.     E.db["bags"]["countFontSize"] = 11
  207.     E.db["bags"]["itemLevelFont"] = "Expressway"
  208.     E.db["bags"]["bagSize"] = 36
  209.     E.db["bags"]["itemLevelFontSize"] = 11
  210.     E.db["bags"]["sortInverted"] = false
  211.     E.db["bags"]["bagWidth"] = 418
  212.     E.db["bags"]["countFont"] = "Expressway"
  213.     E.db["bags"]["vendorGrays"]["enable"] = true
  214.     E.db["bags"]["countFontOutline"] = "NONE"
  215.     E.db["bags"]["bankSize"] = 40
  216.     E.db["bags"]["bagBar"]["growthDirection"] = "HORIZONTAL"
  217.     E.db["bags"]["bankWidth"] = 256
  218.     E.db["bags"]["itemLevelFontOutline"] = "NONE"
  219.     E.db["bags"]["junkIcon"] = true
  220.     E.db["bags"]["currencyFormat"] = "ICON_TEXT"
  221.     E.db["bags"]["moneyFormat"] = "BLIZZARD"
  222.     --"nameplate"
  223.     E.db["nameplates"]["font"] = "Expressway"
  224.     E.db["nameplates"]["plateSize"]["personalWidth"] = 100
  225.     E.db["nameplates"]["plateSize"]["friendlyWidth"] = 100
  226.     E.db["nameplates"]["plateSize"]["enemyWidth"] = 100
  227.     E.db["nameplates"]["units"]["FRIENDLY_PLAYER"]["debuffs"]["countFont"] = "Expressway"
  228.     E.db["nameplates"]["units"]["FRIENDLY_PLAYER"]["debuffs"]["numAuras"] = 8
  229.     E.db["nameplates"]["units"]["FRIENDLY_PLAYER"]["debuffs"]["spacing"] = 0
  230.     E.db["nameplates"]["units"]["FRIENDLY_PLAYER"]["debuffs"]["xOffset"] = 2
  231.     E.db["nameplates"]["units"]["FRIENDLY_PLAYER"]["debuffs"]["priority"] = "Blacklist,Personal,CCDebuffs"
  232.     E.db["nameplates"]["units"]["FRIENDLY_PLAYER"]["debuffs"]["size"] = 15
  233.     E.db["nameplates"]["units"]["FRIENDLY_PLAYER"]["debuffs"]["yOffset"] = 7
  234.     E.db["nameplates"]["units"]["FRIENDLY_PLAYER"]["power"]["displayAltPower"] = true
  235.     E.db["nameplates"]["units"]["FRIENDLY_PLAYER"]["power"]["text"]["font"] = "Expressway"
  236.     E.db["nameplates"]["units"]["FRIENDLY_PLAYER"]["power"]["text"]["fontSize"] = 8
  237.     E.db["nameplates"]["units"]["FRIENDLY_PLAYER"]["showTitle"] = false
  238.     E.db["nameplates"]["units"]["FRIENDLY_PLAYER"]["buffs"]["numAuras"] = 6
  239.     E.db["nameplates"]["units"]["FRIENDLY_PLAYER"]["buffs"]["enable"] = false
  240.     E.db["nameplates"]["units"]["FRIENDLY_PLAYER"]["buffs"]["priority"] = "Blacklist,RaidBuffsElvUI,Dispellable,blockNoDuration,PlayerBuffs,TurtleBuffs,CastByUnit"
  241.     E.db["nameplates"]["units"]["FRIENDLY_PLAYER"]["buffs"]["size"] = 24
  242.     E.db["nameplates"]["units"]["FRIENDLY_PLAYER"]["buffs"]["yOffset"] = 27
  243.     E.db["nameplates"]["units"]["FRIENDLY_PLAYER"]["title"]["format"] = "[npctitle]"
  244.     E.db["nameplates"]["units"]["FRIENDLY_PLAYER"]["castbar"]["height"] = 4
  245.     E.db["nameplates"]["units"]["FRIENDLY_PLAYER"]["castbar"]["textPosition"] = "ONBAR"
  246.     E.db["nameplates"]["units"]["FRIENDLY_PLAYER"]["castbar"]["width"] = 100
  247.     E.db["nameplates"]["units"]["FRIENDLY_PLAYER"]["castbar"]["yOffset"] = -8
  248.     E.db["nameplates"]["units"]["FRIENDLY_PLAYER"]["health"]["height"] = 5
  249.     E.db["nameplates"]["units"]["FRIENDLY_PLAYER"]["health"]["text"]["font"] = "Expressway"
  250.     E.db["nameplates"]["units"]["FRIENDLY_PLAYER"]["health"]["text"]["fontSize"] = 8
  251.     E.db["nameplates"]["units"]["FRIENDLY_PLAYER"]["level"]["fontSize"] = 8
  252.     E.db["nameplates"]["units"]["FRIENDLY_PLAYER"]["level"]["format"] = "[difficultycolor][level][shortclassification]"
  253.     E.db["nameplates"]["units"]["FRIENDLY_PLAYER"]["level"]["font"] = "Expressway"
  254.     E.db["nameplates"]["units"]["FRIENDLY_PLAYER"]["name"]["fontSize"] = 8
  255.     E.db["nameplates"]["units"]["FRIENDLY_PLAYER"]["name"]["format"] = "[name]"
  256.     E.db["nameplates"]["units"]["FRIENDLY_PLAYER"]["name"]["font"] = "Expressway"
  257.     E.db["nameplates"]["units"]["TARGET"]["classpower"]["height"] = 4
  258.     E.db["nameplates"]["units"]["TARGET"]["classpower"]["width"] = 100
  259.     E.db["nameplates"]["units"]["TARGET"]["classpower"]["enable"] = true
  260.     E.db["nameplates"]["units"]["TARGET"]["classpower"]["yOffset"] = -10
  261.     E.db["nameplates"]["units"]["FRIENDLY_NPC"]["debuffs"]["countFont"] = "Expressway"
  262.     E.db["nameplates"]["units"]["FRIENDLY_NPC"]["debuffs"]["numAuras"] = 8
  263.     E.db["nameplates"]["units"]["FRIENDLY_NPC"]["debuffs"]["spacing"] = 0
  264.     E.db["nameplates"]["units"]["FRIENDLY_NPC"]["debuffs"]["xOffset"] = 2
  265.     E.db["nameplates"]["units"]["FRIENDLY_NPC"]["debuffs"]["priority"] = "Blacklist,Personal,CCDebuffs"
  266.     E.db["nameplates"]["units"]["FRIENDLY_NPC"]["debuffs"]["size"] = 15
  267.     E.db["nameplates"]["units"]["FRIENDLY_NPC"]["debuffs"]["yOffset"] = 7
  268.     E.db["nameplates"]["units"]["FRIENDLY_NPC"]["power"]["text"]["font"] = "Expressway"
  269.     E.db["nameplates"]["units"]["FRIENDLY_NPC"]["power"]["text"]["fontSize"] = 8
  270.     E.db["nameplates"]["units"]["FRIENDLY_NPC"]["showTitle"] = false
  271.     E.db["nameplates"]["units"]["FRIENDLY_NPC"]["buffs"]["numAuras"] = 6
  272.     E.db["nameplates"]["units"]["FRIENDLY_NPC"]["buffs"]["enable"] = false
  273.     E.db["nameplates"]["units"]["FRIENDLY_NPC"]["buffs"]["priority"] = "Blacklist,RaidBuffsElvUI,Dispellable,blockNoDuration,PlayerBuffs,TurtleBuffs,CastByUnit"
  274.     E.db["nameplates"]["units"]["FRIENDLY_NPC"]["buffs"]["size"] = 24
  275.     E.db["nameplates"]["units"]["FRIENDLY_NPC"]["buffs"]["yOffset"] = 27
  276.     E.db["nameplates"]["units"]["FRIENDLY_NPC"]["castbar"]["height"] = 4
  277.     E.db["nameplates"]["units"]["FRIENDLY_NPC"]["castbar"]["textPosition"] = "ONBAR"
  278.     E.db["nameplates"]["units"]["FRIENDLY_NPC"]["castbar"]["width"] = 100
  279.     E.db["nameplates"]["units"]["FRIENDLY_NPC"]["castbar"]["yOffset"] = -8
  280.     E.db["nameplates"]["units"]["FRIENDLY_NPC"]["name"]["font"] = "Expressway"
  281.     E.db["nameplates"]["units"]["FRIENDLY_NPC"]["name"]["fontSize"] = 8
  282.     E.db["nameplates"]["units"]["FRIENDLY_NPC"]["health"]["height"] = 5
  283.     E.db["nameplates"]["units"]["FRIENDLY_NPC"]["health"]["text"]["font"] = "Expressway"
  284.     E.db["nameplates"]["units"]["FRIENDLY_NPC"]["health"]["text"]["fontSize"] = 8
  285.     E.db["nameplates"]["units"]["FRIENDLY_NPC"]["level"]["font"] = "Expressway"
  286.     E.db["nameplates"]["units"]["FRIENDLY_NPC"]["level"]["fontSize"] = 8
  287.     E.db["nameplates"]["units"]["ENEMY_NPC"]["debuffs"]["countFont"] = "Expressway"
  288.     E.db["nameplates"]["units"]["ENEMY_NPC"]["debuffs"]["spacing"] = 0
  289.     E.db["nameplates"]["units"]["ENEMY_NPC"]["debuffs"]["numAuras"] = 8
  290.     E.db["nameplates"]["units"]["ENEMY_NPC"]["debuffs"]["size"] = 15
  291.     E.db["nameplates"]["units"]["ENEMY_NPC"]["debuffs"]["yOffset"] = -10
  292.     E.db["nameplates"]["units"]["ENEMY_NPC"]["power"]["text"]["font"] = "Expressway"
  293.     E.db["nameplates"]["units"]["ENEMY_NPC"]["power"]["text"]["fontSize"] = 8
  294.     E.db["nameplates"]["units"]["ENEMY_NPC"]["showTitle"] = false
  295.     E.db["nameplates"]["units"]["ENEMY_NPC"]["buffs"]["enable"] = false
  296.     E.db["nameplates"]["units"]["ENEMY_NPC"]["buffs"]["numAuras"] = 6
  297.     E.db["nameplates"]["units"]["ENEMY_NPC"]["buffs"]["size"] = 24
  298.     E.db["nameplates"]["units"]["ENEMY_NPC"]["buffs"]["yOffset"] = 27
  299.     E.db["nameplates"]["units"]["ENEMY_NPC"]["health"]["height"] = 6
  300.     E.db["nameplates"]["units"]["ENEMY_NPC"]["health"]["text"]["font"] = "Expressway"
  301.     E.db["nameplates"]["units"]["ENEMY_NPC"]["health"]["text"]["fontSize"] = 8
  302.     E.db["nameplates"]["units"]["ENEMY_NPC"]["castbar"]["height"] = 5
  303.     E.db["nameplates"]["units"]["ENEMY_NPC"]["castbar"]["width"] = 100
  304.     E.db["nameplates"]["units"]["ENEMY_NPC"]["castbar"]["iconOffsetY"] = -1
  305.     E.db["nameplates"]["units"]["ENEMY_NPC"]["castbar"]["iconSize"] = 15
  306.     E.db["nameplates"]["units"]["ENEMY_NPC"]["castbar"]["textPosition"] = "ONBAR"
  307.     E.db["nameplates"]["units"]["ENEMY_NPC"]["castbar"]["iconOffsetX"] = 2
  308.     E.db["nameplates"]["units"]["ENEMY_NPC"]["castbar"]["yOffset"] = -7
  309.     E.db["nameplates"]["units"]["ENEMY_NPC"]["level"]["font"] = "Expressway"
  310.     E.db["nameplates"]["units"]["ENEMY_NPC"]["level"]["position"] = "BOTTOMLEFT"
  311.     E.db["nameplates"]["units"]["ENEMY_NPC"]["level"]["enable"] = false
  312.     E.db["nameplates"]["units"]["ENEMY_NPC"]["level"]["fontSize"] = 8
  313.     E.db["nameplates"]["units"]["ENEMY_NPC"]["level"]["yOffset"] = 18
  314.     E.db["nameplates"]["units"]["ENEMY_NPC"]["name"]["enable"] = false
  315.     E.db["nameplates"]["units"]["ENEMY_NPC"]["name"]["fontSize"] = 8
  316.     E.db["nameplates"]["units"]["ENEMY_NPC"]["name"]["font"] = "Expressway"
  317.     E.db["nameplates"]["units"]["ENEMY_PLAYER"]["debuffs"]["countFont"] = "Expressway"
  318.     E.db["nameplates"]["units"]["ENEMY_PLAYER"]["debuffs"]["spacing"] = 0
  319.     E.db["nameplates"]["units"]["ENEMY_PLAYER"]["debuffs"]["numAuras"] = 8
  320.     E.db["nameplates"]["units"]["ENEMY_PLAYER"]["debuffs"]["priority"] = "Blacklist,Personal,CCDebuffs"
  321.     E.db["nameplates"]["units"]["ENEMY_PLAYER"]["debuffs"]["size"] = 20
  322.     E.db["nameplates"]["units"]["ENEMY_PLAYER"]["debuffs"]["yOffset"] = -10
  323.     E.db["nameplates"]["units"]["ENEMY_PLAYER"]["power"]["displayAltPower"] = true
  324.     E.db["nameplates"]["units"]["ENEMY_PLAYER"]["power"]["text"]["font"] = "Expressway"
  325.     E.db["nameplates"]["units"]["ENEMY_PLAYER"]["power"]["text"]["fontSize"] = 8
  326.     E.db["nameplates"]["units"]["ENEMY_PLAYER"]["showTitle"] = false
  327.     E.db["nameplates"]["units"]["ENEMY_PLAYER"]["buffs"]["maxDuration"] = 0
  328.     E.db["nameplates"]["units"]["ENEMY_PLAYER"]["buffs"]["numAuras"] = 6
  329.     E.db["nameplates"]["units"]["ENEMY_PLAYER"]["buffs"]["enable"] = false
  330.     E.db["nameplates"]["units"]["ENEMY_PLAYER"]["buffs"]["priority"] = "Blacklist,RaidBuffsElvUI,Dispellable,blockNoDuration,PlayerBuffs,TurtleBuffs,CastByUnit"
  331.     E.db["nameplates"]["units"]["ENEMY_PLAYER"]["buffs"]["size"] = 24
  332.     E.db["nameplates"]["units"]["ENEMY_PLAYER"]["buffs"]["yOffset"] = 27
  333.     E.db["nameplates"]["units"]["ENEMY_PLAYER"]["title"]["format"] = "[npctitle]"
  334.     E.db["nameplates"]["units"]["ENEMY_PLAYER"]["castbar"]["height"] = 4
  335.     E.db["nameplates"]["units"]["ENEMY_PLAYER"]["castbar"]["textPosition"] = "ONBAR"
  336.     E.db["nameplates"]["units"]["ENEMY_PLAYER"]["castbar"]["width"] = 100
  337.     E.db["nameplates"]["units"]["ENEMY_PLAYER"]["castbar"]["yOffset"] = -8
  338.     E.db["nameplates"]["units"]["ENEMY_PLAYER"]["health"]["height"] = 5
  339.     E.db["nameplates"]["units"]["ENEMY_PLAYER"]["health"]["text"]["font"] = "Expressway"
  340.     E.db["nameplates"]["units"]["ENEMY_PLAYER"]["health"]["text"]["fontSize"] = 8
  341.     E.db["nameplates"]["units"]["ENEMY_PLAYER"]["level"]["enable"] = false
  342.     E.db["nameplates"]["units"]["ENEMY_PLAYER"]["level"]["fontSize"] = 8
  343.     E.db["nameplates"]["units"]["ENEMY_PLAYER"]["level"]["format"] = "[difficultycolor][level][shortclassification]"
  344.     E.db["nameplates"]["units"]["ENEMY_PLAYER"]["level"]["font"] = "Expressway"
  345.     E.db["nameplates"]["units"]["ENEMY_PLAYER"]["name"]["enable"] = false
  346.     E.db["nameplates"]["units"]["ENEMY_PLAYER"]["name"]["fontSize"] = 8
  347.     E.db["nameplates"]["units"]["ENEMY_PLAYER"]["name"]["format"] = "[name]"
  348.     E.db["nameplates"]["units"]["ENEMY_PLAYER"]["name"]["font"] = "Expressway"
  349.     E.db["nameplates"]["statusbar"] = "Smooth"
  350.     E.db["nameplates"]["loadDistance"] = 20
  351.     E.db["nameplates"]["smoothbars"] = true
  352.     --"Unitframs"
  353.     E.db["unitframe"]["fontSize"] = 8
  354.     E.db["unitframe"]["units"]["focus"]["debuffs"]["enable"] = false
  355.     E.db["unitframe"]["units"]["focus"]["threatStyle"] = "NONE"
  356.     E.db["unitframe"]["units"]["focus"]["power"]["enable"] = false
  357.     E.db["unitframe"]["units"]["focus"]["width"] = 66
  358.     E.db["unitframe"]["units"]["focus"]["name"]["text_format"] = "[name:short]"
  359.     E.db["unitframe"]["units"]["focus"]["castbar"]["enable"] = false
  360.     E.db["unitframe"]["units"]["focus"]["height"] = 34
  361.     E.db["unitframe"]["units"]["tank"]["enable"] = false
  362.     E.db["unitframe"]["units"]["arena"]["debuffs"]["anchorPoint"] = "TOPLEFT"
  363.     E.db["unitframe"]["units"]["arena"]["debuffs"]["sizeOverride"] = 18
  364.     E.db["unitframe"]["units"]["arena"]["debuffs"]["yOffset"] = 0
  365.     E.db["unitframe"]["units"]["arena"]["castbar"]["width"] = 200
  366.     E.db["unitframe"]["units"]["arena"]["castbar"]["spark"] = false
  367.     E.db["unitframe"]["units"]["arena"]["castbar"]["height"] = 10
  368.     E.db["unitframe"]["units"]["arena"]["castbar"]["format"] = ""
  369.     E.db["unitframe"]["units"]["arena"]["castbar"]["icon"] = false
  370.     E.db["unitframe"]["units"]["arena"]["width"] = 200
  371.     E.db["unitframe"]["units"]["arena"]["health"]["text_format"] = "[health:current]"
  372.     E.db["unitframe"]["units"]["arena"]["spacing"] = 37
  373.     E.db["unitframe"]["units"]["arena"]["height"] = 35
  374.     E.db["unitframe"]["units"]["arena"]["buffs"]["anchorPoint"] = "BOTTOMLEFT"
  375.     E.db["unitframe"]["units"]["arena"]["buffs"]["sizeOverride"] = 18
  376.     E.db["unitframe"]["units"]["arena"]["buffs"]["yOffset"] = 0
  377.     E.db["unitframe"]["units"]["focustarget"]["width"] = 200
  378.     E.db["unitframe"]["units"]["pet"]["portrait"]["overlay"] = true
  379.     E.db["unitframe"]["units"]["pet"]["colorOverride"] = "FORCE_ON"
  380.     E.db["unitframe"]["units"]["pet"]["buffIndicator"]["enable"] = false
  381.     E.db["unitframe"]["units"]["pet"]["threatStyle"] = "NONE"
  382.     E.db["unitframe"]["units"]["pet"]["castbar"]["enable"] = false
  383.     E.db["unitframe"]["units"]["pet"]["castbar"]["height"] = 10
  384.     E.db["unitframe"]["units"]["pet"]["castbar"]["width"] = 302
  385.     E.db["unitframe"]["units"]["pet"]["width"] = 50
  386.     E.db["unitframe"]["units"]["pet"]["power"]["height"] = 4
  387.     E.db["unitframe"]["units"]["pet"]["height"] = 22
  388.     E.db["unitframe"]["units"]["pet"]["name"]["text_format"] = ""
  389.     E.db["unitframe"]["units"]["targettarget"]["debuffs"]["enable"] = false
  390.     E.db["unitframe"]["units"]["targettarget"]["portrait"]["overlay"] = true
  391.     E.db["unitframe"]["units"]["targettarget"]["power"]["height"] = 4
  392.     E.db["unitframe"]["units"]["targettarget"]["customTexts"]["Names"]["attachTextTo"] = "Health"
  393.     E.db["unitframe"]["units"]["targettarget"]["customTexts"]["Names"]["enable"] = false
  394.     E.db["unitframe"]["units"]["targettarget"]["customTexts"]["Names"]["text_format"] = "[name:short] "
  395.     E.db["unitframe"]["units"]["targettarget"]["customTexts"]["Names"]["yOffset"] = 0
  396.     E.db["unitframe"]["units"]["targettarget"]["customTexts"]["Names"]["font"] = "Emblem"
  397.     E.db["unitframe"]["units"]["targettarget"]["customTexts"]["Names"]["justifyH"] = "CENTER"
  398.     E.db["unitframe"]["units"]["targettarget"]["customTexts"]["Names"]["fontOutline"] = "NONE"
  399.     E.db["unitframe"]["units"]["targettarget"]["customTexts"]["Names"]["xOffset"] = 0
  400.     E.db["unitframe"]["units"]["targettarget"]["customTexts"]["Names"]["size"] = 15
  401.     E.db["unitframe"]["units"]["targettarget"]["width"] = 50
  402.     E.db["unitframe"]["units"]["targettarget"]["name"]["text_format"] = ""
  403.     E.db["unitframe"]["units"]["targettarget"]["height"] = 22
  404.     E.db["unitframe"]["units"]["assist"]["enable"] = false
  405.     E.db["unitframe"]["units"]["party"]["debuffs"]["enable"] = false
  406.     E.db["unitframe"]["units"]["party"]["debuffs"]["sizeOverride"] = 17
  407.     E.db["unitframe"]["units"]["party"]["debuffs"]["xOffset"] = -56
  408.     E.db["unitframe"]["units"]["party"]["debuffs"]["yOffset"] = -2
  409.     E.db["unitframe"]["units"]["party"]["rdebuffs"]["font"] = "Expressway"
  410.     E.db["unitframe"]["units"]["party"]["colorOverride"] = "FORCE_ON"
  411.     E.db["unitframe"]["units"]["party"]["growthDirection"] = "LEFT_UP"
  412.     E.db["unitframe"]["units"]["party"]["buffs"]["xOffset"] = 1
  413.     E.db["unitframe"]["units"]["party"]["buffs"]["sizeOverride"] = 22
  414.     E.db["unitframe"]["units"]["party"]["buffs"]["anchorPoint"] = "RIGHT"
  415.     E.db["unitframe"]["units"]["party"]["buffs"]["yOffset"] = -1
  416.     E.db["unitframe"]["units"]["party"]["buffIndicator"]["enable"] = false
  417.     E.db["unitframe"]["units"]["party"]["roleIcon"]["size"] = 10
  418.     E.db["unitframe"]["units"]["party"]["roleIcon"]["position"] = "LEFT"
  419.     E.db["unitframe"]["units"]["party"]["power"]["height"] = 4
  420.     E.db["unitframe"]["units"]["party"]["power"]["text_format"] = ""
  421.     E.db["unitframe"]["units"]["party"]["customTexts"]["Name Of Party"]["attachTextTo"] = "Health"
  422.     E.db["unitframe"]["units"]["party"]["customTexts"]["Name Of Party"]["enable"] = true
  423.     E.db["unitframe"]["units"]["party"]["customTexts"]["Name Of Party"]["text_format"] = "[name]"
  424.     E.db["unitframe"]["units"]["party"]["customTexts"]["Name Of Party"]["yOffset"] = 11
  425.     E.db["unitframe"]["units"]["party"]["customTexts"]["Name Of Party"]["font"] = "Emblem"
  426.     E.db["unitframe"]["units"]["party"]["customTexts"]["Name Of Party"]["justifyH"] = "CENTER"
  427.     E.db["unitframe"]["units"]["party"]["customTexts"]["Name Of Party"]["fontOutline"] = "OUTLINE"
  428.     E.db["unitframe"]["units"]["party"]["customTexts"]["Name Of Party"]["xOffset"] = 0
  429.     E.db["unitframe"]["units"]["party"]["customTexts"]["Name Of Party"]["size"] = 10
  430.     E.db["unitframe"]["units"]["party"]["healPrediction"]["enable"] = true
  431.     E.db["unitframe"]["units"]["party"]["width"] = 81
  432.     E.db["unitframe"]["units"]["party"]["health"]["text_format"] = ""
  433.     E.db["unitframe"]["units"]["party"]["name"]["text_format"] = ""
  434.     E.db["unitframe"]["units"]["party"]["name"]["yOffset"] = 12
  435.     E.db["unitframe"]["units"]["party"]["height"] = 15
  436.     E.db["unitframe"]["units"]["party"]["verticalSpacing"] = 1
  437.     E.db["unitframe"]["units"]["raid40"]["horizontalSpacing"] = 0
  438.     E.db["unitframe"]["units"]["raid40"]["enable"] = false
  439.     E.db["unitframe"]["units"]["raid40"]["rdebuffs"]["font"] = "Expressway"
  440.     E.db["unitframe"]["units"]["raid40"]["growthDirection"] = "DOWN_RIGHT"
  441.     E.db["unitframe"]["units"]["raid40"]["buffIndicator"]["enable"] = false
  442.     E.db["unitframe"]["units"]["raid40"]["threatStyle"] = "NONE"
  443.     E.db["unitframe"]["units"]["raid40"]["width"] = 55
  444.     E.db["unitframe"]["units"]["raid40"]["buffs"]["xOffset"] = 52
  445.     E.db["unitframe"]["units"]["raid40"]["buffs"]["sizeOverride"] = 16
  446.     E.db["unitframe"]["units"]["raid40"]["buffs"]["perrow"] = 4
  447.     E.db["unitframe"]["units"]["raid40"]["buffs"]["yOffset"] = -10
  448.     E.db["unitframe"]["units"]["raid40"]["name"]["text_format"] = ""
  449.     E.db["unitframe"]["units"]["raid40"]["name"]["yOffset"] = 4
  450.     E.db["unitframe"]["units"]["raid40"]["height"] = 30
  451.     E.db["unitframe"]["units"]["raid40"]["verticalSpacing"] = 0
  452.     E.db["unitframe"]["units"]["raid40"]["roleIcon"]["size"] = 8
  453.     E.db["unitframe"]["units"]["raid40"]["roleIcon"]["position"] = "BOTTOMLEFT"
  454.     E.db["unitframe"]["units"]["target"]["debuffs"]["anchorPoint"] = "TOPLEFT"
  455.     E.db["unitframe"]["units"]["target"]["debuffs"]["sizeOverride"] = 30
  456.     E.db["unitframe"]["units"]["target"]["debuffs"]["perrow"] = 7
  457.     E.db["unitframe"]["units"]["target"]["debuffs"]["attachTo"] = "FRAME"
  458.     E.db["unitframe"]["units"]["target"]["debuffs"]["desaturate"] = false
  459.     E.db["unitframe"]["units"]["target"]["debuffs"]["yOffset"] = 2
  460.     E.db["unitframe"]["units"]["target"]["portrait"]["width"] = 150
  461.     E.db["unitframe"]["units"]["target"]["aurabar"]["attachTo"] = "FRAME"
  462.     E.db["unitframe"]["units"]["target"]["aurabar"]["anchorPoint"] = "BELOW"
  463.     E.db["unitframe"]["units"]["target"]["aurabar"]["height"] = 8
  464.     E.db["unitframe"]["units"]["target"]["aurabar"]["priority"] = "Blacklist,blockNoDuration,Personal,PlayerBuffs,Boss,RaidDebuffs"
  465.     E.db["unitframe"]["units"]["target"]["aurabar"]["enable"] = false
  466.     E.db["unitframe"]["units"]["target"]["aurabar"]["maxDuration"] = 300
  467.     E.db["unitframe"]["units"]["target"]["customTexts"]["Level01"]["attachTextTo"] = "Health"
  468.     E.db["unitframe"]["units"]["target"]["customTexts"]["Level01"]["enable"] = true
  469.     E.db["unitframe"]["units"]["target"]["customTexts"]["Level01"]["text_format"] = ""
  470.     E.db["unitframe"]["units"]["target"]["customTexts"]["Level01"]["yOffset"] = 6
  471.     E.db["unitframe"]["units"]["target"]["customTexts"]["Level01"]["font"] = "Anime Ace"
  472.     E.db["unitframe"]["units"]["target"]["customTexts"]["Level01"]["justifyH"] = "LEFT"
  473.     E.db["unitframe"]["units"]["target"]["customTexts"]["Level01"]["fontOutline"] = "OUTLINE"
  474.     E.db["unitframe"]["units"]["target"]["customTexts"]["Level01"]["xOffset"] = -1
  475.     E.db["unitframe"]["units"]["target"]["customTexts"]["Level01"]["size"] = 10
  476.     E.db["unitframe"]["units"]["target"]["customTexts"]["Current Power"]["attachTextTo"] = "Power"
  477.     E.db["unitframe"]["units"]["target"]["customTexts"]["Current Power"]["enable"] = false
  478.     E.db["unitframe"]["units"]["target"]["customTexts"]["Current Power"]["text_format"] = "[power:current]"
  479.     E.db["unitframe"]["units"]["target"]["customTexts"]["Current Power"]["yOffset"] = 3
  480.     E.db["unitframe"]["units"]["target"]["customTexts"]["Current Power"]["font"] = "Emblem"
  481.     E.db["unitframe"]["units"]["target"]["customTexts"]["Current Power"]["justifyH"] = "CENTER"
  482.     E.db["unitframe"]["units"]["target"]["customTexts"]["Current Power"]["fontOutline"] = "NONE"
  483.     E.db["unitframe"]["units"]["target"]["customTexts"]["Current Power"]["xOffset"] = 0
  484.     E.db["unitframe"]["units"]["target"]["customTexts"]["Current Power"]["size"] = 14
  485.     E.db["unitframe"]["units"]["target"]["customTexts"]["Name and level"]["attachTextTo"] = "Health"
  486.     E.db["unitframe"]["units"]["target"]["customTexts"]["Name and level"]["enable"] = true
  487.     E.db["unitframe"]["units"]["target"]["customTexts"]["Name and level"]["text_format"] = "[afk][name:medium][shortclassification]"
  488.     E.db["unitframe"]["units"]["target"]["customTexts"]["Name and level"]["yOffset"] = 0
  489.     E.db["unitframe"]["units"]["target"]["customTexts"]["Name and level"]["font"] = "Emblem"
  490.     E.db["unitframe"]["units"]["target"]["customTexts"]["Name and level"]["justifyH"] = "RIGHT"
  491.     E.db["unitframe"]["units"]["target"]["customTexts"]["Name and level"]["fontOutline"] = "OUTLINE"
  492.     E.db["unitframe"]["units"]["target"]["customTexts"]["Name and level"]["xOffset"] = 0
  493.     E.db["unitframe"]["units"]["target"]["customTexts"]["Name and level"]["size"] = 11
  494.     E.db["unitframe"]["units"]["target"]["customTexts"]["HP"]["attachTextTo"] = "Health"
  495.     E.db["unitframe"]["units"]["target"]["customTexts"]["HP"]["xOffset"] = 0
  496.     E.db["unitframe"]["units"]["target"]["customTexts"]["HP"]["text_format"] = "[kmt-health:absorb]"
  497.     E.db["unitframe"]["units"]["target"]["customTexts"]["HP"]["yOffset"] = 0
  498.     E.db["unitframe"]["units"]["target"]["customTexts"]["HP"]["font"] = "Anime Ace"
  499.     E.db["unitframe"]["units"]["target"]["customTexts"]["HP"]["justifyH"] = "LEFT"
  500.     E.db["unitframe"]["units"]["target"]["customTexts"]["HP"]["fontOutline"] = "OUTLINE"
  501.     E.db["unitframe"]["units"]["target"]["customTexts"]["HP"]["enable"] = true
  502.     E.db["unitframe"]["units"]["target"]["customTexts"]["HP"]["size"] = 12
  503.     E.db["unitframe"]["units"]["target"]["customTexts"]["Percent"]["attachTextTo"] = "Health"
  504.     E.db["unitframe"]["units"]["target"]["customTexts"]["Percent"]["enable"] = false
  505.     E.db["unitframe"]["units"]["target"]["customTexts"]["Percent"]["text_format"] = "[perhp]%"
  506.     E.db["unitframe"]["units"]["target"]["customTexts"]["Percent"]["yOffset"] = -10
  507.     E.db["unitframe"]["units"]["target"]["customTexts"]["Percent"]["font"] = "Emblem"
  508.     E.db["unitframe"]["units"]["target"]["customTexts"]["Percent"]["justifyH"] = "RIGHT"
  509.     E.db["unitframe"]["units"]["target"]["customTexts"]["Percent"]["fontOutline"] = "NONE"
  510.     E.db["unitframe"]["units"]["target"]["customTexts"]["Percent"]["xOffset"] = -2
  511.     E.db["unitframe"]["units"]["target"]["customTexts"]["Percent"]["size"] = 12
  512.     E.db["unitframe"]["units"]["target"]["name"]["xOffset"] = 2
  513.     E.db["unitframe"]["units"]["target"]["name"]["yOffset"] = -2
  514.     E.db["unitframe"]["units"]["target"]["name"]["text_format"] = ""
  515.     E.db["unitframe"]["units"]["target"]["name"]["position"] = "TOPLEFT"
  516.     E.db["unitframe"]["units"]["target"]["width"] = 220
  517.     E.db["unitframe"]["units"]["target"]["infoPanel"]["enable"] = true
  518.     E.db["unitframe"]["units"]["target"]["infoPanel"]["height"] = 5
  519.     E.db["unitframe"]["units"]["target"]["infoPanel"]["transparent"] = true
  520.     E.db["unitframe"]["units"]["target"]["power"]["attachTextTo"] = "Power"
  521.     E.db["unitframe"]["units"]["target"]["power"]["strataAndLevel"]["useCustomLevel"] = true
  522.     E.db["unitframe"]["units"]["target"]["power"]["strataAndLevel"]["frameLevel"] = 128
  523.     E.db["unitframe"]["units"]["target"]["power"]["strataAndLevel"]["frameStrata"] = "TOOLTIP"
  524.     E.db["unitframe"]["units"]["target"]["power"]["xOffset"] = 0
  525.     E.db["unitframe"]["units"]["target"]["power"]["detachedWidth"] = 180
  526.     E.db["unitframe"]["units"]["target"]["power"]["text_format"] = ""
  527.     E.db["unitframe"]["units"]["target"]["power"]["height"] = 4
  528.     E.db["unitframe"]["units"]["target"]["fader"]["hover"] = true
  529.     E.db["unitframe"]["units"]["target"]["fader"]["combat"] = true
  530.     E.db["unitframe"]["units"]["target"]["fader"]["power"] = true
  531.     E.db["unitframe"]["units"]["target"]["fader"]["enable"] = false
  532.     E.db["unitframe"]["units"]["target"]["fader"]["range"] = false
  533.     E.db["unitframe"]["units"]["target"]["fader"]["playertarget"] = true
  534.     E.db["unitframe"]["units"]["target"]["fader"]["vehicle"] = true
  535.     E.db["unitframe"]["units"]["target"]["fader"]["casting"] = true
  536.     E.db["unitframe"]["units"]["target"]["fader"]["health"] = true
  537.     E.db["unitframe"]["units"]["target"]["castbar"]["yOffsetTime"] = -1
  538.     E.db["unitframe"]["units"]["target"]["castbar"]["xOffsetTime"] = 0
  539.     E.db["unitframe"]["units"]["target"]["castbar"]["iconAttachedTo"] = "Castbar"
  540.     E.db["unitframe"]["units"]["target"]["castbar"]["iconPosition"] = "RIGHT"
  541.     E.db["unitframe"]["units"]["target"]["castbar"]["yOffsetText"] = -1
  542.     E.db["unitframe"]["units"]["target"]["castbar"]["xOffsetText"] = 2
  543.     E.db["unitframe"]["units"]["target"]["castbar"]["iconSize"] = 32
  544.     E.db["unitframe"]["units"]["target"]["castbar"]["icon"] = false
  545.     E.db["unitframe"]["units"]["target"]["castbar"]["tickWidth"] = 3
  546.     E.db["unitframe"]["units"]["target"]["castbar"]["iconYOffset"] = -2
  547.     E.db["unitframe"]["units"]["target"]["castbar"]["width"] = 220
  548.     E.db["unitframe"]["units"]["target"]["castbar"]["iconXOffset"] = 5
  549.     E.db["unitframe"]["units"]["target"]["castbar"]["overlayOnFrame"] = "InfoPanel"
  550.     E.db["unitframe"]["units"]["target"]["castbar"]["height"] = 10
  551.     E.db["unitframe"]["units"]["target"]["castbar"]["iconAttached"] = false
  552.     E.db["unitframe"]["units"]["target"]["castbar"]["textColor"]["b"] = 1
  553.     E.db["unitframe"]["units"]["target"]["castbar"]["textColor"]["g"] = 1
  554.     E.db["unitframe"]["units"]["target"]["castbar"]["textColor"]["r"] = 1
  555.     E.db["unitframe"]["units"]["target"]["height"] = 22
  556.     E.db["unitframe"]["units"]["target"]["buffs"]["anchorPoint"] = "BOTTOMLEFT"
  557.     E.db["unitframe"]["units"]["target"]["buffs"]["sizeOverride"] = 24
  558.     E.db["unitframe"]["units"]["target"]["buffs"]["perrow"] = 9
  559.     E.db["unitframe"]["units"]["target"]["buffs"]["spacing"] = 0
  560.     E.db["unitframe"]["units"]["target"]["buffs"]["countFont"] = "Expressway"
  561.     E.db["unitframe"]["units"]["target"]["buffs"]["durationPosition"] = "TOP"
  562.     E.db["unitframe"]["units"]["target"]["buffs"]["countFontSize"] = 8
  563.     E.db["unitframe"]["units"]["target"]["buffs"]["yOffset"] = -6
  564.     E.db["unitframe"]["units"]["target"]["health"]["text_format"] = ""
  565.     E.db["unitframe"]["units"]["target"]["health"]["position"] = "TOPLEFT"
  566.     E.db["unitframe"]["units"]["raid"]["horizontalSpacing"] = 0
  567.     E.db["unitframe"]["units"]["raid"]["debuffs"]["xOffset"] = -52
  568.     E.db["unitframe"]["units"]["raid"]["debuffs"]["yOffset"] = 8
  569.     E.db["unitframe"]["units"]["raid"]["rdebuffs"]["enable"] = false
  570.     E.db["unitframe"]["units"]["raid"]["rdebuffs"]["font"] = "Expressway"
  571.     E.db["unitframe"]["units"]["raid"]["numGroups"] = 8
  572.     E.db["unitframe"]["units"]["raid"]["growthDirection"] = "LEFT_UP"
  573.     E.db["unitframe"]["units"]["raid"]["roleIcon"]["enable"] = false
  574.     E.db["unitframe"]["units"]["raid"]["roleIcon"]["size"] = 8
  575.     E.db["unitframe"]["units"]["raid"]["roleIcon"]["position"] = "BOTTOMLEFT"
  576.     E.db["unitframe"]["units"]["raid"]["buffIndicator"]["enable"] = false
  577.     E.db["unitframe"]["units"]["raid"]["health"]["text_format"] = ""
  578.     E.db["unitframe"]["units"]["raid"]["groupsPerRowCol"] = 2
  579.     E.db["unitframe"]["units"]["raid"]["threatStyle"] = "NONE"
  580.     E.db["unitframe"]["units"]["raid"]["power"]["enable"] = false
  581.     E.db["unitframe"]["units"]["raid"]["width"] = 44
  582.     E.db["unitframe"]["units"]["raid"]["verticalSpacing"] = 0
  583.     E.db["unitframe"]["units"]["raid"]["name"]["text_format"] = ""
  584.     E.db["unitframe"]["units"]["raid"]["name"]["yOffset"] = 4
  585.     E.db["unitframe"]["units"]["raid"]["height"] = 10
  586.     E.db["unitframe"]["units"]["raid"]["buffs"]["xOffset"] = 52
  587.     E.db["unitframe"]["units"]["raid"]["buffs"]["sizeOverride"] = 16
  588.     E.db["unitframe"]["units"]["raid"]["buffs"]["yOffset"] = -6
  589.     E.db["unitframe"]["units"]["raid"]["visibility"] = "[@raid6,noexists] hide;show"
  590.     E.db["unitframe"]["units"]["boss"]["debuffs"]["anchorPoint"] = "TOPLEFT"
  591.     E.db["unitframe"]["units"]["boss"]["debuffs"]["countFont"] = "Expressway"
  592.     E.db["unitframe"]["units"]["boss"]["debuffs"]["perrow"] = 10
  593.     E.db["unitframe"]["units"]["boss"]["debuffs"]["sizeOverride"] = 15
  594.     E.db["unitframe"]["units"]["boss"]["debuffs"]["yOffset"] = 1
  595.     E.db["unitframe"]["units"]["boss"]["portrait"]["overlay"] = true
  596.     E.db["unitframe"]["units"]["boss"]["portrait"]["enable"] = true
  597.     E.db["unitframe"]["units"]["boss"]["castbar"]["height"] = 10
  598.     E.db["unitframe"]["units"]["boss"]["castbar"]["width"] = 150
  599.     E.db["unitframe"]["units"]["boss"]["customTexts"]["HP1"]["attachTextTo"] = "Health"
  600.     E.db["unitframe"]["units"]["boss"]["customTexts"]["HP1"]["enable"] = true
  601.     E.db["unitframe"]["units"]["boss"]["customTexts"]["HP1"]["text_format"] = "[healthcolor][health:current]"
  602.     E.db["unitframe"]["units"]["boss"]["customTexts"]["HP1"]["yOffset"] = -2
  603.     E.db["unitframe"]["units"]["boss"]["customTexts"]["HP1"]["font"] = "Expressway"
  604.     E.db["unitframe"]["units"]["boss"]["customTexts"]["HP1"]["justifyH"] = "RIGHT"
  605.     E.db["unitframe"]["units"]["boss"]["customTexts"]["HP1"]["fontOutline"] = "OUTLINE"
  606.     E.db["unitframe"]["units"]["boss"]["customTexts"]["HP1"]["xOffset"] = 1
  607.     E.db["unitframe"]["units"]["boss"]["customTexts"]["HP1"]["size"] = 12
  608.     E.db["unitframe"]["units"]["boss"]["customTexts"]["Name1"]["attachTextTo"] = "Health"
  609.     E.db["unitframe"]["units"]["boss"]["customTexts"]["Name1"]["enable"] = true
  610.     E.db["unitframe"]["units"]["boss"]["customTexts"]["Name1"]["text_format"] = "[namecolor][name:medium]"
  611.     E.db["unitframe"]["units"]["boss"]["customTexts"]["Name1"]["yOffset"] = 5
  612.     E.db["unitframe"]["units"]["boss"]["customTexts"]["Name1"]["font"] = "Expressway"
  613.     E.db["unitframe"]["units"]["boss"]["customTexts"]["Name1"]["justifyH"] = "LEFT"
  614.     E.db["unitframe"]["units"]["boss"]["customTexts"]["Name1"]["fontOutline"] = "OUTLINE"
  615.     E.db["unitframe"]["units"]["boss"]["customTexts"]["Name1"]["xOffset"] = 0
  616.     E.db["unitframe"]["units"]["boss"]["customTexts"]["Name1"]["size"] = 10
  617.     E.db["unitframe"]["units"]["boss"]["power"]["height"] = 5
  618.     E.db["unitframe"]["units"]["boss"]["power"]["xOffset"] = 0
  619.     E.db["unitframe"]["units"]["boss"]["power"]["text_format"] = ""
  620.     E.db["unitframe"]["units"]["boss"]["power"]["yOffset"] = -16
  621.     E.db["unitframe"]["units"]["boss"]["width"] = 150
  622.     E.db["unitframe"]["units"]["boss"]["name"]["xOffset"] = 15
  623.     E.db["unitframe"]["units"]["boss"]["name"]["text_format"] = ""
  624.     E.db["unitframe"]["units"]["boss"]["name"]["position"] = "LEFT"
  625.     E.db["unitframe"]["units"]["boss"]["spacing"] = 30
  626.     E.db["unitframe"]["units"]["boss"]["height"] = 20
  627.     E.db["unitframe"]["units"]["boss"]["buffs"]["anchorPoint"] = "BOTTOMLEFT"
  628.     E.db["unitframe"]["units"]["boss"]["buffs"]["sizeOverride"] = 15
  629.     E.db["unitframe"]["units"]["boss"]["buffs"]["xOffset"] = -5
  630.     E.db["unitframe"]["units"]["boss"]["buffs"]["enable"] = false
  631.     E.db["unitframe"]["units"]["boss"]["buffs"]["attachTo"] = "POWER"
  632.     E.db["unitframe"]["units"]["boss"]["buffs"]["perrow"] = 11
  633.     E.db["unitframe"]["units"]["boss"]["buffs"]["yOffset"] = 0
  634.     E.db["unitframe"]["units"]["boss"]["health"]["xOffset"] = 0
  635.     E.db["unitframe"]["units"]["boss"]["health"]["text_format"] = ""
  636.     E.db["unitframe"]["units"]["player"]["debuffs"]["anchorPoint"] = "TOPRIGHT"
  637.     E.db["unitframe"]["units"]["player"]["debuffs"]["sizeOverride"] = 24
  638.     E.db["unitframe"]["units"]["player"]["debuffs"]["spacing"] = 2
  639.     E.db["unitframe"]["units"]["player"]["debuffs"]["enable"] = false
  640.     E.db["unitframe"]["units"]["player"]["debuffs"]["perrow"] = 10
  641.     E.db["unitframe"]["units"]["player"]["portrait"]["width"] = 150
  642.     E.db["unitframe"]["units"]["player"]["CombatIcon"]["size"] = 18
  643.     E.db["unitframe"]["units"]["player"]["aurabar"]["maxDuration"] = 300
  644.     E.db["unitframe"]["units"]["player"]["aurabar"]["height"] = 8
  645.     E.db["unitframe"]["units"]["player"]["aurabar"]["attachTo"] = "FRAME"
  646.     E.db["unitframe"]["units"]["player"]["aurabar"]["enable"] = false
  647.     E.db["unitframe"]["units"]["player"]["aurabar"]["anchorPoint"] = "BELOW"
  648.     E.db["unitframe"]["units"]["player"]["RestIcon"]["xOffset"] = -2
  649.     E.db["unitframe"]["units"]["player"]["RestIcon"]["yOffset"] = 2
  650.     E.db["unitframe"]["units"]["player"]["classbar"]["detachFromFrame"] = true
  651.     E.db["unitframe"]["units"]["player"]["classbar"]["strataAndLevel"]["frameStrata"] = "HIGH"
  652.     E.db["unitframe"]["units"]["player"]["classbar"]["autoHide"] = true
  653.     E.db["unitframe"]["units"]["player"]["classbar"]["enable"] = false
  654.     E.db["unitframe"]["units"]["player"]["classbar"]["detachedWidth"] = 240
  655.     E.db["unitframe"]["units"]["player"]["classbar"]["height"] = 8
  656.     E.db["unitframe"]["units"]["player"]["castbar"]["height"] = 12
  657.     E.db["unitframe"]["units"]["player"]["castbar"]["yOffsetTime"] = -1
  658.     E.db["unitframe"]["units"]["player"]["castbar"]["xOffsetTime"] = 0
  659.     E.db["unitframe"]["units"]["player"]["castbar"]["iconAttachedTo"] = "Castbar"
  660.     E.db["unitframe"]["units"]["player"]["castbar"]["overlayOnFrame"] = "InfoPanel"
  661.     E.db["unitframe"]["units"]["player"]["castbar"]["iconXOffset"] = -5
  662.     E.db["unitframe"]["units"]["player"]["castbar"]["width"] = 220
  663.     E.db["unitframe"]["units"]["player"]["castbar"]["yOffsetText"] = -1
  664.     E.db["unitframe"]["units"]["player"]["castbar"]["xOffsetText"] = 2
  665.     E.db["unitframe"]["units"]["player"]["castbar"]["iconSize"] = 32
  666.     E.db["unitframe"]["units"]["player"]["castbar"]["iconAttached"] = false
  667.     E.db["unitframe"]["units"]["player"]["castbar"]["icon"] = false
  668.     E.db["unitframe"]["units"]["player"]["castbar"]["textColor"]["b"] = 1
  669.     E.db["unitframe"]["units"]["player"]["castbar"]["textColor"]["g"] = 1
  670.     E.db["unitframe"]["units"]["player"]["castbar"]["textColor"]["r"] = 1
  671.     E.db["unitframe"]["units"]["player"]["customTexts"]["Power\Mana"]["attachTextTo"] = "Power"
  672.     E.db["unitframe"]["units"]["player"]["customTexts"]["Power\Mana"]["xOffset"] = 0
  673.     E.db["unitframe"]["units"]["player"]["customTexts"]["Power\Mana"]["text_format"] = "[power:current]"
  674.     E.db["unitframe"]["units"]["player"]["customTexts"]["Power\Mana"]["yOffset"] = 0
  675.     E.db["unitframe"]["units"]["player"]["customTexts"]["Power\Mana"]["font"] = "Emblem"
  676.     E.db["unitframe"]["units"]["player"]["customTexts"]["Power\Mana"]["justifyH"] = "CENTER"
  677.     E.db["unitframe"]["units"]["player"]["customTexts"]["Power\Mana"]["fontOutline"] = "NONE"
  678.     E.db["unitframe"]["units"]["player"]["customTexts"]["Power\Mana"]["enable"] = false
  679.     E.db["unitframe"]["units"]["player"]["customTexts"]["Power\Mana"]["size"] = 28
  680.     E.db["unitframe"]["units"]["player"]["customTexts"]["Name and Level"]["attachTextTo"] = "Health"
  681.     E.db["unitframe"]["units"]["player"]["customTexts"]["Name and Level"]["enable"] = true
  682.     E.db["unitframe"]["units"]["player"]["customTexts"]["Name and Level"]["text_format"] = "[name:medium] [shortclassification][afk]"
  683.     E.db["unitframe"]["units"]["player"]["customTexts"]["Name and Level"]["yOffset"] = 0
  684.     E.db["unitframe"]["units"]["player"]["customTexts"]["Name and Level"]["font"] = "Emblem"
  685.     E.db["unitframe"]["units"]["player"]["customTexts"]["Name and Level"]["justifyH"] = "LEFT"
  686.     E.db["unitframe"]["units"]["player"]["customTexts"]["Name and Level"]["fontOutline"] = "OUTLINE"
  687.     E.db["unitframe"]["units"]["player"]["customTexts"]["Name and Level"]["xOffset"] = 2
  688.     E.db["unitframe"]["units"]["player"]["customTexts"]["Name and Level"]["size"] = 11
  689.     E.db["unitframe"]["units"]["player"]["customTexts"]["smart"]["yOffset"] = 0
  690.     E.db["unitframe"]["units"]["player"]["customTexts"]["smart"]["font"] = "Anime Ace"
  691.     E.db["unitframe"]["units"]["player"]["customTexts"]["smart"]["justifyH"] = "CENTER"
  692.     E.db["unitframe"]["units"]["player"]["customTexts"]["smart"]["fontOutline"] = "NONE"
  693.     E.db["unitframe"]["units"]["player"]["customTexts"]["smart"]["enable"] = true
  694.     E.db["unitframe"]["units"]["player"]["customTexts"]["smart"]["xOffset"] = 0
  695.     E.db["unitframe"]["units"]["player"]["customTexts"]["smart"]["text_format"] = ""
  696.     E.db["unitframe"]["units"]["player"]["customTexts"]["smart"]["size"] = 11
  697.     E.db["unitframe"]["units"]["player"]["customTexts"]["Level"]["attachTextTo"] = "Health"
  698.     E.db["unitframe"]["units"]["player"]["customTexts"]["Level"]["xOffset"] = 0
  699.     E.db["unitframe"]["units"]["player"]["customTexts"]["Level"]["text_format"] = "[level]"
  700.     E.db["unitframe"]["units"]["player"]["customTexts"]["Level"]["yOffset"] = 14
  701.     E.db["unitframe"]["units"]["player"]["customTexts"]["Level"]["font"] = "Anime Ace"
  702.     E.db["unitframe"]["units"]["player"]["customTexts"]["Level"]["justifyH"] = "LEFT"
  703.     E.db["unitframe"]["units"]["player"]["customTexts"]["Level"]["fontOutline"] = "OUTLINE"
  704.     E.db["unitframe"]["units"]["player"]["customTexts"]["Level"]["enable"] = false
  705.     E.db["unitframe"]["units"]["player"]["customTexts"]["Level"]["size"] = 6
  706.     E.db["unitframe"]["units"]["player"]["customTexts"]["HP"]["attachTextTo"] = "Health"
  707.     E.db["unitframe"]["units"]["player"]["customTexts"]["HP"]["enable"] = true
  708.     E.db["unitframe"]["units"]["player"]["customTexts"]["HP"]["text_format"] = "[kmt-health:absorb]"
  709.     E.db["unitframe"]["units"]["player"]["customTexts"]["HP"]["yOffset"] = 0
  710.     E.db["unitframe"]["units"]["player"]["customTexts"]["HP"]["font"] = "Anime Ace"
  711.     E.db["unitframe"]["units"]["player"]["customTexts"]["HP"]["justifyH"] = "RIGHT"
  712.     E.db["unitframe"]["units"]["player"]["customTexts"]["HP"]["fontOutline"] = "OUTLINE"
  713.     E.db["unitframe"]["units"]["player"]["customTexts"]["HP"]["xOffset"] = 0
  714.     E.db["unitframe"]["units"]["player"]["customTexts"]["HP"]["size"] = 12
  715.     E.db["unitframe"]["units"]["player"]["width"] = 220
  716.     E.db["unitframe"]["units"]["player"]["infoPanel"]["enable"] = true
  717.     E.db["unitframe"]["units"]["player"]["infoPanel"]["height"] = 5
  718.     E.db["unitframe"]["units"]["player"]["infoPanel"]["transparent"] = true
  719.     E.db["unitframe"]["units"]["player"]["power"]["attachTextTo"] = "Power"
  720.     E.db["unitframe"]["units"]["player"]["power"]["strataAndLevel"]["useCustomLevel"] = true
  721.     E.db["unitframe"]["units"]["player"]["power"]["strataAndLevel"]["frameLevel"] = 128
  722.     E.db["unitframe"]["units"]["player"]["power"]["strataAndLevel"]["frameStrata"] = "TOOLTIP"
  723.     E.db["unitframe"]["units"]["player"]["power"]["position"] = "BOTTOM"
  724.     E.db["unitframe"]["units"]["player"]["power"]["height"] = 4
  725.     E.db["unitframe"]["units"]["player"]["power"]["detachedWidth"] = 180
  726.     E.db["unitframe"]["units"]["player"]["power"]["text_format"] = ""
  727.     E.db["unitframe"]["units"]["player"]["power"]["xOffset"] = 0
  728.     E.db["unitframe"]["units"]["player"]["health"]["xOffset"] = -2
  729.     E.db["unitframe"]["units"]["player"]["health"]["text_format"] = ""
  730.     E.db["unitframe"]["units"]["player"]["health"]["position"] = "TOPRIGHT"
  731.     E.db["unitframe"]["units"]["player"]["height"] = 22
  732.     E.db["unitframe"]["units"]["player"]["buffs"]["countFontSize"] = 8
  733.     E.db["unitframe"]["units"]["player"]["buffs"]["countFont"] = "Expressway"
  734.     E.db["unitframe"]["units"]["player"]["buffs"]["enable"] = true
  735.     E.db["unitframe"]["units"]["player"]["buffs"]["yOffset"] = -6
  736.     E.db["unitframe"]["units"]["player"]["buffs"]["anchorPoint"] = "BOTTOMRIGHT"
  737.     E.db["unitframe"]["units"]["player"]["buffs"]["spacing"] = 0
  738.     E.db["unitframe"]["units"]["player"]["buffs"]["attachTo"] = "FRAME"
  739.     E.db["unitframe"]["units"]["player"]["buffs"]["perrow"] = 9
  740.     E.db["unitframe"]["units"]["player"]["buffs"]["sizeOverride"] = 24
  741.     E.db["unitframe"]["units"]["player"]["buffs"]["durationPosition"] = "TOP"
  742.     E.db["unitframe"]["units"]["player"]["name"]["xOffset"] = 2
  743.     E.db["unitframe"]["units"]["player"]["name"]["yOffset"] = -2
  744.     E.db["unitframe"]["units"]["player"]["name"]["position"] = "TOPLEFT"
  745.     E.db["unitframe"]["font"] = "Anime Ace"
  746.     E.db["unitframe"]["smoothbars"] = true
  747.     E.db["unitframe"]["colors"]["useDeadBackdrop"] = true
  748.     E.db["unitframe"]["colors"]["colorhealthbyvalue"] = false
  749.     E.db["unitframe"]["colors"]["healthclass"] = true
  750.     E.db["unitframe"]["colors"]["customhealthbackdrop"] = true
  751.     E.db["unitframe"]["colors"]["castClassColor"] = true
  752.     E.db["unitframe"]["colors"]["health_backdrop"]["r"] = 0
  753.     E.db["unitframe"]["colors"]["health_backdrop"]["g"] = 0
  754.     E.db["unitframe"]["colors"]["health_backdrop"]["b"] = 0
  755.     E.db["unitframe"]["colors"]["classResources"]["MONK"][1]["r"] = 0
  756.     E.db["unitframe"]["colors"]["classResources"]["MONK"][1]["g"] = 1
  757.     E.db["unitframe"]["colors"]["classResources"]["MONK"][1]["b"] = 0.58823529411765
  758.     E.db["unitframe"]["colors"]["classResources"]["MONK"][2]["r"] = 0
  759.     E.db["unitframe"]["colors"]["classResources"]["MONK"][2]["g"] = 1
  760.     E.db["unitframe"]["colors"]["classResources"]["MONK"][2]["b"] = 0.58823529411765
  761.     E.db["unitframe"]["colors"]["classResources"]["MONK"][3]["r"] = 0
  762.     E.db["unitframe"]["colors"]["classResources"]["MONK"][3]["g"] = 1
  763.     E.db["unitframe"]["colors"]["classResources"]["MONK"][3]["b"] = 0.58823529411765
  764.     E.db["unitframe"]["colors"]["classResources"]["MONK"][4]["r"] = 0
  765.     E.db["unitframe"]["colors"]["classResources"]["MONK"][4]["g"] = 1
  766.     E.db["unitframe"]["colors"]["classResources"]["MONK"][4]["b"] = 0.58823529411765
  767.     E.db["unitframe"]["colors"]["classResources"]["MONK"][5]["r"] = 0
  768.     E.db["unitframe"]["colors"]["classResources"]["MONK"][5]["g"] = 1
  769.     E.db["unitframe"]["colors"]["classResources"]["MONK"][5]["b"] = 0.58823529411765
  770.     E.db["unitframe"]["colors"]["classResources"]["MONK"][6]["r"] = 0
  771.     E.db["unitframe"]["colors"]["classResources"]["MONK"][6]["g"] = 1
  772.     E.db["unitframe"]["colors"]["classResources"]["MONK"][6]["b"] = 0.58823529411765
  773.     E.db["unitframe"]["colors"]["health_backdrop_dead"]["r"] = 0.023529411764706
  774.     E.db["unitframe"]["colors"]["health_backdrop_dead"]["g"] = 0
  775.     E.db["unitframe"]["colors"]["health_backdrop_dead"]["b"] = 0
  776.     E.db["unitframe"]["colors"]["power"]["FOCUS"]["r"] = 0.70980392156863
  777.     E.db["unitframe"]["colors"]["power"]["FOCUS"]["g"] = 0.43137254901961
  778.     E.db["unitframe"]["colors"]["power"]["FOCUS"]["b"] = 0.27058823529412
  779.     E.db["unitframe"]["colors"]["power"]["RAGE"]["r"] = 0.78039215686274
  780.     E.db["unitframe"]["colors"]["power"]["RAGE"]["g"] = 0.25098039215686
  781.     E.db["unitframe"]["colors"]["power"]["RAGE"]["b"] = 0.25098039215686
  782.     E.db["unitframe"]["colors"]["power"]["RUNIC_POWER"]["g"] = 0.81960784313725
  783.     E.db["unitframe"]["colors"]["power"]["MANA"]["r"] = 0.47058823529412
  784.     E.db["unitframe"]["colors"]["power"]["MANA"]["g"] = 0.68235294117647
  785.     E.db["unitframe"]["colors"]["power"]["MANA"]["b"] = 0.95686274509804
  786.     E.db["unitframe"]["colors"]["power"]["ENERGY"]["r"] = 1
  787.     E.db["unitframe"]["colors"]["power"]["ENERGY"]["g"] = 0.91764705882353
  788.     E.db["unitframe"]["colors"]["power"]["ENERGY"]["b"] = 0
  789.     E.db["unitframe"]["colors"]["castColor"]["r"] = 0.52941176470588
  790.     E.db["unitframe"]["colors"]["castColor"]["g"] = 0.52941176470588
  791.     E.db["unitframe"]["colors"]["castColor"]["b"] = 0.52941176470588
  792.     E.db["unitframe"]["colors"]["frameGlow"]["targetGlow"]["enable"] = false
  793.     E.db["unitframe"]["colors"]["frameGlow"]["mainGlow"]["class"] = true
  794.     E.db["unitframe"]["colors"]["frameGlow"]["mouseoverGlow"]["enable"] = false
  795.     E.db["unitframe"]["colors"]["frameGlow"]["mouseoverGlow"]["texture"] = "Gloss"
  796.     E.db["unitframe"]["colors"]["disconnected"]["r"] = 1
  797.     E.db["unitframe"]["colors"]["disconnected"]["g"] = 0.82352941176471
  798.     E.db["unitframe"]["colors"]["disconnected"]["b"] = 0.61960784313726
  799.     E.db["unitframe"]["colors"]["castNoInterrupt"]["r"] = 0.93725490196078
  800.     E.db["unitframe"]["colors"]["castNoInterrupt"]["g"] = 0.12156862745098
  801.     E.db["unitframe"]["colors"]["castNoInterrupt"]["b"] = 0.17254901960784
  802.     E.db["unitframe"]["colors"]["tapped"]["r"] = 0.90588235294118
  803.     E.db["unitframe"]["colors"]["tapped"]["g"] = 0.94509803921569
  804.     E.db["unitframe"]["colors"]["tapped"]["b"] = 1
  805.     E.db["unitframe"]["colors"]["transparentAurabars"] = true
  806.     E.db["unitframe"]["colors"]["reaction"]["BAD"]["r"] = 0.88444444444445
  807.     E.db["unitframe"]["colors"]["reaction"]["BAD"]["g"] = 0.28444444444444
  808.     E.db["unitframe"]["colors"]["reaction"]["BAD"]["b"] = 0.28444444444444
  809.     E.db["unitframe"]["colors"]["health"]["r"] = 0
  810.     E.db["unitframe"]["colors"]["health"]["g"] = 0
  811.     E.db["unitframe"]["colors"]["health"]["b"] = 0
  812.     E.db["unitframe"]["fontOutline"] = "OUTLINE"
  813.     E.db["unitframe"]["statusbar"] = "ElvUI F"
  814.     E.db["unitframe"]["debuffHighlighting"] = false
  815.     --"actionbar"
  816.     E.db["actionbar"]["bar3"]["enabled"] = false
  817.     E.db["actionbar"]["bar3"]["buttonsize"] = 24
  818.     E.db["actionbar"]["bar3"]["buttons"] = 5
  819.     E.db["actionbar"]["bar3"]["buttonspacing"] = -1
  820.     E.db["actionbar"]["bar3"]["buttonsPerRow"] = 1
  821.     E.db["actionbar"]["bar3"]["visibility"] = "[vehicleui] hide; [overridebar] hide; [petbattle] hide; show, [combat]show;hide"
  822.     E.db["actionbar"]["bar6"]["enabled"] = true
  823.     E.db["actionbar"]["bar6"]["buttons"] = 9
  824.     E.db["actionbar"]["bar6"]["buttonspacing"] = 0
  825.     E.db["actionbar"]["bar6"]["mouseover"] = true
  826.     E.db["actionbar"]["bar6"]["buttonsize"] = 28
  827.     E.db["actionbar"]["bar6"]["buttonsPerRow"] = 9
  828.     E.db["actionbar"]["bar6"]["visibility"] = "[combat] show;fade [vehicleui] hide; [petbattle] hide;show"
  829.     E.db["actionbar"]["bar6"]["backdropSpacing"] = 0
  830.     E.db["actionbar"]["movementModifier"] = "CTRL"
  831.     E.db["actionbar"]["globalFadeAlpha"] = 0.8
  832.     E.db["actionbar"]["fontOutline"] = "OUTLINE"
  833.     E.db["actionbar"]["microbar"]["enabled"] = true
  834.     E.db["actionbar"]["microbar"]["mouseover"] = true
  835.     E.db["actionbar"]["noRangeColor"]["g"] = 0.10196078431373
  836.     E.db["actionbar"]["noRangeColor"]["b"] = 0.10196078431373
  837.     E.db["actionbar"]["noPowerColor"]["g"] = 0.50196078431373
  838.     E.db["actionbar"]["noPowerColor"]["r"] = 0.50196078431373
  839.     E.db["actionbar"]["rightClickSelfCast"] = true
  840.     E.db["actionbar"]["bar5"]["buttonsize"] = 35
  841.     E.db["actionbar"]["bar5"]["buttons"] = 12
  842.     E.db["actionbar"]["bar5"]["buttonspacing"] = -1
  843.     E.db["actionbar"]["bar5"]["backdropSpacing"] = -1
  844.     E.db["actionbar"]["bar5"]["mouseover"] = true
  845.     E.db["actionbar"]["bar2"]["enabled"] = true
  846.     E.db["actionbar"]["bar2"]["point"] = "TOPLEFT"
  847.     E.db["actionbar"]["bar2"]["buttons"] = 6
  848.     E.db["actionbar"]["bar2"]["buttonspacing"] = 0
  849.     E.db["actionbar"]["bar2"]["buttonsize"] = 28
  850.     E.db["actionbar"]["bar2"]["buttonsPerRow"] = 3
  851.     E.db["actionbar"]["bar2"]["visibility"] = "[combat] show;fade [vehicleui] hide; [petbattle] hide;show"
  852.     E.db["actionbar"]["bar2"]["backdropSpacing"] = 0
  853.     E.db["actionbar"]["font"] = "Expressway"
  854.     E.db["actionbar"]["transparent"] = true
  855.     E.db["actionbar"]["bar1"]["buttonsize"] = 28
  856.     E.db["actionbar"]["bar1"]["point"] = "TOPLEFT"
  857.     E.db["actionbar"]["bar1"]["buttonspacing"] = 0
  858.     E.db["actionbar"]["bar1"]["buttonsPerRow"] = 6
  859.     E.db["actionbar"]["bar1"]["backdropSpacing"] = 0
  860.     E.db["actionbar"]["bar1"]["visibility"] = "[combat] show;fade [vehicleui] show; hide [petbattle] hide;show"
  861.     E.db["actionbar"]["stanceBar"]["enabled"] = false
  862.     E.db["actionbar"]["stanceBar"]["buttonspacing"] = 0
  863.     E.db["actionbar"]["stanceBar"]["buttonsize"] = 30
  864.     E.db["actionbar"]["stanceBar"]["buttons"] = 9
  865.     E.db["actionbar"]["barPet"]["mouseover"] = true
  866.     E.db["actionbar"]["barPet"]["backdropSpacing"] = 1
  867.     E.db["actionbar"]["barPet"]["buttons"] = 8
  868.     E.db["actionbar"]["barPet"]["buttonspacing"] = -1
  869.     E.db["actionbar"]["barPet"]["buttonsPerRow"] = 10
  870.     E.db["actionbar"]["barPet"]["buttonsize"] = 28
  871.     E.db["actionbar"]["barPet"]["backdrop"] = false
  872.     E.db["actionbar"]["bar4"]["buttonsize"] = 35
  873.     E.db["actionbar"]["bar4"]["point"] = "BOTTOMLEFT"
  874.     E.db["actionbar"]["bar4"]["backdrop"] = false
  875.     E.db["actionbar"]["bar4"]["buttonspacing"] = -1
  876.     E.db["actionbar"]["bar4"]["buttonsPerRow"] = 6
  877.     E.db["actionbar"]["bar4"]["backdropSpacing"] = -1
  878.     E.db["actionbar"]["bar4"]["mouseover"] = true
  879.     --"Tooltips"
  880.     E.db["tooltip"]["itemCount"] = "BOTH"
  881.     E.db["tooltip"]["healthBar"]["height"] = 0
  882.     E.db["tooltip"]["healthBar"]["fontSize"] = 12
  883.     E.db["tooltip"]["healthBar"]["font"] = "Expressway"
  884.     E.db["tooltip"]["healthBar"]["text"] = false
  885.     E.db["tooltip"]["spellID"] = false
  886.     E.db["tooltip"]["headerFontSize"] = 11
  887.     E.db["tooltip"]["textFontSize"] = 11
  888.     E.db["tooltip"]["showMount"] = false
  889.     E.db["tooltip"]["font"] = "Expressway"
  890.     E.db["tooltip"]["guildRanks"] = false
  891.     E.db["tooltip"]["npcID"] = false
  892.     E.db["tooltip"]["playerTitles"] = false
  893.     E.db["tooltip"]["smallTextFontSize"] = 11
  894.     --"Chat"
  895.     E.db["chat"]["chatHistory"] = false
  896.     E.db["chat"]["fontSize"] = 11
  897.     E.db["chat"]["emotionIcons"] = false
  898.     E.db["chat"]["tabFont"] = "Expressway"
  899.     E.db["chat"]["panelColor"]["a"] = 0.75
  900.     E.db["chat"]["panelColor"]["r"] = 0.054
  901.     E.db["chat"]["panelColor"]["g"] = 0.054
  902.     E.db["chat"]["panelColor"]["b"] = 0.054
  903.     E.db["chat"]["font"] = "Expressway"
  904.     E.db["chat"]["panelWidth"] = 450
  905.     E.db["chat"]["panelHeight"] = 172
  906.     E.db["chat"]["tabFontOutline"] = "OUTLINE"
  907.     E.db["chat"]["editBoxPosition"] = "ABOVE_CHAT"
  908.     E.db["chat"]["keywords"] = "%MYNAME%, ElvUI, TohrUI"
  909.     E.db["chat"]["panelBackdrop"] = "HIDEBOTH"
  910.     --"auras"
  911.     E.db["auras"]["debuffs"]["sortDir"] = "+"
  912.     E.db["auras"]["debuffs"]["wrapAfter"] = 8
  913.     E.db["auras"]["debuffs"]["countFontSize"] = 11
  914.     E.db["auras"]["debuffs"]["durationFontSize"] = 11
  915.     E.db["auras"]["debuffs"]["seperateOwn"] = 0
  916.     E.db["auras"]["debuffs"]["size"] = 30
  917.     E.db["auras"]["debuffs"]["horizontalSpacing"] = 0
  918.     E.db["auras"]["debuffs"]["growthDirection"] = "LEFT_UP"
  919.     E.db["auras"]["countYOffset"] = 5
  920.     E.db["auras"]["timeYOffset"] = 14
  921.     E.db["auras"]["countXOffset"] = -5
  922.     E.db["auras"]["fontOutline"] = "OUTLINE"
  923.     E.db["auras"]["font"] = "Expressway"
  924.     E.db["auras"]["buffs"]["sortDir"] = "+"
  925.     E.db["auras"]["buffs"]["wrapAfter"] = 18
  926.     E.db["auras"]["buffs"]["durationFontSize"] = 11
  927.     E.db["auras"]["buffs"]["countFontSize"] = 11
  928.     E.db["auras"]["buffs"]["maxWraps"] = 2
  929.     E.db["auras"]["buffs"]["horizontalSpacing"] = 0
  930.     E.db["auras"]["buffs"]["size"] = 26
  931.     end
  932.     --[[
  933.     --  This section at the bottom is just to update ElvUI and display a message
  934.     --]]
  935.     --Update ElvUI
  936.     E:UpdateAll(true)
  937.     --Show message about layout being set
  938.     PluginInstallStepComplete.message = "Layout Set"
  939.     PluginInstallStepComplete:Show()
  940. end
  941.  
  942. --This function is executed when you press "Skip Process" or "Finished" in the installer.
  943. local function InstallComplete()
  944.     if GetCVarBool("Sound_EnableMusic") then
  945.         StopMusic()
  946.     end
  947.  
  948.     --Set a variable tracking the version of the addon when layout was installed
  949.     E.db[MyPluginName].install_version = Version
  950.  
  951.     ReloadUI()
  952. end
  953.  
  954. --This is the data we pass on to the ElvUI Plugin Installer.
  955. --The Plugin Installer is reponsible for displaying the install guide for this layout.
  956. local InstallerData = {
  957.     Title = format("|cff4beb2c%s %s|r", MyPluginName, "Installation"),
  958.     Name = MyPluginName,
  959.     --tutorialImage = "Interface\\AddOns\\MyAddOn\\logo.tga", --If you have a logo you want to use, otherwise it uses the one from ElvUI
  960.     Pages = {
  961.         [1] = function()
  962.             PluginInstallFrame.SubTitle:SetFormattedText("Welcome to the installation for %s.", MyPluginName)
  963.             PluginInstallFrame.Desc1:SetText("This installation process will guide you through a few steps and apply settings to your current ElvUI profile. If you want to be able to go back to your original settings then create a new profile before going through this installation process.")
  964.             PluginInstallFrame.Desc2:SetText("Please press the continue button if you wish to go through the installation process, otherwise click the 'Skip Process' button.")
  965.             PluginInstallFrame.Option1:Show()
  966.             PluginInstallFrame.Option1:SetScript("OnClick", InstallComplete)
  967.             PluginInstallFrame.Option1:SetText("Skip Process")
  968.         end,
  969.         [2] = function()
  970.             PluginInstallFrame.SubTitle:SetText("Layouts")
  971.             PluginInstallFrame.Desc1:SetText("These are the layouts that are available. Please click a button below to apply the layout of your choosing.")
  972.             PluginInstallFrame.Desc2:SetText("Importance: |cff07D400High|r")
  973.             PluginInstallFrame.Option1:Show()
  974.             PluginInstallFrame.Option1:SetScript("OnClick", function() SetupLayout("Instll") end)
  975.             PluginInstallFrame.Option1:SetText("Install")
  976.         end,
  977.         [3] = function()
  978.             PluginInstallFrame.SubTitle:SetText("Installation Complete")
  979.             PluginInstallFrame.Desc1:SetText("You have completed the installation process.")
  980.             PluginInstallFrame.Desc2:SetText("Please click the button below in order to finalize the process and automatically reload your UI.")
  981.             PluginInstallFrame.Option1:Show()
  982.             PluginInstallFrame.Option1:SetScript("OnClick", InstallComplete)
  983.             PluginInstallFrame.Option1:SetText("Finished")
  984.         end,
  985.     },
  986.     StepTitles = {
  987.         [1] = "Welcome",
  988.         [2] = "Layouts",
  989.         [3] = "Installation Complete",
  990.     },
  991.     StepTitlesColor = {1, 1, 1},
  992.     StepTitlesColorSelected = {0, 179/255, 1},
  993.     StepTitleWidth = 200,
  994.     StepTitleButtonWidth = 180,
  995.     StepTitleTextJustification = "RIGHT",
  996. }
  997.  
  998. --This function holds the options table which will be inserted into the ElvUI config
  999. local function InsertOptions()
  1000.     E.Options.args.MyPluginName = {
  1001.         order = 100,
  1002.         type = "group",
  1003.         name = format("|cff4beb2c%s|r", MyPluginName),
  1004.         args = {
  1005.             header1 = {
  1006.                 order = 1,
  1007.                 type = "header",
  1008.                 name = MyPluginName,
  1009.             },
  1010.             description1 = {
  1011.                 order = 2,
  1012.                 type = "description",
  1013.                 name = format("%s is a layout for ElvUI.", MyPluginName),
  1014.             },
  1015.             spacer1 = {
  1016.                 order = 3,
  1017.                 type = "description",
  1018.                 name = "\n\n\n",
  1019.             },
  1020.             header2 = {
  1021.                 order = 4,
  1022.                 type = "header",
  1023.                 name = "Installation",
  1024.             },
  1025.             description2 = {
  1026.                 order = 5,
  1027.                 type = "description",
  1028.                 name = "The installation guide should pop up automatically after you have completed the ElvUI installation. If you wish to re-run the installation process for this layout then please click the button below.",
  1029.             },
  1030.             spacer2 = {
  1031.                 order = 6,
  1032.                 type = "description",
  1033.                 name = "",
  1034.             },
  1035.             install = {
  1036.                 order = 7,
  1037.                 type = "execute",
  1038.                 name = "Install",
  1039.                 desc = "Run the installation process.",
  1040.                 func = function() E:GetModule("PluginInstaller"):Queue(InstallerData); E:ToggleOptionsUI(); end,
  1041.             },
  1042.         },
  1043.     }
  1044. end
  1045.  
  1046. --Create a unique table for our plugin
  1047. P[MyPluginName] = {}
  1048.  
  1049. --This function will handle initialization of the addon
  1050. function mod:Initialize()
  1051.     --Initiate installation process if ElvUI install is complete and our plugin install has not yet been run
  1052.     if E.private.install_complete and E.db[MyPluginName].install_version == nil then
  1053.         E:GetModule("PluginInstaller"):Queue(InstallerData)
  1054.     end
  1055.  
  1056.     --Insert our options table when ElvUI config is loaded
  1057.     EP:RegisterPlugin(addon, InsertOptions)
  1058. end
  1059.  
  1060. --Register module with callback so it gets initialized when ready
  1061. E:RegisterModule(mod:GetName())
Add Comment
Please, Sign In to add comment