Skip to content

Commit

Permalink
Merge pull request #58 from NoobTaco/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
NoobTaco authored Sep 11, 2024
2 parents 255cb94 + cc6f56a commit 4a8f137
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 15 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
## Changelog

## [1.5.2]

### Updated

= Fixed nameplate text bug. Names should now properly display in the correct location. Fixes [#56](https://github.com/NoobTaco/NoobTacoUI/issues/56)

## [1.5.1]

### Added
Expand Down
4 changes: 2 additions & 2 deletions NoobTacoUI.toc
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
## Interface: 11502,11503, 40400, 110000, 110002
## Title: |cFF16C3F2NoobTaco|r|cFFFFFFFFUI|r
## Author: NoobTaco
## Version: 1.5.1
## Notes: Contains layouts from NoobTacoUI
## Version: 1.5.2
## Notes: Contains layouts from NoobTaco
## RequiredDeps: ElvUI
## DefaultState: enabled
## X-Tukui-ProjectID: 187
Expand Down
Empty file removed RECENT_CHANGES.md
Empty file.
52 changes: 39 additions & 13 deletions modules/NamePlates.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,14 @@ local NoobTacoUI, E, L, V, P, G = unpack(select(2, ...))
- Increased the font size for nameplates
- Removed second nameplate option
- Updated the questIcon section for Enemy NPC and FRIENDLY_NPC
Version 1.5.2 - Nameplates improvements
- Refactored code in nameplates.lua
- Fixed nameplate health text position
]]
function NoobTacoUI:SetupNamePlates()
-- NAMEPLATES -------------------------------------------------------------
-- Global Nameplate Settings
E.global["nameplates"]["filters"]["ElvUI_Target"]["actions"]["color"]["border"] = false
E.db["nameplates"]["colors"]["classResources"]["comboPoints"][1]["b"] = 0.55686274509804
E.db["nameplates"]["colors"]["classResources"]["comboPoints"][1]["g"] = 0.50980392156863
Expand Down Expand Up @@ -58,6 +63,16 @@ function NoobTacoUI:SetupNamePlates()
E.db["nameplates"]["font"] = "Poppins-SemiBold"
E.db["nameplates"]["smoothbars"] = true
E.db["nameplates"]["threat"]["indicator"] = true

-- TARGET Settings
E.db["nameplates"]["units"]["TARGET"]["arrow"] = "Arrow11"
E.db["nameplates"]["units"]["TARGET"]["classpower"]["enable"] = true
E.db["nameplates"]["units"]["TARGET"]["classpower"]["height"] = 10
E.db["nameplates"]["units"]["TARGET"]["classpower"]["yOffset"] = -18
E.db["nameplates"]["units"]["TARGET"]["glowStyle"] = "style2"

-- Nameplate Unit Settings
-- Enemy NPC
E.db["nameplates"]["units"]["ENEMY_NPC"]["buffs"]["countFont"] = "Poppins-SemiBold"
E.db["nameplates"]["units"]["ENEMY_NPC"]["buffs"]["countFontOutline"] = "NONE"
E.db["nameplates"]["units"]["ENEMY_NPC"]["buffs"]["priority"] = "Blacklist,blockNoDuration,Personal,TurtleBuffs"
Expand Down Expand Up @@ -98,12 +113,18 @@ function NoobTacoUI:SetupNamePlates()
E.db["nameplates"]["units"]["ENEMY_NPC"]["name"]["format"] = "[name:medium]"
E.db["nameplates"]["units"]["ENEMY_NPC"]["name"]["xOffset"] = 0
E.db["nameplates"]["units"]["ENEMY_NPC"]["name"]["yOffset"] = 0
E.db["nameplates"]["units"]["ENEMY_NPC"]["name"]["Parent"] = "Nameplate" -- fix for #56
E.db["nameplates"]["units"]["ENEMY_NPC"]["name"]["position"] = "TOPLEFT" -- fix for #56
E.db["nameplates"]["units"]["ENEMY_NPC"]["power"]["displayAltPower"] = true
E.db["nameplates"]["units"]["ENEMY_NPC"]["power"]["enable"] = true
E.db["nameplates"]["units"]["ENEMY_NPC"]["power"]["height"] = 5
E.db["nameplates"]["units"]["ENEMY_NPC"]["power"]["hideWhenEmpty"] = true
E.db["nameplates"]["units"]["ENEMY_NPC"]["power"]["yOffset"] = -11
E.db["nameplates"]["units"]["ENEMY_NPC"]["power"]["xOffset"] = 0
E.db["nameplates"]["units"]["ENEMY_NPC"]["raidTargetIndicator"]["position"] = "CENTER"
E.db["nameplates"]["units"]["ENEMY_NPC"]["raidTargetIndicator"]["size"] = 30
E.db["nameplates"]["units"]["ENEMY_NPC"]["raidTargetIndicator"]["xOffset"] = 0
E.db["nameplates"]["units"]["ENEMY_NPC"]["title"]["format"] = "[guild]"

-- Quest Icon Section for Enemy NPC
E.db["nameplates"]["units"]["ENEMY_NPC"]["questIcon"]["font"] = "Poppins-Medium"
Expand All @@ -117,10 +138,7 @@ function NoobTacoUI:SetupNamePlates()
E.db["nameplates"]["units"]["ENEMY_NPC"]["questIcon"]["yOffset"] = 0
E.db["nameplates"]["units"]["ENEMY_NPC"]["questIcon"]["xOffset"] = 0

E.db["nameplates"]["units"]["ENEMY_NPC"]["raidTargetIndicator"]["position"] = "CENTER"
E.db["nameplates"]["units"]["ENEMY_NPC"]["raidTargetIndicator"]["size"] = 30
E.db["nameplates"]["units"]["ENEMY_NPC"]["raidTargetIndicator"]["xOffset"] = 0
E.db["nameplates"]["units"]["ENEMY_NPC"]["title"]["format"] = "[guild]"
-- Enemy Player
E.db["nameplates"]["units"]["ENEMY_PLAYER"]["buffs"]["countFont"] = "Poppins-SemiBold"
E.db["nameplates"]["units"]["ENEMY_PLAYER"]["buffs"]["countFontOutline"] = "NONE"
E.db["nameplates"]["units"]["ENEMY_PLAYER"]["buffs"]["maxDuration"] = 0
Expand Down Expand Up @@ -158,6 +176,8 @@ function NoobTacoUI:SetupNamePlates()
E.db["nameplates"]["units"]["ENEMY_PLAYER"]["name"]["fontSize"] = 14
E.db["nameplates"]["units"]["ENEMY_PLAYER"]["name"]["format"] = "[name:medium]"
E.db["nameplates"]["units"]["ENEMY_PLAYER"]["name"]["yOffset"] = 0
E.db["nameplates"]["units"]["ENEMY_PLAYER"]["name"]["Parent"] = "Nameplate" -- fix for #56
E.db["nameplates"]["units"]["ENEMY_PLAYER"]["name"]["position"] = "TOPLEFT" -- fix for #56
E.db["nameplates"]["units"]["ENEMY_PLAYER"]["portrait"]["enable"] = true
E.db["nameplates"]["units"]["ENEMY_PLAYER"]["portrait"]["position"] = "LEFT"
E.db["nameplates"]["units"]["ENEMY_PLAYER"]["portrait"]["xOffset"] = 0
Expand All @@ -171,6 +191,8 @@ function NoobTacoUI:SetupNamePlates()
E.db["nameplates"]["units"]["ENEMY_PLAYER"]["raidTargetIndicator"]["size"] = 30
E.db["nameplates"]["units"]["ENEMY_PLAYER"]["raidTargetIndicator"]["xOffset"] = 0
E.db["nameplates"]["units"]["ENEMY_PLAYER"]["title"]["format"] = "[guild]"

-- FRIENDLY_NPC
E.db["nameplates"]["units"]["FRIENDLY_NPC"]["buffs"]["countFont"] = "Poppins-SemiBold"
E.db["nameplates"]["units"]["FRIENDLY_NPC"]["buffs"]["countFontOutline"] = "NONE"
E.db["nameplates"]["units"]["FRIENDLY_NPC"]["castbar"]["font"] = "Poppins-SemiBold"
Expand Down Expand Up @@ -206,12 +228,18 @@ function NoobTacoUI:SetupNamePlates()
E.db["nameplates"]["units"]["FRIENDLY_NPC"]["name"]["fontSize"] = 14
E.db["nameplates"]["units"]["FRIENDLY_NPC"]["name"]["format"] = "[name:medium]"
E.db["nameplates"]["units"]["FRIENDLY_NPC"]["name"]["yOffset"] = 0
E.db["nameplates"]["units"]["FRIENDLY_NPC"]["name"]["Parent"] = "Nameplate" -- fix for #56
E.db["nameplates"]["units"]["FRIENDLY_NPC"]["name"]["position"] = "TOPLEFT" -- fix for #56
E.db["nameplates"]["units"]["FRIENDLY_NPC"]["nameOnly"] = false
E.db["nameplates"]["units"]["FRIENDLY_NPC"]["power"]["displayAltPower"] = true
E.db["nameplates"]["units"]["FRIENDLY_NPC"]["power"]["enable"] = true
E.db["nameplates"]["units"]["FRIENDLY_NPC"]["power"]["height"] = 5
E.db["nameplates"]["units"]["FRIENDLY_NPC"]["power"]["hideWhenEmpty"] = true
E.db["nameplates"]["units"]["FRIENDLY_NPC"]["power"]["yOffset"] = -11
E.db["nameplates"]["units"]["FRIENDLY_NPC"]["raidTargetIndicator"]["position"] = "CENTER"
E.db["nameplates"]["units"]["FRIENDLY_NPC"]["raidTargetIndicator"]["size"] = 30
E.db["nameplates"]["units"]["FRIENDLY_NPC"]["raidTargetIndicator"]["xOffset"] = 0
E.db["nameplates"]["units"]["FRIENDLY_NPC"]["title"]["format"] = "[guild]"

-- Quest Icon Section for FRIENDLY_NPC
E.db["nameplates"]["units"]["FRIENDLY_NPC"]["questIcon"]["font"] = "Poppins-Medium"
Expand All @@ -225,10 +253,7 @@ function NoobTacoUI:SetupNamePlates()
E.db["nameplates"]["units"]["FRIENDLY_NPC"]["questIcon"]["yOffset"] = 0
E.db["nameplates"]["units"]["FRIENDLY_NPC"]["questIcon"]["xOffset"] = 0

E.db["nameplates"]["units"]["FRIENDLY_NPC"]["raidTargetIndicator"]["position"] = "CENTER"
E.db["nameplates"]["units"]["FRIENDLY_NPC"]["raidTargetIndicator"]["size"] = 30
E.db["nameplates"]["units"]["FRIENDLY_NPC"]["raidTargetIndicator"]["xOffset"] = 0
E.db["nameplates"]["units"]["FRIENDLY_NPC"]["title"]["format"] = "[guild]"
-- FRIENDLY_PLAYER
E.db["nameplates"]["units"]["FRIENDLY_PLAYER"]["buffs"]["countFont"] = "Poppins-SemiBold"
E.db["nameplates"]["units"]["FRIENDLY_PLAYER"]["buffs"]["countFontOutline"] = "NONE"
E.db["nameplates"]["units"]["FRIENDLY_PLAYER"]["castbar"]["font"] = "Poppins-SemiBold"
Expand Down Expand Up @@ -261,6 +286,8 @@ function NoobTacoUI:SetupNamePlates()
E.db["nameplates"]["units"]["FRIENDLY_PLAYER"]["name"]["fontSize"] = 14
E.db["nameplates"]["units"]["FRIENDLY_PLAYER"]["name"]["format"] = "[name:medium]"
E.db["nameplates"]["units"]["FRIENDLY_PLAYER"]["name"]["yOffset"] = 0
E.db["nameplates"]["units"]["FRIENDLY_PLAYER"]["name"]["Parent"] = "Nameplate" -- fix for #56
E.db["nameplates"]["units"]["FRIENDLY_PLAYER"]["name"]["position"] = "TOPLEFT" -- fix for #56
E.db["nameplates"]["units"]["FRIENDLY_PLAYER"]["power"]["displayAltPower"] = true
E.db["nameplates"]["units"]["FRIENDLY_PLAYER"]["power"]["enable"] = true
E.db["nameplates"]["units"]["FRIENDLY_PLAYER"]["power"]["height"] = 5
Expand All @@ -270,6 +297,8 @@ function NoobTacoUI:SetupNamePlates()
E.db["nameplates"]["units"]["FRIENDLY_PLAYER"]["raidTargetIndicator"]["size"] = 30
E.db["nameplates"]["units"]["FRIENDLY_PLAYER"]["raidTargetIndicator"]["xOffset"] = 0
E.db["nameplates"]["units"]["FRIENDLY_PLAYER"]["title"]["format"] = "[guild]"

-- PLAYER
E.db["nameplates"]["units"]["PLAYER"]["buffs"]["countFont"] = "Poppins-SemiBold"
E.db["nameplates"]["units"]["PLAYER"]["buffs"]["countFontOutline"] = "NONE"
E.db["nameplates"]["units"]["PLAYER"]["buffs"]["maxDuration"] = 0
Expand Down Expand Up @@ -305,6 +334,8 @@ function NoobTacoUI:SetupNamePlates()
E.db["nameplates"]["units"]["PLAYER"]["name"]["fontSize"] = 14
E.db["nameplates"]["units"]["PLAYER"]["name"]["format"] = "[name:medium]"
E.db["nameplates"]["units"]["PLAYER"]["name"]["yOffset"] = 0
E.db["nameplates"]["units"]["PLAYER"]["name"]["position"] = "TOPLEFT" -- fix for #56
E.db["nameplates"]["units"]["PLAYER"]["name"]["Parent"] = "Nameplate" -- fix for #56
E.db["nameplates"]["units"]["PLAYER"]["power"]["displayAltPower"] = true
E.db["nameplates"]["units"]["PLAYER"]["power"]["height"] = 5
E.db["nameplates"]["units"]["PLAYER"]["power"]["hideWhenEmpty"] = true
Expand All @@ -313,9 +344,4 @@ function NoobTacoUI:SetupNamePlates()
E.db["nameplates"]["units"]["PLAYER"]["raidTargetIndicator"]["size"] = 30
E.db["nameplates"]["units"]["PLAYER"]["raidTargetIndicator"]["xOffset"] = 0
E.db["nameplates"]["units"]["PLAYER"]["title"]["format"] = "[guild]"
E.db["nameplates"]["units"]["TARGET"]["arrow"] = "Arrow11"
E.db["nameplates"]["units"]["TARGET"]["classpower"]["enable"] = true
E.db["nameplates"]["units"]["TARGET"]["classpower"]["height"] = 10
E.db["nameplates"]["units"]["TARGET"]["classpower"]["yOffset"] = -18
E.db["nameplates"]["units"]["TARGET"]["glowStyle"] = "style2"
end

0 comments on commit 4a8f137

Please sign in to comment.