several text bindings based on one funktion
Hello i am very new in Unreal Engine development so please excuse me if I say something inaccurate.
In my UI i have like you can see on the first Picture that i have to texts which shows a counter. For every of them i have a + and - Button. which i want to use to increase and decrease the Counters.
The Couters are the ints from a Int array in my savegame. Every Counter shows a own Index of this Int Array.
This is the binding function of the first text. it just returns the int as text for the Index (SHIPINDEX) the other binding looks like this one but it returns the index 1 instead of 0.
This is the GetShipCount-function you saw in the second picture. First this looks for a savegame if there is no one it creates one with all indexes of the array = 0 (and this works well). If there is a savegame, it loads it and get the Int at the Index which is given as Input and return it.
This is the funktion which edit the Ints in the Array. First it look whether it is the +Button or the -Button. Then it loads the save game. And increase or decrease the Int at the index given as Input and save the new values to the savegame.
Now back to the Problem. For one Counter it works fine. But when i edit the second one it resets the first counter to 0 and vice versa. But i want that i can edit this Ints individual.
Thanks for helping me.
Follow this question
Once you sign in you will be able to subscribe for any updates here