only a few node references left

This commit is contained in:
Jeff Carr 2025-02-19 04:25:46 -06:00
parent a5800917e8
commit f36f9cfd0f
2 changed files with 6 additions and 2 deletions

View File

@ -62,11 +62,11 @@ func doMouseClick(w int, h int) {
case widget.Checkbox:
if tk.Checked() {
log.Log(WARN, "checkbox is being set to false")
tk.node.State.Checked = false
tk.SetChecked(false)
tk.setCheckbox()
} else {
log.Log(WARN, "checkbox is being set to true")
tk.node.State.Checked = true
tk.SetChecked(true)
tk.setCheckbox()
}
me.myTree.SendUserEvent(tk.node)

View File

@ -57,3 +57,7 @@ func (tk *guiWidget) GridW() int {
func (tk *guiWidget) GridH() int {
return tk.node.State.AtH
}
func (tk *guiWidget) SetChecked(b bool) {
tk.node.State.Checked = b
}