Hello Guest

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.


Messages - calclavia

Pages: [1]
1
Support / Re: UILayoutContainerSizer reset layout
« on: November 08, 2013, 04:48:26 pm »
Thanks, I'll work around that then.

You might have missed my second question:

Is there a way to add an event so when someone clicks on the button, it will call a function with a specific parameter based on the id of that button?

Something like:

onClick += loadLevel(levelID);

Right now I can add an event for a function without parameter. Is there a way to do it for functions with parameters?

2
Support / Re: UILayoutContainerSizer reset layout
« on: November 07, 2013, 02:37:18 pm »
Thanks! That worked! Is there a way I can make it automatically create new lines? I want to have 3 columns (each with about 5-6 buttons for different levels) or do I have to do that manually by creating 3 layout containers?

Example of one column:



Also, is there a way to add an event so when someone clicks on the button, it will call a function with a specific parameter based on the id of that button?

Something like:

onClick += loadLevel(levelID);

Many thanks!

3
Support / UILayoutContainerSizer reset layout
« on: November 06, 2013, 02:46:50 pm »
Hi,

I'd like to ask if there is a function I can call on the UILayoutContainerSizer to make it reset all the UI elements inside of it to have fixed size during runtime (similar to the button pressed in the editor)?

I have a level selection menu with buttons being added in real-time based on how many levels are loaded. I need them to be able to layout-evenly row by row. It's a very typical level selection menu:



Any help is appreciated.

Thanks,
Calclavia

Pages: [1]