Nsk 1.7.0
What's new
Changelog
1.7.0 (LibStub Nsk-1.0, revision 8)
Added
ns.settingsPanel.SetValue(key, value): changes a setting through its control on the settings page, so an open page shows the new value at once. Falls back tons.settingsStore.Setwhen the setting has no control.panel:DependsOn(parentKey, enabledValue): optional second argument, the value ofparentKeythat enables the control (defaulttrue). Passfalseto disable a control while a checkbox is on.panel:AddSubpage(title): adds a sub-page that the AddOns list shows under the addon's [+]. It takes the same controls as the panel and is registered by the panel'sRegister().panel:AddColorPicker(label, key, tooltip): a color swatch that opens Blizzard's color picker. The setting is an opaque"ffRRGGBB"hex string, updated live while dragging; Cancel restores the previous color. A Class color button above the hex box picks the player's class color.panel:AddPosition(label, xKey, yKey, tooltip, options): a row with X and Y boxes on one line and four arrow buttons (1 px, Shift-click 10 px). Writes whole numbers throughns.settingsStore.Set;options.readCurrentsupplies the position while the stored one is unset. Without the Settings color swatch, the setting is registered with no control.
This mod has no additional files

