General program structure

From Wiki pLua

Jump to: navigation, search

Programs in plua don't follow a certain structure. You can run a program lineary, or you can make functions, and call then in order or at an event.

Plua executes code without any user interaction until a event handler is specifically passed, being it a gui.event() or pevent() built in function.

It is also possible to make program controls, but they are created at a certain order, and it is necesary for the program to call pevent() in order to detect all events.

Personal tools