From 459db05874de0f9827153d86b142f35e7aa41f3f Mon Sep 17 00:00:00 2001 From: Robert Jelic <36573031+NoryiE@users.noreply.github.com> Date: Sat, 2 Apr 2022 08:32:03 +0200 Subject: [PATCH] Updated Checkbox (markdown) --- Checkbox.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Checkbox.md b/Checkbox.md index fdd3e72..401d10b 100644 --- a/Checkbox.md +++ b/Checkbox.md @@ -3,7 +3,7 @@ Checkbox are objects, which sets the value to true or false by clicking on them Here is a example of how to create a standard checkbox: ````lua -local mainFrame = CreateFrame("myFirstFrame"):show() +local mainFrame = NyoUI.createFrame("myFirstFrame"):show() local aCheckbox = mainFrame:addCheckbox("myFirstCheckbox"):show() ```` @@ -17,7 +17,7 @@ There are currently no unique functions. Everything you need you can see in the Get and set the current value: ````lua -local mainFrame = CreateFrame("myFirstFrame"):show() +local mainFrame = NyoUI.createFrame("myFirstFrame"):show() local aCheckbox = mainFrame:addCheckbox("myFirstCheckbox"):setValue(true):show() NyoUI.debug(aCheckbox:getValue()) - returns true ```` @@ -25,7 +25,7 @@ NyoUI.debug(aCheckbox:getValue()) - returns true Create a onChange event: ````lua -local mainFrame = CreateFrame("myFirstFrame"):show() +local mainFrame = NyoUI.createFrame("myFirstFrame"):show() local aCheckbox = mainFrame:addCheckbox("myFirstCheckbox"):onChange(function(self) NyoUI.debug("The value got changed into "..self:getValue()) end):show() ````