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"

Widget buttons and textboxes not working.

A couple of days ago I made a crafting system. When you interact with an anvil, a widget pops up. It contains a few buttons, but they don't quite work. Basically I click on them and nothing happens. I have to spam-click on them until they finally register a click. I thought it was because I have a text component over the button, but I deleted it and still it doesn't work. I ignored it, because I justcouldn't fix it.
Now I'm trying to make a console. So I have a widget with a textbox component, but this doesn't work either. It seems like it gains focus for like an attosecond, but then it loses it.
I tried to use Set Input Mode to UI in my HUD BP, but it still doesn't work...
The way I did the console and the crafting UI is pretty simple. I have a main widget, which normally just displays the player's health and a couple of other things and then inside of it a have the console and the crafting widgets both as components. Normally they're hidden, but when a player interacts with an anvil, or activates the console, I set their visibility to Visible.
I'm pulling my hair out over this for so long and I just can't find an answer.

Here's my main widget's graph:alt text

Product Version: Not Selected
widgets.png (160.0 kB)
more ▼

asked Aug 07 '17 at 07:26 PM in Blueprint Scripting

avatar image

94 21 24 28

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

1 answer: sort voted first

First of all Setting Visibility on tick? Bad J0ker! Set them when you need them to show -> Your Anvil activated Event or whatever Event occours that should show up UI. Same for Hidding.

What happens on on Then0? Any other places you do anything with your UI´s? Try unconecting a couple Nodes and See if something changed. Not enough info to Debug here.

more ▼

answered Aug 07 '17 at 09:39 PM

avatar image

7k 143 28 172

avatar image J0K3R_12QQ Aug 08 '17 at 08:47 AM

Hmmm... How exactly can I set the visibility on event? I could add a custom event, but how can I call it from the player's C++ class?

On Then 0 I do a cast to the player class and setting a slider component's value to player's health / 100 and few other text components' values to variables from the player class. The "Is Crafting" and "Console" booleans also come from this cast node.

(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