Hey I’m making a game through ui (it’s mostly a tool to keep track of stuff for a real-life RPG) and i’m trying to make a button that creates a child of a pawn that acts as one of the players and keeps track of their stats. I am then trying to display and select them through a list but am having trouble because lists have to be different ui piece from the main section and you can’t cast to them to use the set text to either get a name or anything and doing it in the list ui it says it can’t cast to it’s self and doing it in the main ui blueprints it says it’s looking for a rich text block. so how can I add a name into the text input on the left press the button and add the name to the list on the right?
That was it that got me most of the way there thank you now I’m just having a problem with pulling up a secondary sheet for the players to mess with their stats. So I called an event dispatch on the widget that is starting the list. I then try to make the new widget but then I can’t seem to get any of the data to save that I mess in that sheet. I tried to make the widget and hide it earlier but then the sheet doesn’t pull up. I tried finding the correct variable type to expose it and set it but I can’t seem to find it. The picture (sorry I can only add one photo) below show my code and my different widgets. One is making a list of players (not using the actual list in the widget just using what the person in the video used) with their name and a button to take them to their specific sheet. In their sheet, you are supposed to see their stats and make changes like setting a player name and increasing their stats. But from what I can tell it doesn’t change it despite me setting it like with the name. Thank you again and if you can help more that would be great.
Never mind I figured it out!!! had to make an index variable plug that in when calling the new sheet then get all actors at that sheet grab the one at the index then set the variables to that but it works.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.