spriteelement.sprite ... can only be used on sprite-button?

Place to get help with not working mods / modding interface.
User avatar
ownlyme
Filter Inserter
Filter Inserter
Posts: 445
Joined: Thu Dec 21, 2017 8:02 am
Contact:

spriteelement.sprite ... can only be used on sprite-button?

Post by ownlyme »

i have a table with 4000 entries for a graph and want to replace single sprites with different colors,
but i cant change the sprite of a "sprite" element, it says it only works with sprite-buttons.
i cant regenerate the whole table because it lags half a second.
maybe a way to remove the padding from sprite-buttons?

edit: okay, i did it with progressbars, the creation of the frame is also much faster, but the game's fps drop if there are more than 4 graphs open
i guess this will do it.
creator of 55 mods
My api requests/suggestions: ui relative for overlay||Grenade arc||Player Modifiers||textbox::selection||Singleplayer RCON||disable car's ground sounds
Post Reply

Return to “Modding help”