x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Adding and Removing buttons depending on....

Ok,

So I am trying to make a somewhat automatic menu. I'll list the things in my menu and then what i would like each one to do.

I have:
4 Buttons named Platform 1,2,3,4
Platforms button (To show the 4 platform buttons)
Exit Vehicle button (Will be removed soon to an object inside car) Back button

When referring to a route, that is just a spline that the vehicle follows.


The game starts and you get into the car. The car has a computer screen with this menu on it. The main menu will have 2 buttons so far (Platforms button and Exit Vehicle button).

Pressing both of these buttons is pretty straight forward. Exit Vehicle will exit the vehicle and respawn the player with no problems and the Platforms button will play an animation making the Platform 1,2,3,4 come into view below the Platforms button (making Platforms button the header so to speak and exit vehicles button moves down to meet the back button that also comes into view).

Now here's the tricky bit. Here is how I was going to do it but am now hoping for a better solution. Vehicle blueprint has 4 boolean variables named Platform 1,2,3,4 and when Platform 1 button is pressed the Platform 1 boolean variable becomes true. Which i then want to show another screen within this screen showing all the different routes you can take to get to platform 1 and so forth for the other platform buttons.

another tricky bit. Say you're at platform 1 and you want to go to platform 2. So you press platform 2 and it shows routes to platform 2. But I only want it to show routes from platform 1 to 2 and dont want it showing routes from platform 3 or 4 going to platform 2.


now for the question, Is there any modular widget tutorials I could follow to set this kind of thing up? Maybe by using automatic resizing boxes based on its contents?

Any tips or vids I can watch about this kind of thing?

Product Version: UE 4.19
Tags:
more ▼

asked Aug 16 '18 at 08:26 AM in Blueprint Scripting

avatar image

Snoxx
21 3 5

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Yep there are a lot of tutorials.

Although not exactly relevant to your specific case my favorite widget tutorial by far is:

https://www.raywenderlich.com/480-unreal-engine-4-ui-tutorial

It has all basic concepts explained and some things that I never thought about ;)

more ▼

answered Aug 16 '18 at 09:03 AM

avatar image

dZh0
1.3k 6 5 9

avatar image Snoxx Aug 16 '18 at 10:28 AM

Mmh, not exactly what I had in mind. I need something more complex than that. Like using widget switching or something similar depending on what button is pressed showing routes for each button.

avatar image dZh0 Aug 16 '18 at 03:02 PM

Fair enough...

If I come across something more advanced, I'll let you know :)

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question