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"

Creating Dynamic Expanding Widget

Hello,

I am making a text based inventory system instead of the typical slot based. I've run into an issue where I'm trying to make the item name on clicked expand to reveal Item information. Now, I've got the Item button to be added to the inventory but I have no clue how to make it so it can expand.

I have tried messing with expandable area's but it never seems to be two sizes.

I would like for the Item row to be flush with the others unless clicked, then it would expand. I have provided a picture to demonstrate.

Would someone be able to help me?

alt text

Product Version: UE 4.21
Tags:
inventory.jpg (81.0 kB)
more ▼

asked Jan 10 '19 at 12:39 AM in Blueprint Scripting

avatar image

xRoci
7 2 2 8

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

You should be able to use the Set Size node to change the size of your widget. This node changes a widget slot's size just like would happen if you manually set the widget's size in the editor.

Note that the target type is Canvas Panel Slot, which means you'll want to use the Slot as Canvas Slot node on the widget whose size you want to change.

For starters, I suggest setting up a debug button somewhere, and creating an OnClick event for that button, just so you can call up the Set Size node to see if it works with your setup. If it does, you can proceed onto setting up more complicated behavior, like resizing in both directions, and animating between the two size states.

Hope this helps!

more ▼

answered Jan 10 '19 at 04:14 PM

avatar image

the_batch
1.2k 4 5 8

avatar image xRoci Jan 10 '19 at 06:45 PM

Thank you for the reply! I will give that a try when I get home!

avatar image xRoci Jan 11 '19 at 11:18 AM

This ended up working for me, but it didn't have the desired affect that I wanted. So I am looking for alternatives to show stats.

(comments are locked)
10|2000 characters needed characters left
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