gui element x/y position ++ graph element
Posted: Tue Jul 31, 2018 10:25 pm
graph element:
It would be nice if we had a gui element for graphs, like the one you are using for the electricity network
i suggest it would have the properties value (table with value assignments x->y), min value (lower end of the scale), max value (upper end of the scale), color and line thickness.
the modder could simply lay multiple graphs over each other to have multiple displayed in the same box, or maybe you could make it possible to display multiple in the same element, which is probably the only way to make colors blend
element x/y position
i think the gui elements are also missing a property to set the margin of an element, or x/y position in the parent element if it's possible with the current flow system.
i tried recreating the graph with 2 different approaches
1. i used progressbars for the dots, but even an 80x50 table full of dots uses so much graphics performance that the game really starts lagging when there are 4 on the screen.
2. still progressbars for the dots, but flow elements to space them vertically, but changing the minimal height of those 400 elements of only a single table slows down the cpu side of the game by at least 2 ticks.
It would be nice if we had a gui element for graphs, like the one you are using for the electricity network
i suggest it would have the properties value (table with value assignments x->y), min value (lower end of the scale), max value (upper end of the scale), color and line thickness.
the modder could simply lay multiple graphs over each other to have multiple displayed in the same box, or maybe you could make it possible to display multiple in the same element, which is probably the only way to make colors blend
element x/y position
i think the gui elements are also missing a property to set the margin of an element, or x/y position in the parent element if it's possible with the current flow system.
i tried recreating the graph with 2 different approaches
1. i used progressbars for the dots, but even an 80x50 table full of dots uses so much graphics performance that the game really starts lagging when there are 4 on the screen.
2. still progressbars for the dots, but flow elements to space them vertically, but changing the minimal height of those 400 elements of only a single table slows down the cpu side of the game by at least 2 ticks.