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

Topics - pbortler

#1
Help requests / How do you connect in 0.9?
11 September 2020, 00:06:15
How do you connect in 0.9? I used to be able to pass a function to listbox->connect("ItemPressed", cb) but I can no longer do this. listbox->onItemSelect.connect(cb); produces an error, as does passing (&cb).

What's the trick to getting connect to work in 0.9?

Documentation would be really helpful. Do you maybe have a younger brother or a cousin or a neighbour who could do it for you?
#2
I can't seem to get any kind of ScrollbarRenderer from the ChatBox or the ChatBoxRenderer. I can get a RenderData object, but I can't make any use of it. Creating a ScrollbarRenderer, passing ChatBox->getRenderer()->getScrollbar() into its setData(), modifying the background texture, and using the modified ScrollbarRenderer's getData() for ChatBox->getRenderer()->setScrollbar() has no effect.

That was just a guess though, since guessing is the best I can do with no useful documentation or examples.

So what's the trick to getting access to a ChatBox ScrollbarRenderer?