6

Dynamic variable array for text color and icon for list menu in a scene

For example, I have an array_list with (red, green, blue), so I want that when the list display, the item red will be in red color and so on.

So the idea is that we can create another array for example array_color based on array_list with (#ffff0000, #ff00ff00, #ff0000ff) and put the variable in the text color field. Then the text color and array item is link together by the array index, therefore the list will display array_list(1) with the text color array_color(1).

The same suggestion for image path in Item Layout. So we can put array_icon in the image path field.

4 replies

FG

Want it too. We only need the %Index variable. 

RR

Dynamic setting of icons in a menu scene element has been needed for a long time. An array can be used to set the labels , but not the icons.

ПП

Did someone find way to set dynamic icon path by array in menu scene?

JM

Yea, just an %index item inside the menu designer would be perfect! Would solve pretty much everything to do with cause you could edit any single value really easily. Genuinely surprised it isn't already there, feels like the kind of thing that'd already be there. Maybe it's just harder than it seems to implement?