PDA

View Full Version : uiobject callbacks in cscript & c++


Dogfish
10-09-2008, 04:51 PM
cscript has individual callbacks for ui objects e.g.

ecCB_SceneObjectUIChange_checkbox01(...)

but e.g. if I put this function into a .DLL plugin it doesn't get called. Are individual callbacks not supported in plugins, or is there something else I need to do to get this working?

I can put a switch in ecCB_SceneObjectUIChange, but this is less elegant and makes it harder to move code from cscript to a plugin.

p.s. It would also be useful to have a cscript equivalent of lisp's (callfunction).

EspAdmin
10-20-2008, 03:48 AM
hi Mike,

Sorry this thread has been missed. I'll ask Mike or Ben to take a quick peak at this thread and get you an aswer regarding callbacks For now the work around would indeed be to put a switch in the ecCB_SceneObjectUIChange - but as you say this makes it a little harder moving from CScript to a plugin.

The guys have been all out on 3.1 so please bare with us while we catch up.

best,

Phillip

bmistal
10-20-2008, 06:57 AM
Using the switch statement as you have done is the correct and intended way of doing this.

Cheers,
Ben