Hey there!
I’m working on a UI Level bar & already set up a color_block. Now I want to change the Width of the color_block based on the agentmap of a player.
How do I do that?
this is my color_block widget: LevelBlock : color_block = color_block{DefaultColor := NamedColors.DarkCyan, DefaultDesiredSize := vector2{X:= Width, Y:= 100.0}}
Also, here is the agentmap that should be the width: var LevelBar: [agent]float = map{}