You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found a few minor issues with the interrupting and I have some fixes that could be done
Issue 1
In the following snippet the code to set the following information is skipped if the player name interrupting is disabled. This results in the following lines of code not being executed and thus not available in mods
if (notPlater.db.profile.show_interrupt_author) then
return
end
Proposal
Move the if (not Plater.db.profile.show_interrupt_author) then check to wrap around the SetText(INTERRUPTED .. call only so that all other code is still executed. I suspect the early return also blocks the interrupt animation from playing if the interrupt name is not shown.
Issue 2
The snippet takes sourceName, and the translit happens only on name:
Set the interrupt source name to be the translit name so mods get this value instead of the original.
castBar.InterruptSourceName=name
Issue 3
In the DF unitframes lib IsInterrupted isn't set because the key is named interrupted there. I'm not sure if these 2 are supposed to work together, but both are available in mods
self:SetColor(castColor) --SetColor handles with ParseColors()
self.percentText:Hide()
self.Text:SetText(INTERRUPTED) --auto locale within the global namespace
self:ScheduleToHide(1)
end
end,
Proposal
Plater could use the same keys as the DF lib. Always sync interrupted to IsInterrupted and replace this one by interrupted in the scripting panels. Alternatively DF lib could start using IsInterrupted instead of interrupted.
Another thing is that InterruptSourceName and InterruptSourceGUID could be moved to the lib if that's where the properties should go.
The text was updated successfully, but these errors were encountered:
I found a few minor issues with the interrupting and I have some fixes that could be done
Issue 1
In the following snippet the code to set the following information is skipped if the player name interrupting is disabled. This results in the following lines of code not being executed and thus not available in mods
Plater-Nameplates/Plater.lua
Lines 9459 to 9466 in 1bffeb0
Proposal
Move the
if (not Plater.db.profile.show_interrupt_author) then
check to wrap around theSetText(INTERRUPTED ..
call only so that all other code is still executed. I suspect the early return also blocks the interrupt animation from playing if the interrupt name is not shown.Issue 2
The snippet takes
sourceName
, and the translit happens only onname
:Plater-Nameplates/Plater.lua
Lines 9481 to 9487 in 1bffeb0
Proposal
Set the interrupt source name to be the translit name so mods get this value instead of the original.
Issue 3
In the DF unitframes lib
IsInterrupted
isn't set because the key is namedinterrupted
there. I'm not sure if these 2 are supposed to work together, but both are available in modsPlater-Nameplates/libs/DF/unitframe.lua
Lines 1821 to 1847 in 1bffeb0
Proposal
Plater could use the same keys as the DF lib. Always sync
interrupted
toIsInterrupted
and replace this one by interrupted in the scripting panels. Alternatively DF lib could start usingIsInterrupted
instead ofinterrupted
.Another thing is that
InterruptSourceName
andInterruptSourceGUID
could be moved to the lib if that's where the properties should go.The text was updated successfully, but these errors were encountered: