- Aug 17, 2019
- 5,379
- 8,646
I'm trying to add a toggle for a thin, decorative frame around the VN/renders. I already have an on/off imagebutton/switch ready. Just can't seem to find/figure out the code that would be necessary.
I have the basic ToggleVariable set up:
which looks something like this:
But the On/Off don't seem to register at all, which is why I'm asking. Feels like I'm missing something fairly obvious.
I have the basic ToggleVariable set up:
Python:
imagebutton:
xpos 930
ypos 240
idle "images/menu/ui/eatui/off.png"
hover "images/menu/ui/eatui/off.png"
selected_idle "images/menu/ui/eatui/on.png"
selected_hover "images/menu/ui/eatui/on.png"
focus_mask True
action ToggleVariable("screenframevar", True, False), Play("sound", "music/confirm.wav")
selected (screenframevar)
But the On/Off don't seem to register at all, which is why I'm asking. Feels like I'm missing something fairly obvious.