Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - ksyrx

#1
> ... Could you check what tgui_getLastError() returns ...

Oh, I was looking for getting the last error inattentively...

TGUI: 0.8.7;
CTGUI: 0.8.3;

tgui_getLastError returns: "Signal 'MenuItemClicked' could not provide data for unbound parameters.". I googled it and wandered here: https://forum.tgui.eu/help-requests/signals-unbound-parameter, but not understood how can this be applied to the my problem.

Between this and then, excuse me for post placement about CTGUI here - I haven't found the better section.
#2
I use CTGUI and trying create the simple menu bar.

Here is how I connecting the bar:

Code (none) Select

tguiWidget_connectItemSelected(menu, "menuitemclicked", func);


Here is my callback:

Code (none) Select

void
func(const sfUint32 *menu, const sfUint32 *text) {
    /* to handle menu and text */
}


Signal ID, that returns by tguiWidget_connectItemSelected sets to zero. Is it expected behaviour? Add that tguiWidget_connect returns non-zero and works perfectly.