Posted 08 February 2013 - 06:22 AM
i am trying to write my own API for buttons in CC (touchscreen monitors ftw) and i have the following problem:
my button api loadstrings a function stored in a table when one of the buttons is clicked. this works for standart functions, but it doesnt work for any function in the main program code.
i think this is solveable with setfenv and getfenv but i dont know what these do.
my button api loadstrings a function stored in a table when one of the buttons is clicked. this works for standart functions, but it doesnt work for any function in the main program code.
i think this is solveable with setfenv and getfenv but i dont know what these do.