Trying to add this code for a button but its not running correctly

BUT
it should not be that difficult:

again: this will NOT work:

import A

variable B

setup 

draw

// same or other tab
import A

variable B

setup 

draw

but for a “merge” that could work:

import A

variable B

setup 
setup_button()

draw
draw_button()

// same or other tab
// import A    // disable double import

// variable B // can not declare same variables 
// comment out if same use
// rename if same name but different use
// use like:
variable Bbutton

// setup
setup_button()
//draw
draw_button()

1 Like