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"

How to highlight Inventory Object by clicking it?

Hello,

I want to make a highlight around the slot I click in my inventory widget. I can simply put a button under it and change the color but I want it to reset color after clicking another slot. I use a widget bp for slots and multiply them in a slot panel on another widget bp for inventory.

Product Version: UE 4.18
Tags:
more ▼

asked Dec 01 '17 at 05:35 PM in Blueprint Scripting

avatar image

serefatilla
5 1 2 5

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

1 answer: sort voted first

And what exactly you got trouble with?

OnClick -> Reset Highlight on Last Clicked Button (+ isValid Check)-> Highlight Clicked button -> Set Last Clicked Button to the one you clicked.

more ▼

answered Dec 01 '17 at 06:05 PM

avatar image

Nachtmahr
7k 143 28 172

avatar image Nachtmahr Dec 01 '17 at 06:06 PM

Also there are 2 Events you might want to look into. OnFocusRecived and OnFocusLost.

avatar image serefatilla Dec 01 '17 at 06:08 PM

Thanks. I will try those events.

avatar image serefatilla Dec 01 '17 at 06:47 PM

The problem is I am trying to change color from Slot Widget BP. I create an event on click and change the color of the button from transparent to a shiny orange. But after I click another slot I don't have access to highlighted one to make it transparent again.

avatar image Nachtmahr Dec 01 '17 at 06:52 PM

Yes thats why I told you to store the last Clicked one ;P or play around with the Focus events.

(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