Started by
Dreamforcer
on
Topic category: Help with Minecraft modding (Java Edition)
I want to make a GUI with some "statements" and a switchable button on the right of it. The button should then have two values: true and false. And if you click on the button the value switches.
My first idea was to make two buttons at the same place. One "true" button and one "false" button. I know how to make button conditions etc., but if I update the value of my "statement" the value does not switch.
I hope I was able to explain my problem to you well enough and you could help me! :D
You can makde a onn and off texture for the switch, put them both at the same position in the GUI, make a invisible button behind it, and make a condition, that only shows the on/ off texture if a variable (SwitchOn) is true/false.
Thanks!
But how do I make/implement Textures for my Button?
And you make an invisible button by "placing" a button and then making a condition that is always false, right?
Hey again! I managed the textures and have one "true" and one "false" button texture. My condition procedure for the textures work but they dont change. I don't why. Maybe someone could help me... :|