Skip to content

Commit c2ae634

Browse files
committed
make rune display update on settings change
1 parent 1cf6a92 commit c2ae634

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

UI/Options/EncounterAlerts.lua

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ local function build_anchor_options(SettingsName)
1010
value = i,
1111
onclick = function(_, _, value)
1212
NSRT.Settings[SettingsName] = list[value]
13+
if NSI.IsLuraPreview then
14+
NSI.EncounterAlertStart[3183](NSI, 15, true)
15+
end
1316
end
1417
})
1518
end
@@ -367,6 +370,9 @@ local function BuildEncounterAlertsOptions()
367370
get = function() return NSRT.Settings.LuraDisplayOffsetX or 300 end,
368371
set = function(self, fixedparam, value)
369372
NSRT.Settings.LuraDisplayOffsetX = value
373+
if NSI.IsLuraPreview then
374+
NSI.EncounterAlertStart[3183](NSI, 15, true)
375+
end
370376
end,
371377
min = -2000,
372378
max = 2000,
@@ -379,6 +385,9 @@ local function BuildEncounterAlertsOptions()
379385
get = function() return NSRT.Settings.LuraDisplayOffsetY or -300 end,
380386
set = function(self, fixedparam, value)
381387
NSRT.Settings.LuraDisplayOffsetY = value
388+
if NSI.IsLuraPreview then
389+
NSI.EncounterAlertStart[3183](NSI, 15, true)
390+
end
382391
end,
383392
min = -2000,
384393
max = 2000,
@@ -391,7 +400,9 @@ local function BuildEncounterAlertsOptions()
391400
get = function() return NSRT.Settings.LuraDisplayColor or {0.5, 0.5, 0.5, 0.9} end,
392401
set = function(self, r, g, b, a)
393402
NSRT.Settings.LuraDisplayColor = {r, g, b, a}
394-
NSI:UpdateReminderFrame(false, true)
403+
if NSI.IsLuraPreview then
404+
NSI.EncounterAlertStart[3183](NSI, 15, true)
405+
end
395406
end,
396407
hasAlpha = true,
397408
nocombat = true,

0 commit comments

Comments
 (0)