Hi, i would like to know how we can do a text that when we touch it execute some code. Thanks for your help!
main.lua
local component = require("component")
local event = require("event")
local computer = require("computer")
local gpu = component.gpu
local term = require("term")
local version = "1.0"
local h, w = gpu.getResolution()
API = require("buttonAPI")
local function base()
gpu.setBackground(0x0000cc)
gpu.fill(1,1,h,1," ")
gpu.set((h / 2) - 5,1,"TopiGui v"..version)
gpu.setBackground(0xcccccc)
gpu.fill(1,2,h,w, " ")
while true do
gpu.setBackground