View Single Post
09-04-20, 12:33 PM   #14
benots4
A Fallenroot Satyr
AddOn Author - Click to view addons
Join Date: Aug 2009
Posts: 20
Thanks. I did exactly as you described, except for changing all the function names but I will. However max is still not set. I made the names unique and removed the AMine.db.profiles . Still works fine except max is still not set.

Code:
zackselectItem ={
	name = "ItemSelector",
	desc = "Pick the entry to display",
	 type = "range",
	 max = itemsCnt,
	min = 1,
	step = 1,
	 set = function (info, val) if itemsCnt ~= nil then if val <= itemsCnt then itemPicker = val end end end,
	 get =  function(info) print( itemsCnt )if  itemPicker ~= nil and  itemPicker <=  itemsCnt then return itemPicker 
		else itemPicker = itemsCnt  end 
		end,						
		},
  Reply With Quote