Create a custom list

Get help using Construct 2

Post » Thu Feb 06, 2014 5:35 am

Hi

I want to create a custom version of the default list plugin for my game since the default version look very ugly.

I remember reading once in a thread here that someone did this already due to the default list not supported by coccoonjs.

If so, can someone link me to it? I cannot find it

If not, can someone teach me how they would approach doing a custom list?

I really require the help.
B
36
S
18
G
11
Posts: 248
Reputation: 8,694

Post » Thu Feb 06, 2014 8:47 am

I don't know about this plugin you are looking for, sorry.

If I was to do a custom list, it would go like this :
- have a variable (an array ?) with the list options,
- have a variable linked to the list, "SelectedOption"
- use a 9patch for the design of the list (when not clicked) and a text for displaying the SelectedOption
- have a sprite on the right of the list (the arrow to show all options) that calls a function to show the list
- showing the list would be building multiple "option" objects, each one being a text, and then have a tiled background for the background of the list. Each option would have a "mouseover" to add some sort of focus (bold, new background, ... your choice)
- clicking an element in the list would update the value of the selectedOption on the list, change the main text, and destroy all options
B
17
S
8
G
4
Posts: 473
Reputation: 6,191

Post » Thu Feb 06, 2014 3:01 pm

It's good for building a list if there's no space limitation.
What I am looking for is more of how to show the players that there are more elements/ choices in the list than what is shown and how to implement a scrolling mechanism so the players can slide the options/ elements around until they find one that they like.Sethmaster2014-02-06 15:01:46
B
36
S
18
G
11
Posts: 248
Reputation: 8,694

Post » Fri Feb 07, 2014 7:29 am

Can someone help?
I still in the dark here, so can a kind soul teach me how to do a custom list?
B
36
S
18
G
11
Posts: 248
Reputation: 8,694


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 32 guests