Skip to content

Commit

Permalink
Changelogs
Browse files Browse the repository at this point in the history
  • Loading branch information
Tercioo committed Jan 1, 2024
1 parent 364d345 commit 7d52562
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 8 deletions.
10 changes: 10 additions & 0 deletions Plater.lua
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,16 @@ Plater.LastCombat = {
spellNames = {},
}

Plater.MDTSettings = {
button_width = 18, --button and icon width
button_height = 18,
enemyinfo_button_point = {"topright", "topright", 4.682, -21.361},
spellinfo_button_point = {"bottomright", "bottomright", -12, 2},
icon_texture = [[Interface\Buttons\UI-Panel-BiggerButton-Up]],
icon_coords = {0.2, 0.8, 0.2, 0.8},
alpha = 0.834, --button alpha
}

-- ~hook (hook scripts are cached in the indexed part of these tales, for performance the member ScriptAmount caches the amount of scripts inside the indexed table)
local HOOK_NAMEPLATE_ADDED = {ScriptAmount = 0}
local HOOK_NAMEPLATE_CREATED = {ScriptAmount = 0}
Expand Down
11 changes: 11 additions & 0 deletions Plater_ChangeLog.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,17 @@ function Plater.GetChangelogTable()
if (not Plater.ChangeLogTable) then
Plater.ChangeLogTable = {

--{1704128313, "Feature Improvement", "January 1st, 2024", "", "Terciob"},
{1704128313, "New Feature", "January 1st, 2024", "Added, on Mythic Dungeon Tools (Nnoggie), options to edit the Npc and Spell on Plater Nameplates.", "January 1st, 2024", "", "Terciob"},
{1704128313, "New Feature", "January 1st, 2024", "Added in the Npc Colors editor, a button, to see which spells the npc casts, in the Cast Colors editor.", "January 1st, 2024", "", "Terciob"},
{1704128313, "Feature Improvement", "January 1st, 2024", "Holding SHIFT when selecting a new color for a spell or npc, will replace the current color on all npcs or spells which are using it.", "January 1st, 2024", "", "Terciob"},
{1704128313, "Feature Improvement", "January 1st, 2024", "Color selection dropdowns now show its options ordered by RGB values (from pink, green, blue and to red).", "January 1st, 2024", "", "Terciob"},
{1704128313, "Feature Improvement", "January 1st, 2024", "When importing npc colors, the original npc and zone name from the local client is preserved (was overwriting).", "January 1st, 2024", "", "Terciob"},
{1704128313, "Bug Fix", "January 1st, 2024", "Script selector preview, at the cast color editor tab, now correctly shows the animation when hovering over the thumbnail.", "January 1st, 2024", "", "Terciob"},
{1704128313, "Bug Fix", "January 1st, 2024", "Fixed the search boxes on the Npc and Spell editor tabs, they should search much faster with the help of bug fixes and caches.", "January 1st, 2024", "", "Terciob"},
{1704128313, "Bug Fix", "January 1st, 2024", "The button to send a npc color customization to the raid is now working properly.", "January 1st, 2024", "", "Terciob"},
{1704128313, "API", "January 1st, 2024", "Added Plater.OpenNpcColorsPanel(searchString) and Plater.OpenCastColorsPanel(searchString) to open the options panel and search for a npc or spell.", "January 1st, 2024", "", "Terciob"},

{1701784522, "Backend Change", "December 5th, 2023", "Adding more 10.2 units to 'forced in combat'.", "cont1nuity"},
{1701784522, "Backend Change", "December 2nd, 2023", "Fixes for broken cast bars in classic.", "cont1nuity"},
{1701784522, "Backend Change", "November 24th, 2023", "Fixes for broken range checks.", "cont1nuity"},
Expand Down
23 changes: 15 additions & 8 deletions Plater_DebugFrames.lua
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,7 @@ function platerInternal.InstallMDTHooks()
local containerFrame = midContainerChildren[i]
if (containerFrame.idEditBox) then
if (not containerFrame.GoToPlaterButton) then
containerFrame.GoToPlaterButton = DF:CreateButton(containerFrame.frame, fSeeNpcOnPlater, 20, 20, "")
containerFrame.GoToPlaterButton:SetPoint("topright", containerFrame.frame, "topright", 4.682, -21.361)
containerFrame.GoToPlaterButton:SetIcon([[Interface\Buttons\UI-Panel-BiggerButton-Up]], 18, 18, "overlay", {0.2, 0.8, 0.2, 0.8})
containerFrame.GoToPlaterButton:SetAlpha(0.834)
containerFrame.GoToPlaterButton = DF:CreateButton(containerFrame.frame, fSeeNpcOnPlater, 1, 1, "")
containerFrame.GoToPlaterButton.tooltip = "Setup this npc on Plater"
--DF:ApplyStandardBackdrop(containerFrame.GoToPlaterButton) --debug button size
--DF:ApplyStandardBackdrop(containerFrame.frame) --debug container size
Expand All @@ -107,6 +104,13 @@ function platerInternal.InstallMDTHooks()
if (npcId and npcId > 1) then
containerFrame.GoToPlaterButton.param1 = npcId
--/dump MDT.EnemyInfoFrame.midContainer.children[2].healthEditBox

local point1 = Plater.MDTSettings.enemyinfo_button_point
containerFrame.GoToPlaterButton:ClearAllPoints()
containerFrame.GoToPlaterButton:SetPoint(point1[1], containerFrame.frame, point1[2], point1[3], point1[4])
containerFrame.GoToPlaterButton:SetSize(Plater.MDTSettings.button_width, Plater.MDTSettings.button_height)
containerFrame.GoToPlaterButton:SetIcon(Plater.MDTSettings.icon_texture, Plater.MDTSettings.button_width, Plater.MDTSettings.button_height, "overlay", Plater.MDTSettings.icon_coords)
containerFrame.GoToPlaterButton:SetAlpha(Plater.MDTSettings.alpha)
else
containerFrame.GoToPlaterButton:Hide()
end
Expand All @@ -128,15 +132,18 @@ function platerInternal.InstallMDTHooks()

if (castTime and castTime > 0) then
if (not spellButton.GoToPlaterButton) then
spellButton.GoToPlaterButton = DF:CreateButton(spellButton, fSeeSpellOnPlater, 20, 20, "", spellId)
spellButton.GoToPlaterButton:SetPoint("bottomright", spellButton, "bottomright", -12, 2)
spellButton.GoToPlaterButton:SetIcon([[Interface\Buttons\UI-Panel-BiggerButton-Up]], 18, 18, "overlay", {0.2, 0.8, 0.2, 0.8})
spellButton.GoToPlaterButton:SetAlpha(0.834)
spellButton.GoToPlaterButton = DF:CreateButton(spellButton, fSeeSpellOnPlater, 1, 1, "", spellId)
spellButton.GoToPlaterButton.tooltip = "Setup this spell on Plater"
--DF:ApplyStandardBackdrop(spellButton.GoToPlaterButton) --debug button size
end

spellButton.GoToPlaterButton.param1 = spellId
local point1 = Plater.MDTSettings.spellinfo_button_point
spellButton.GoToPlaterButton:ClearAllPoints()
spellButton.GoToPlaterButton:SetPoint(point1[1], spellButton, point1[2], point1[3], point1[4])
spellButton.GoToPlaterButton:SetSize(Plater.MDTSettings.button_width, Plater.MDTSettings.button_height)
spellButton.GoToPlaterButton:SetIcon(Plater.MDTSettings.icon_texture, Plater.MDTSettings.button_width, Plater.MDTSettings.button_height, "overlay", Plater.MDTSettings.icon_coords)
spellButton.GoToPlaterButton:SetAlpha(Plater.MDTSettings.alpha)
else
if (spellButton.GoToPlaterButton) then
spellButton.GoToPlaterButton:Hide()
Expand Down

0 comments on commit 7d52562

Please sign in to comment.