comparison Options.lua @ 159:a3507735dfd9 v75

Fixed a rendering issue with auto-logging checkboxes.
author yellowfive
date Wed, 24 Apr 2019 18:00:42 -0700
parents a0894ffebd15
children 35612aee8e15
comparison
equal deleted inserted replaced
158:a338b9299e7a 159:a3507735dfd9
43 end 43 end
44 44
45 local function createCheck(container, setting, text, description) 45 local function createCheck(container, setting, text, description)
46 46
47 local chk = AceGUI:Create("AmrUiCheckBox") 47 local chk = AceGUI:Create("AmrUiCheckBox")
48 container:AddChild(chk)
48 chk:SetUserData("setting", setting) 49 chk:SetUserData("setting", setting)
49 chk:SetText(text) 50 chk:SetText(text)
50 chk:SetCallback("OnClick", onCheckClick) 51 chk:SetCallback("OnClick", onCheckClick)
51 container:AddChild(chk)
52 52
53 local desc = AceGUI:Create("AmrUiLabel") 53 local desc = AceGUI:Create("AmrUiLabel")
54 container:AddChild(desc) 54 container:AddChild(desc)
55 desc:SetWidth(800) 55 desc:SetWidth(800)
56 desc:SetText(description) 56 desc:SetText(description)