Tutorial: Create Custom Resource Counting UIs Using Verse in UEFN!
HTML-код
- Опубликовано: 8 сен 2024
- In this tutorial, learn the basics of designing custom resource UIs in Verse. These are great for tycoons!
If you want to cut out the work, you can download the code here:
pastebin.com/P...
Join our Creative Community Discord: / discord
Twitter: @maestro_shark
Twitch: / maestrosharkcreative
TikTok: @maestroshark
So I have an image on the same Widget that I want to show underneath the text. How would I add this to the code seeing as the code currently is only adding the text and nothing else in the widget.
Thanks it helps me a lot and save me lot of money. For me its not posible to code by my self and i cant find friends to create maps with me, its sad because i have in plan big projects but solo its imposible to do it next to work.
To Widgets the scale correctly, use the "Overlay" panel
This is exactly what I needed haha! Thank you Maestro!
Great tutorial, UEFN definitely needs a device for this
Has anyone solved the problem of the HUD scaling? So the UI doesnt change position when HUD scaling
your the best 3 tutorials down awesome
Hey i want to make custom currency wich is not gold and not an item in the game. And idk how to do it. I tried to make it when i earn gold the number goes up and it didnt work.. pls help
Excelente tuto Bro sigue así te mando saludos y bendiciones
This UI method seems to have stopped displaying on my map after the 28.10 patch yesterday. Are you getting the same thing? is there a workaround?
Hey thanks! But why this code is not working for multiplayer?
Awesome tutorial, thanks!
where's the canvas tutorial that you mentioned on 7:58 ? I couldn't find it
is this one "Interactive UI Buttons in UEFN/Fortnite Creative [Tutorial]" ?
Hello! Could you make a gold/sec indicator as well, it would help a lot!
thanks for sharing the code!
Can you make a tutorial on voting system with ui in verse
Love the tutorial, was wondering if you could do a small tutorial explaining how we could show multiple counters (For multiple resources)?, i managed to fix the anchor but confused slightly on how to approach the multiple counters part.
Just a simple copy and paste and changing of variables to make multiple counters. In the ui function, add a new text block widget, in the updating function include that text block widget
@@MaestroShark I tried duplicating and editing the text block widget but kept getting stuck on errors. I'm extremely new to verse, i joined the discord asking for help. I would really appropriate it if you could show me what you mean.
@@umf4798Yeah just keep working at it. Like he said, make sure your variable names aren't the same. Keep working at it!!! Coding is not easy at all and he does a great job of explaining things, so just keep watching and learning
how did you fix the anchor thing?
@@merdo4611 It can't be fixed but you can recommend the hud scale so its always in the same place
Are you going to do an event concept?
Unfortunately not, all the cards were against me. I’m hoping to make one this winter.
How would you add a counter of coins per seconds not total value
How do I get over 3 layers in paint?
Pls I need help I need to make this map quickly but I don’t even have the dirt paint layer
I was trying to make this code for multiplayer but when we start the game the gold amount start switching between how much i have and how much other players have , can you help me to fix it ?
i followed exactly, but the text didnt update. so i copied your code from the link, and tried that, and it still didnt update. any idea why?
EDIT- ok, so i ended up opening a new project and trying it, and it worked, so idk what was happening.
also in the previous project i was having an issue where, when i would build verse code, and up top where it says to push verse changes, it also kept saying that i needed to push the games changes. and after id do that it still say the same thing. what exactly causes that to happen? cuz that could of been the issue i was having.
How do you set gold in the inventory using verse tho?
I'm trying to add a second canvas for my map, but it's saying unreachable code when I try to return the 2nd canvas
“Unreachable” likely means you have a break or return statement before the return statement you want to use. Otherwise you likely defined the function out of scope. If you’re struggling, get the first canvas function working, copy and paste it then change it for your second canvas
now what if we wanted multiple counters for different items? Exm: coins, eggs, etc.?
Same process, just add another text block, another canvas slot, and test with a different slot of the conditional button.
So do you mean add these into the current verse code or create a new verse file same process?@@MaestroShark
@@Cobbfather you can easily add these into the same device.
Thank You Great Video by the way I Subscribed, I'm new to verse, So would i copy MyCanvas:=canvas: and below then just copy in the offsets for the New Text Block that i would put into the Widget?@@MaestroShark
@@Cobbfather rather than copy the canvas, add another canvas_slot below the other one, set up your margins and add another text_block widget. Make sure you update the text and store that text_block to allow you to update
OR as an easy alternative if this is above/below your gold text, you can just add the text onto your current text_block: for example, “Gold: {NameOfTheGoldCountVariable}
Other Resource: {NameOfOtherResourceCountVariable}”
Etc. just make sure you’re using the right conditional button slot to get each counted variable and note that
is the code for a newline, so when displayed it would show:
Gold: 0
Other Resource: 0
when you like buy something with the gold dose it go less
Can you make a tutorial on making custom health and shield bars?
I have a seperate widget hud which is a overlay and the resource counter is showing under the overlay is thereee a way I can makee the resorce counter layer above the hud layer
Swap the order they’re at in your overlay widget. I can’t remember what the order rules are but if you swap their code the counter should appear on top.
@@MaestroShark can you explain it more?
I madea frame for the text, but the text appears behind of the image, any ideas?
That’s my issue, hope he responds
did you fix it?
How can you make it shorten the numbers? eg 40.5k instead of 40500
divide number by 1000 and add k at the end
@@ninofranci3922 im getting loads of zeros at the end on my float when i do that, how can i get rid of these
Thanks very much! Is there any way to resize the text?
Unfortunately not, that’s a feature Epic should work on! It does resize when hud scale is increased in player settings but obviously that can’t be controlled
This is great, thanks! How do I get MyResource to show up with commas i.e. 1,000,000 instead of 1000000?
That’d be a great mini-tutorial, I’ll link it for you sometime soon
@@MaestroShark any ideas on this? It's been driving me crazy and I can't find any explanations. I noticed if I pass the UI an integer it has commas but a string doesn't is there a way to convert it to an int?
@@artbytav you can use simple integer math to separate into multiple variables. For example:
MyInt = 937,400,290
MyString = “”
Val := MyInt/100000 (which would be 937)
(If Val>0):
string += “{Val},”
And so on
@@MaestroShark Thanks so much! I’ll give this a try. I’m an artist so I’m slowly trying to wrap my head around all this verse code. It would be great to see how this integrates into the code in your video/pastebin.
what is done in 5 minutes to manage to record for 40 minutes, you still have to try so hard)
how did you learn this
Learn Verse? Months of just experimentation, and reading the verse api to figure out what I would need.
Learn this? I already knew how UIs worked so all I needed to do was set one up and know how to count resources
Amazing tutorial! Is there a way to contact you to ask a few questions?
You can contact @MaestroShark on discord
23:00
😭
very good video ! i wished that "get agent count" for score, eliminations. eliminated and other things was a thing or is it possible somehow? would make life so much easyer
You can use a score manager to get player score. Eliminated/eliminations can be tracked with a tracker device
WOW lol i have made triggers updating the hud ui must check that out! thank u maestro@@MaestroShark
@@jahshaka2000 can you give me the code for the elimination tracker ?