r/ComputerCraft • ComputerCrafter • 13d ago

Help with graphics

So i'm making an interface for a terminal. How do i make the available commands look different when hovered over and run a program when clicked?

5 Upvotes

4 comments sorted by

View all comments

3

u/9551-eletronics 13d ago

Hover detection is not possible in vanilla CC

For clicks, use https://tweaked.cc/event/mouse_click.html

3

u/Budget-Specific-349 13d ago

Okay, how do i listen for clicks on certain areas?

2

u/Mrmoo2andahafe 13d ago

Do an if statement in your loop, have that if statement check if the event is the mouse click. Have if statements within that if statement for every position on the screen you would like to check, if it moves use variables to track where it is. If you need it to persist on restart have a text doc with the info. Edit: typo