It looks like this. If I press the space bar ‘levelUp’ event runs, but right now it’s not doing anything. How do I make the widget appear on screen?
Depends on how you want it displayed. Normally:
But then all of them would appear in the same location, so you could:
To space them out.
But the normal way to do it is to create another widget with some list, add that to the screen and then add your ability widgets to that list. So… the stuff I sent at the very beginning. There is Begin Play widget called wPanel that should be added to the viewport.
I will not be around for a couple of days or so, so to get you going.
- think of how to store data for the abilities, it can be a simple struct:
- then in the player you could define the data you need using a Map or an Array directly
- those elements would need to be glued togther
To test it I only used ‘add to viewport’. Before showing on the right position, I want to create another widget to show the ‘upgrade shotgun damage’. Should I make two like so:
Check the rest of my post above. Take care for now.
Ok, thanks for your help, I’m going to sleep now.
@Everynone hello, are you there? I wanted to ask something… The panel works fine, but I had another idea. If I have an item, for example a pistol, and upgrades related to it, like ‘pistol damage’. I don’t wanna show the pistol upgrade if I don’t have a pistol. So, how do I make sure the pistol upgrade only will appear after I have unlocked the pistol? Because the way it is right now it picks 3 random upgrades, no matter what.
edit: I’m trying to do is create an enumerator called ‘skills’ that has the option to unlock the pistol. After the pistol is unlocked, take a enumerator called ‘pistolUpgrade’ and join with skills, so now it shows both enumerators. But I can’t add two enumerators together.
edit2:
after the player clicks in ‘unlock smg’ I added ‘smg 1’ to the skill structure, however I don’t know how to set its variables, for example, its name. After that it’s all done I think.
@Everynone Hi, sorry, have been away for some time. Work have been crazy for some time.
But yeah, got a little further in the project.
@Pinteco I’ll send you a PM with info.
A blast from the past!
haha indeed
Hope youre doing well!
Hello @Everynone @Th3Moron
First of all, thank you for your help on this topic.
New to Unreal (and programming), my first project requires setting up a system similar to the one exposed here.
If you have any information other than that outlined in the previous answers that might help me further (like what you sent via PM perhaps), I would be happy to look at it.
Also, @Pinteco (Hi !), if you have been able to set up this system and have any information/tips to share, I would be happy to take note of it. I hope your project progresses as you wish.