Interactive - Notify Layout

16 minutes
Share the link to this page
Copied
  Completed
You need to have access to the item to view this lesson.
One-time Fee
$99.99
List Price:  $139.99
You save:  $40
€92.78
List Price:  €129.90
You save:  €37.11
£79.40
List Price:  £111.16
You save:  £31.76
CA$136.11
List Price:  CA$190.56
You save:  CA$54.44
A$154.13
List Price:  A$215.78
You save:  A$61.65
S$135.08
List Price:  S$189.12
You save:  S$54.03
HK$782.28
List Price:  HK$1,095.23
You save:  HK$312.94
CHF 90.61
List Price:  CHF 126.85
You save:  CHF 36.24
NOK kr1,085.23
List Price:  NOK kr1,519.37
You save:  NOK kr434.13
DKK kr692.01
List Price:  DKK kr968.84
You save:  DKK kr276.83
NZ$167.80
List Price:  NZ$234.94
You save:  NZ$67.13
د.إ367.19
List Price:  د.إ514.08
You save:  د.إ146.89
৳10,976.08
List Price:  ৳15,366.96
You save:  ৳4,390.87
₹8,339.52
List Price:  ₹11,675.66
You save:  ₹3,336.14
RM473.25
List Price:  RM662.57
You save:  RM189.32
₦141,842.81
List Price:  ₦198,585.61
You save:  ₦56,742.80
₨27,810.04
List Price:  ₨38,935.18
You save:  ₨11,125.13
฿3,647.70
List Price:  ฿5,106.92
You save:  ฿1,459.22
₺3,232.12
List Price:  ₺4,525.11
You save:  ₺1,292.98
B$499.21
List Price:  B$698.91
You save:  B$199.70
R1,908.54
List Price:  R2,672.04
You save:  R763.49
Лв180.65
List Price:  Лв252.92
You save:  Лв72.26
₩135,197.71
List Price:  ₩189,282.20
You save:  ₩54,084.49
₪368.63
List Price:  ₪516.10
You save:  ₪147.47
₱5,633.91
List Price:  ₱7,887.71
You save:  ₱2,253.79
¥15,144.47
List Price:  ¥21,202.86
You save:  ¥6,058.39
MX$1,659.40
List Price:  MX$2,323.22
You save:  MX$663.82
QR364.31
List Price:  QR510.04
You save:  QR145.73
P1,370.91
List Price:  P1,919.33
You save:  P548.42
KSh13,148.68
List Price:  KSh18,408.68
You save:  KSh5,260
E£4,729.52
List Price:  E£6,621.52
You save:  E£1,892
ብር5,680.63
List Price:  ብር7,953.11
You save:  ብር2,272.48
Kz83,612.74
List Price:  Kz117,061.18
You save:  Kz33,448.44
CLP$97,978.20
List Price:  CLP$137,173.40
You save:  CLP$39,195.20
CN¥722.95
List Price:  CN¥1,012.16
You save:  CN¥289.21
RD$5,921.50
List Price:  RD$8,290.34
You save:  RD$2,368.83
DA13,490.83
List Price:  DA18,887.70
You save:  DA5,396.87
FJ$226.12
List Price:  FJ$316.58
You save:  FJ$90.46
Q779.86
List Price:  Q1,091.83
You save:  Q311.97
GY$20,923.51
List Price:  GY$29,293.76
You save:  GY$8,370.24
ISK kr13,946.60
List Price:  ISK kr19,525.80
You save:  ISK kr5,579.20
DH1,013.19
List Price:  DH1,418.51
You save:  DH405.32
L1,763.34
List Price:  L2,468.75
You save:  L705.40
ден5,702.11
List Price:  ден7,983.18
You save:  ден2,281.07
MOP$805.89
List Price:  MOP$1,128.28
You save:  MOP$322.39
N$1,893.44
List Price:  N$2,650.90
You save:  N$757.45
C$3,681.15
List Price:  C$5,153.75
You save:  C$1,472.60
रु13,335.63
List Price:  रु18,670.42
You save:  रु5,334.78
S/370.84
List Price:  S/519.19
You save:  S/148.35
K382.72
List Price:  K535.82
You save:  K153.10
SAR375
List Price:  SAR525.01
You save:  SAR150.01
ZK2,522.76
List Price:  ZK3,531.96
You save:  ZK1,009.20
L461.43
List Price:  L646.02
You save:  L184.59
Kč2,350.75
List Price:  Kč3,291.15
You save:  Kč940.39
Ft36,729.02
List Price:  Ft51,422.10
You save:  Ft14,693.08
SEK kr1,071.30
List Price:  SEK kr1,499.86
You save:  SEK kr428.56
ARS$85,766.82
List Price:  ARS$120,076.98
You save:  ARS$34,310.16
Bs691.04
List Price:  Bs967.48
You save:  Bs276.44
COP$387,583.68
List Price:  COP$542,632.66
You save:  COP$155,048.97
₡50,832.34
List Price:  ₡71,167.31
You save:  ₡20,334.97
L2,468.78
List Price:  L3,456.40
You save:  L987.61
₲737,805.73
List Price:  ₲1,032,957.54
You save:  ₲295,151.80
$U3,781.90
List Price:  $U5,294.82
You save:  $U1,512.91
zł400.73
List Price:  zł561.05
You save:  zł160.31
Already have an account? Log In

Transcript

Welcome back everyone. In the last video, we created an interactive base class for an object that we can interact with in level. In this one, we want to create a Widget Blueprint that can be used to present various notifications to our user. So we need a system to message to the user, hey, how to collect a skill orb, that sort of thing. So that's what this one is going to lay the groundwork for. So without further ado, come under your content Metroidvania widgets folder.

And inside this folder, we're going to create a brand new Widget Blueprint by right clicking, coming under user interface, Widget Blueprint, and we're going to call this asset w BP underscore notify. Then we're going to double click on it to open it up. Now In this notification message that we're going to create the layout for, we are going to be needing a B button texture, so I need to import that first. So let me just jump on out of my w BP notify for a moment here. I'm gonna navigate on over to my textures folder. And you can see that I've got a few buttons in here but not the B button.

So you should find that B button texture added as a downloadable to this particular video lesson. Mine is located in a separate folder here on my computer. So I'm simply going to left click and drag this down into my content browser. But for you, you should download it first and then from your downloads folder, left click drag and drop it into your content browser like I am doing. Okay, so there is my B button texture. And again if this unsightly bad And really bothers you, you can double click on this asset, change the texture group here to be a UI, and then save close out.

And if you jump back to the Content Browser, all is now right in the world, you don't see that very, very terrible looking background. Okay, so I'm going to jump back to our w BP notify here Widget Blueprint. And with that created now or that added to our content browser, I am going to add some widgets over here into our hierarchy. So I'm going to add the various widgets first, and then I'm going to set the details for them. So the first one I want to add is an image we're going to drag and drop this onto our canvas panel. I'm going to select it hit f2 and I'm going to call this background underscore pink.

Okay, then I am going to To select another image, drag and drop it on top of our canvas panel. I'm going to hit f2 on that guy and I'm going to call this back round underscore black. I'm going to do one more image drag and drop on our canvas panel, this one hitting f2 on it, I will rename to background underscore black underscore 180 and you'll see why in just a little bit here. Next thing I want to add is a text widget not a text box but a text widget. Let's drag and drop this on top of our canvas panel. I will rename this to be message and then I want to drag and drop one more image on to it Canvas panel.

Hitting f2 on this We'll call this button underscore interact. Okay, so now with all those widgets added to our canvas panel, we are going to set the details for each. And we're gonna start with our background pink right here, so make sure you got that selected. And the first thing I want to do is set an anchor point for this. So over on the right hand side in the Details panel, I'm going to set the anchor point for this to be the bottom middle box, this one right here. Okay, so that's gonna move the anchor point widget right down here.

And now the locational settings and the positional settings, I should say the positional settings are relative to this, I'm going to set my position x to be zero, the position y to be zero and that's going to jump in way down here. Let me kind of zoom up in on that. And I'm going to set my alignment in the x to be the midway point. So I'm going to To set that to be point five and watch when I hit return what that's gonna do to our widget here, it's gonna have it right half of it on this side of the x axis half of it on that side. But I'm going to set the Y for the alignment to be 1.25. So that's going to nudge it up some.

Now for the size x and the size y i do have some settings I want to set for this I'm gonna set the size x to be 530 and the size y I'm gonna set to be 150. Okay, so you can see this notification is meant to appear towards the bottom of the screen. Now I do have some brush in here that I want to slot in. So we're this brush image appears in the Details panel, left click, and right down here, I'm releasing left click. I'm gonna do a search for t underscore Inc. Pink.

So that is what I've got going on right here. Okay, and it's drawn as an image. So that is looking pretty much how I want it to look. Okay, I think everything looks good with that. So let's move on to our background black, select that. And over in the Details panel, I want to set the anchor point for this particular widget to our bottom middle box just like we did with our pink.

Okay, I'm gonna set the position x to be zero the position y to be zero, so you can see what that does. Likewise, I'm going to set the alignment here in the x to be 0.5 not 0.5 point five my bad in the y to be 1.05. That's gonna nudge it up some The size x i want to set to be 573 and the size y I'm going to set to be 180 like so, in the brush down in the appearance section, I'm going to left click hold left click release left click and I'm going to do a search for ink. Let's do a search for ink underscore black. How about that and I'm looking for t underscore ink underscore black that texture. Okay, so you can see how this is starting to shape up a little bit.

Okay, just double checking all my parameters here. That looks pretty good. Okay, so the next one I'm going to select is our background Black 180. As you may have expected, the anchor point for this will also be that bottom middle box The position x. Actually, you know what, before I do the position x and position y and all that sort of stuff, let me slot in the image for this. So you have a little bit more of a visual to go off of when we move this around and resize it.

So for this, the image is also going to be our ink underscore black. Okay, now it's currently way up in the well, you can't really see it right now, because we have the position x set to be this hideous value. Let's set that to be negative 16. And the position y we're going to set that to be eight. Why those values because I did a lot of trial and error. So now you can see it down here.

Okay, very small yet, but if we change the position, sorry, the size x to be 576 Not 576 six by 76 and the size y to be 180. That's gonna stretch it out quite a bit. Now you can see it's not exactly in the location that we want. So I'm going to set the alignment here for the x to be point five, and the alignment in the y to be 1.05. Like so. And right now you're gonna be like well, then that's basically the exact same as the background black that we just added.

Why did we do that? Well, not quite finished here with our background Black 180. Scroll down in the Details panel, and you're going to be looking in the render transform section. What I want to do is I want to change the angle here to be 180. And that's essentially going to flip that ink upside down. And the reason I added two of them here is because with both of them added one of them right side up the other upside down.

This creates a little bit more of a squarish look, which is why I want Okay, so that's looking pretty good. Let's select our message tech Text Block widget. Next, as you may have imagined, our anchor point for this is going to be this bottom middle box. The position x and y is going to be zero in zero. I am going to set the text right away. I'm going to come back up here but I'm going to set the text right away to just be some something called interactive message.

Right. Then I'm going to set the size x here to be 340. The size y is going to be 50. The alignments of the x is going to be point four, five, a lot of fine tuning I did here in the alignment in the y is going to be 2.15 just to nudge that up. Some flipping my page Oh notes here I do have some appearance settings that I want to set for this. I'm going to set the B value for our color and opacity to be zero.

I want it to be yellow. I'm going to change the font family to be our Gothic letters. Looking pretty cool. Yeah. The size of our font, we can leave at 24. The justification for our fonts, I'm scrolling down a little bit where there's this justification, I'm going to set that to be centered, so it's just gonna nudge it on over slightly.

And that should do it for that one. Okay, one more here. Let's select our button interact widget. coming under the anchor section, let's set the anchor to be the bottom middle. The position x is going to be zero position y is going to be zero, the size x and the size y is going to be 70 by 70. The alignment I'm going to set to be 3.4 and the y 1.9.

And I do want to slot in an image under our appearance brush here. I'm going to left click, release, left click and I'm going to look for button underscore be right there. So you can see we're we're going to have a B button and then some interactive message that we're going to swap out with some better text later on. So that is looking pretty good. Not quite finished yet, but with this done ready, let's Compile and Save. Actually one more bit that I forgot to do here with our button interact by scroll down in the behavior section.

Currently, the visibility is set to visible, I want to set this to be hidden. For the time being, it's not actually going to make it go away right now, but through some scripting later on, we're going to be able to show and hide that button as we see fit. Okay, next, let's go on to creating a variable. I'm going to jump on over from our Designer tab here over to our Graph tab. And over in the My Blueprint panel, we're going to create a brand new variable. And I'm going to call this let's call it received message.

And I'm going to change the variable type here from a Boolean to a text variable. Now, if I compile our blueprint, I can set a default value. So I'll just compile here and I'm going to call this received message And the reason we need to create this variable is for the next step here. So the next step is going to involve us jumping back over to the Designer tab. And with our text message here, that guy I'm talking about right there, our interactive message, come over to the Details panel, where it says text. And currently, we've got the text that as interactive message, we want to create a binding for this.

So create or select this little bind button right here. And you can choose Create binding. And that's going to jump us from the Designer tab, back over to the Graph tab, where we are prompted to create a new function. Now I don't like this function name right here of get message text. So I'm going to reveal this function that was just created in the My Blueprint panel. I'm going to select it.

I'm going to hit f2 I'm going to change this function name to be get interactive object message, like so. And all I'm going to do is with that variable that we just created called receive message. I'm talking this guy right here. We're gonna plug that into here, like so. Now, what this is gonna do is it's gonna make it so that when we do eventually show this notification, this placeholder interactive text message is going to get replaced by whatever this function dictates which is over here, this received message now we are going to be able to change this receive message through scripting that's to come. So right now if this doesn't make a lot of sense, that's okay.

These pieces will all come together down the road. But long story short we have this component in place our interactive notify layout is all completed. So let's Compile and Save. That is gonna do it all for this one guys. We will see you in the next one.

Sign Up

Share

Share with friends, get 20% off
Invite your friends to LearnDesk learning marketplace. For each purchase they make, you get 20% off (upto $10) on your next purchase.