Originally Posted by myrroddin
You have a few options, depending on how you want to code. - Call AceConfigDialog-3.0's NotifyChange(appName) which is usually used if you have both a Broker button and the Interface Options panel
- Redraw your minimap, which you probably need to do even with the first option
|
Hi,
AceConfigDialog does not seem to have a
NotifyChange(appName) function:
https://www.wowace.com/projects/ace3...fig-dialog-3-0
EDIT:
I guess you meant AceConfigRegistry... I tried it:
Lua Code:
CONFIG:RegisterOptionsTable("LybrialUIMiniMap", LybrialUI.options.args.miniMap);
Lua Code:
anchor = {
type = "select",
order = 1,
name = LOCALE["ANCHOR"],
desc = LOCALE["ANCHOR_MINI_MAP"],
values = CORE.Values.Anchors,
get = function()
return LybrialMiniMap.db.profile.position.anchor;
end,
set = function(_, value)
LybrialMiniMap.db.profile.position.anchor = value;
LybrialMiniMap:OnUpdatePosition();
CONFIG_REGISTRY:NotifyChange("LybrialUIMiniMap");
end,
},
Seems like
NotifyChange has no effect at all.