How do I rename list entries correctly.

Get help using Construct 2

Post » Fri Aug 18, 2017 8:18 am

Its a clever idea that looks nice. You see the lists near the top. When you create a settlement it adds to the list. Removing removes it. When you choose a settlement on the left and a different one on the right, it transfers the set number of resources from one to the other every x seconds.

Image

My issue is when you rename a settlement it updates the entry until you enter a space. Having a space is as far as i know unpreventable and fine when renaming a settlement (textbox)... but the list doesn't like it. Which is odd as i can enter entries in fine with a space but not when typing it out using the code below.

Image

Will other code work? It is basically losing the ability to find the entry once a space is added.
- Head of Tall Story Studios.

Creator of GOV, Project Abyss, Spiritlands & more!
B
27
S
12
G
1
Posts: 129
Reputation: 3,064

Post » Fri Aug 18, 2017 10:45 am

B
33
S
18
G
28
Posts: 2,493
Reputation: 20,950

Post » Sat Aug 19, 2017 12:34 pm

99Instances2Go wrote:Works perfectly fine.
https://www.dropbox.com/s/ucosm9xuogs0t ... .capx?dl=0

You used a different method to pick what is changed.

The last event doesn't do anything sadly. Your capz has made me aware of another issue... while textboxes allow for 2 spaces- list entries don't.
- Head of Tall Story Studios.

Creator of GOV, Project Abyss, Spiritlands & more!
B
27
S
12
G
1
Posts: 129
Reputation: 3,064

Post » Sat Aug 19, 2017 4:14 pm

You are right, i see now, list entries do not take consecutive space characters.

Time to fall back on arrays.
B
33
S
18
G
28
Posts: 2,493
Reputation: 20,950

Post » Tue Aug 22, 2017 3:28 pm

99Instances2Go wrote:You are right, i see now, list entries do not take consecutive space characters.

Time to fall back on arrays.

That's a shame. Thanks anyway.
- Head of Tall Story Studios.

Creator of GOV, Project Abyss, Spiritlands & more!
B
27
S
12
G
1
Posts: 129
Reputation: 3,064


Return to How do I....?

Who is online

Users browsing this forum: facecrime, odiusfly and 16 guests