From 9322606ddcc015b2b35cb5aa0267086b2663dc01 Mon Sep 17 00:00:00 2001 From: rilgamon Date: Wed, 21 Apr 2021 15:31:08 +0200 Subject: [PATCH] Add setting for digits --- prefs.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/prefs.lua b/prefs.lua index f7dd708..fd9da72 100644 --- a/prefs.lua +++ b/prefs.lua @@ -1,12 +1,14 @@ local addonName, addon = ... local childName = addon['childName'] local child = addon[childName] +local L = LibStub("AceLocale-3.0"):GetLocale(childName, true) local init = { Setup = function(self) local config = LibStub:GetLibrary("zzConfig") local options = child['options'] local main = options['args'][childName] -- print("setup prefs", childName) + config:AddConfigEntry(main, "digits", "range", L['Digits'], L['Number of digits after the decimal point'], 1, 0, 5, 1, false) end } --- addon.RegisterCallback(init, format("Init%s", childName), 'Setup') \ No newline at end of file +addon.RegisterCallback(init, format("Init%s", childName), 'Setup') \ No newline at end of file