How to create sidebar?

thanks, I used the button in another blueprint successfully.
But the original will not use in onclick function. Can’t I use this button at same time?
Because I need to toggle and Set Column pawn at the same time.

Connect both.

1 Like

Oh, that’s right! Thanks, you are really kind and very patient.

If you have very long execution chains, you can use the Sequence node to organise it better:

image

It will work either way.

1 Like

Oh, god!
Really thanks for your helps these days.
I just arrived the simple results in my project.
I will keep fighting!
2023-06-29 15-31-28.mkv (1.7 MB)

1 Like

@Everynone I have one question.
I create a new user widget and there is button.
I want to click this button to toggle the wpanel.
Is it use the EVENT DISPATCHERS samely?

That’s the best / cleanest way to communicate from child → parent, yes.


tl;dr:

Do note - if ALL you want is a simple click, native buttons already dispatch that, we just need to get to the button:

The above equals to: whenever a button inside the UserWidget is clicked, execute this Custom Event here. In this case you wouldn’t even need to create a separate event dispatcher.

Buttons (and other native widgets as well) come with built-in stuff:

So you can already execute their Events elsewhere. It does not even need to be the parent widget. You can have this custom execute in any another blueprint. We just need to connect it to the right place.


you wouldn’t even need to create a separate event dispatcher.

The real power of custom Event Dispatchers you add yourself (like in the previous post) comes from the fact that you can add data; as in:

image

Now your widget / actor can send this data when interacted with:

image

It’s by far one of the most efficient method to push a lot of data across in BPs.


Assuming you want to build a menu where every button does something different / unique:

An Event Dispatcher with an Enumerator could be perfect for handling all this. You’d get a single event in a single location where you decide what happens next.

what’s the mean someUserWidget? It mean wPanel?

I think my question is "I create a new user widget and want to arrive the same result in my video when I click this button.

That button is created in the “wPanel” user widget, so it can directly toggle Panel Extension.
But when I create a new user widget, it can not user the toggle Panel Extension.

It would be the equivalent of the entry widget. But the above works for any / all widgets in the same way. It’s just a very generic way.

Sounds like it’s just this:

If in doubt, post a screenshot.

So in my case, my entry widget is the widget which I newly created right?

I cannot possibly guess what you’re up. :slight_smile:

Sorry @Everynone !
Do you see my video result?
I think my question is "I create a new user widget and want to arrive the same result in my video when I click this button.

That button is created in the “wPanel” user interface, so it can directly toggle Panel Extension.
But when I create a new user interface, it can not user the toggle Panel Extension.

so you just create a casual variable to represent the any all widgets, tight?

No. You might’ve missed this step, in the panel:


It may also be a good idea:

image

So you know what goes where.

Sorry, I am not sure whether you understand my question.
Maybe I said not clear. But I just want to toggle Panel Extension Function in a new blueprint of user interface.
I want to click a button to let the wPanel display. So the core question, I can not find that’s function in new user interface blueprint.

wpanelEntry2 is my new user interface. And I create some button. Then I want to click to expand the panel.


The result I want to arrive like previous video, but it is cause from the new button not the video’s button.
2023-06-29 16-39-28.mkv (1.7 MB)

Did you flag this new widget as isVariable?

Yes!

Does it have a custom event dispatcher or you just want to use a simple button click?

Doesn’t have a custom event dispatcher. I just want to use a simple button click. But I don’t know how to do.