Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:00,256 --> 00:00:02,304
What's a ladder player to pause the game
2
00:00:02,816 --> 00:00:06,656
And access the options from within the game itself
3
00:00:07,168 --> 00:00:11,264
And also give the player an opportunity to quit to main menu and all that good stuff
4
00:00:11,520 --> 00:00:17,664
Shut up we're going to be lazy aka efficient again and we're going to duplicate our main
5
00:00:17,920 --> 00:00:23,040
New and used as the basis of our pause menu so let's go out and go to our
6
00:00:23,296 --> 00:00:26,880
Scenes UI directory was duplicate the main menu
7
00:00:27,392 --> 00:00:28,928
I'm going to call this pause menu
8
00:00:32,768 --> 00:00:34,816
Alright let's go and open up the pause menu
9
00:00:35,328 --> 00:00:37,120
Let's remove the Script
10
00:00:37,376 --> 00:00:39,168
Let's remove the tiles
11
00:00:39,680 --> 00:00:42,240
Let's rename a route now into pause menu
12
00:00:42,752 --> 00:00:44,288
And let's remove the Vineyard
13
00:00:46,336 --> 00:00:48,128
So now they left with this
14
00:00:48,384 --> 00:00:52,224
And what we can do here at let's change the label to paused
15
00:00:52,736 --> 00:00:55,296
You can make it all cabs if you want that might actually work
16
00:00:56,320 --> 00:00:57,600
We can change that to pause
17
00:00:58,112 --> 00:01:00,781
Change tv box containers minimum size
18
00:01:00,783 --> 00:01:03,131
Subtitled by
online-courses.club
We compress knowledge for you!
19
00:01:03,132 --> 00:01:03,488
2
20
00:01:03,744 --> 00:01:05,536
Just to give it a little bit more
21
00:01:05,792 --> 00:01:10,656
With fear and anger take the label and change the horizontal alignment to Centre
22
00:01:11,424 --> 00:01:14,240
And I'm actually going to add another vbox container
23
00:01:14,496 --> 00:01:16,800
And move all of the buttons into there
24
00:01:17,568 --> 00:01:19,872
And the reason I'm doing this is because now
25
00:01:20,128 --> 00:01:22,176
I'm going to change the speed box container
26
00:01:23,200 --> 00:01:24,992
Instead of horizontal in the film
27
00:01:25,760 --> 00:01:28,832
For the container sizing I'm going to change this to shrink Centre
28
00:01:30,112 --> 00:01:34,976
And then I'm going to give it a minimum width of something like 75 in The xx
29
00:01:36,512 --> 00:01:42,656
So I think that looks a lot nicer we've got a panel that has them with to it but then the buttons aren't Sue
30
00:01:42,912 --> 00:01:43,424
Large
31
00:01:45,472 --> 00:01:49,568
And I'm even going to change the box container custom minimum size to 100
32
00:01:49,824 --> 00:01:51,360
Because I like that looks better
33
00:01:51,616 --> 00:01:57,248
Alright so we've gone all of those in place and we need to change these options so we've got the play button
34
00:01:57,760 --> 00:01:59,552
We want change this to resume
35
00:01:59,808 --> 00:02:01,344
So can't resume button
36
00:02:02,112 --> 00:02:04,416
Let's call the text resume
37
00:02:04,672 --> 00:02:09,024
And then we'll use the options near Angela change the quick button to quit to menu
38
00:02:09,536 --> 00:02:11,840
So that the players knows what's happening there
39
00:02:12,352 --> 00:02:14,144
What does pause screen should look like
40
00:02:14,656 --> 00:02:19,520
Let's open up our upgrade screen and making a copy this colour rectangle here
41
00:02:20,032 --> 00:02:23,360
I'm going to just straight up ctrl c copy that colour rectangle
42
00:02:23,616 --> 00:02:25,664
And paste it in the Pars menu
43
00:02:25,920 --> 00:02:31,040
And I'll make it the first child of this note so that it sits over everything else
44
00:02:32,064 --> 00:02:35,392
Now let's create an animation player underneath this pause menu
45
00:02:38,976 --> 00:02:41,792
What's create a new animation with animation button new
46
00:02:42,048 --> 00:02:43,328
Let's call it in
47
00:02:44,096 --> 00:02:48,192
And for the colour rectangles let's keyframe the
48
00:02:48,704 --> 00:02:49,472
Model
49
00:02:50,240 --> 00:02:53,824
Keyframe by clicking the key icon and click create
50
00:02:54,336 --> 00:02:56,896
Let's do .4 seconds my favourite
51
00:02:57,152 --> 00:02:58,432
Animation Direction
52
00:02:59,456 --> 00:03:05,600
And I'm going to set this first keyframe value on this colour rectangle
53
00:03:05,856 --> 00:03:06,624
Alpha of 0
54
00:03:07,136 --> 00:03:09,952
And then over .1 seconds or maybe
55
00:03:10,208 --> 00:03:12,512
Other 0.0015 seconds so again
56
00:03:12,768 --> 00:03:16,608
I've sent my snap 2.05 and my animation likes 2.4
57
00:03:16,864 --> 00:03:18,400
Can you consume any with this lighter hair
58
00:03:19,168 --> 00:03:24,288
And I'm going to change this second keyframe value which is at .15 seconds
59
00:03:24,800 --> 00:03:26,336
To have an alphabets for
60
00:03:26,592 --> 00:03:28,384
Play this is going to feed it
61
00:03:28,640 --> 00:03:29,408
Like so
62
00:03:29,664 --> 00:03:34,016
So now we don't make this margin container already of this panel container feed in
63
00:03:34,528 --> 00:03:36,832
Now a pill container has a size
64
00:03:37,088 --> 00:03:40,160
Of 174 by 136
65
00:03:40,672 --> 00:03:43,232
And that is an obscene number
66
00:03:43,488 --> 00:03:49,120
So I'm going to change the custom minimum size of the panel container to B18
67
00:03:50,144 --> 00:03:52,960
NEX and 14th in the wife
68
00:03:54,240 --> 00:03:56,032
Just to give it some even numbers
69
00:03:56,544 --> 00:04:00,640
Ok so we've got that in animation playing for the colour rectangle
70
00:04:00,896 --> 00:04:04,736
And I'm realising that we're not going to be able to animate this panel container
71
00:04:04,992 --> 00:04:07,296
With the ambition play or can I have to use a tween
72
00:04:07,552 --> 00:04:09,344
So can I change this
73
00:04:09,600 --> 00:04:11,392
Animation Direction 2.15
74
00:04:11,648 --> 00:04:12,416
Like some
75
00:04:12,672 --> 00:04:16,256
Ok and then we will do a new animation
76
00:04:16,512 --> 00:04:17,024
Call
77
00:04:17,280 --> 00:04:23,423
Out and actually you know what we can do we could use the play backwards function so maybe all introduce
78
00:04:23,679 --> 00:04:25,983
Play backwards function soldiers use one animation
79
00:04:26,239 --> 00:04:29,311
Let's rename it by clicking animation rename
80
00:04:29,567 --> 00:04:30,591
Default
81
00:04:31,871 --> 00:04:33,919
Animation for our background
82
00:04:34,687 --> 00:04:38,527
Let's create a script at the pause menu route here something to create that's great
83
00:04:39,551 --> 00:04:40,319
And I'm here
84
00:04:41,087 --> 00:04:45,695
Override a ready method I'm going to turn my animation panel off here
85
00:04:46,463 --> 00:04:47,487
Sunday ready
86
00:04:47,743 --> 00:04:49,791
Function animation player
87
00:04:50,047 --> 00:04:51,071
Play
88
00:04:52,863 --> 00:04:53,631
Default
89
00:04:54,143 --> 00:04:55,679
So that's the first thing that we're going to do
90
00:04:56,447 --> 00:04:58,751
How to create a tween for the panel container
91
00:04:59,007 --> 00:05:02,335
Duvar tween is he go to create
92
00:05:03,103 --> 00:05:05,919
We need to grab a reference to the panel containers so I'm going to
93
00:05:06,175 --> 00:05:08,991
Select the panel container here and then
94
00:05:09,759 --> 00:05:12,063
Mark the access as unique name
95
00:05:12,831 --> 00:05:18,463
Let's create an already for that by dragging it over to the editor holding ctrl and then releasing
96
00:05:18,719 --> 00:05:19,999
So those are on ready
97
00:05:20,767 --> 00:05:23,839
And then in between were going to say tween that tween
98
00:05:24,095 --> 00:05:24,607
Property
99
00:05:25,119 --> 00:05:27,167
18 Wheeler property of the panel container
100
00:05:27,679 --> 00:05:32,543
Where is a tween the scale property in quotes and then we're going to win it too
101
00:05:32,799 --> 00:05:34,335
Becca 2.1
102
00:05:35,871 --> 00:05:37,919
So that it goes to a 1:1 scale
103
00:05:38,431 --> 00:05:40,735
And the duration was 2.3
104
00:05:41,759 --> 00:05:45,343
Now we also need to do this when you do tween tween property
105
00:05:46,623 --> 00:05:48,159
Are the panel container
106
00:05:49,695 --> 00:05:50,975
And the scale
107
00:05:51,231 --> 00:05:53,535
Twin at the Vectra 2.0
108
00:05:55,071 --> 00:05:56,095
Over 0 seconds
109
00:05:56,351 --> 00:05:58,143
And remember the reason that we do that
110
00:05:58,655 --> 00:05:59,423
Is because
111
00:05:59,935 --> 00:06:03,519
That will mean that the panel continue will be properly set to zero
112
00:06:04,031 --> 00:06:05,055
Before
113
00:06:05,567 --> 00:06:08,639
We start weaning the scale to 1
114
00:06:08,895 --> 00:06:15,039
And that's mostly just like a workaround for a good a limitation to go really doesn't like animating
115
00:06:15,295 --> 00:06:17,855
Control nodes that are children of containers
116
00:06:18,879 --> 00:06:21,951
We can hack it a little bit by working with the twin the little bit
117
00:06:22,719 --> 00:06:28,863
Ok I will do a new line at the end of this tween property line the second one and I'm going to do set
118
00:06:30,399 --> 00:06:31,679
Is type out
119
00:06:31,935 --> 00:06:33,471
And then set transition
120
00:06:33,983 --> 00:06:36,287
To trans type back
121
00:06:38,079 --> 00:06:44,223
So same as we're doing with the other UI elements here we also in the ready Metheny to connect to our buttons to
122
00:06:44,479 --> 00:06:45,759
Give them functionality
123
00:06:46,271 --> 00:06:49,087
Our resume button here we're going to connect to that
124
00:06:49,343 --> 00:06:51,135
And the options and the quits
125
00:06:51,647 --> 00:06:55,999
You can do just a straight up percent to reference the
126
00:06:58,303 --> 00:07:00,095
Unique names like Sam
127
00:07:00,607 --> 00:07:04,959
I do like to continue using the dollar sign just because it's consistent with
128
00:07:05,983 --> 00:07:09,311
How you're usually get their node in a shorthand fashion
129
00:07:09,567 --> 00:07:14,175
So you can just use the percent if you want to but I do prefer to do dollar sign present
130
00:07:14,687 --> 00:07:18,783
And I connect to that press signal on the resume button
131
00:07:19,551 --> 00:07:20,575
Like so
132
00:07:21,855 --> 00:07:23,647
And I will say on resume pressed
133
00:07:24,671 --> 00:07:25,695
Create that function
134
00:07:30,047 --> 00:07:34,655
So in this method we need to play the animation player
135
00:07:35,167 --> 00:07:39,775
Default animation backwards so that starts purple and fades up
136
00:07:41,311 --> 00:07:42,335
Animation player
137
00:07:43,103 --> 00:07:45,407
Play backwards
138
00:07:46,687 --> 00:07:47,199
Defoe
139
00:07:49,759 --> 00:07:54,367
It's that simple so you can get away with using a single animation if you're just doing it in and out
140
00:07:54,879 --> 00:07:58,207
And then what we need to do is we need to create a twin
141
00:07:58,719 --> 00:08:02,047
That is essentially the reverse of this so I'm going to copy these
142
00:08:02,815 --> 00:08:03,839
Play stores in there
143
00:08:04,351 --> 00:08:07,423
And we're going to go from vector to that one
144
00:08:08,959 --> 00:08:10,495
To vector2
145
00:08:11,775 --> 00:08:13,055
0
146
00:08:13,311 --> 00:08:16,639
We need to do an ease in instead of an ease out
147
00:08:17,919 --> 00:08:20,223
So basically the same idea here
148
00:08:20,991 --> 00:08:23,551
And then we're going to do in a weight
149
00:08:24,319 --> 00:08:25,855
Tween dot
150
00:08:26,623 --> 00:08:27,135
Finish
151
00:08:27,903 --> 00:08:30,975
And that's going to a wait for the to be done and then we can call
152
00:08:31,743 --> 00:08:32,511
Q
153
00:08:32,767 --> 00:08:33,279
Free
154
00:08:34,047 --> 00:08:35,839
Ok now the thing about
155
00:08:36,095 --> 00:08:37,887
Is that we want to pause the tree
156
00:08:38,143 --> 00:08:40,191
When the pause menu
157
00:08:40,447 --> 00:08:41,727
Comes into contact straight
158
00:08:41,983 --> 00:08:45,055
So before we do the rest of the functionality for these buttons
159
00:08:45,311 --> 00:08:50,687
Let's go ahead in the ready method called get 3 paws is equal to true
160
00:08:51,455 --> 00:08:55,551
And then before the Q3 at the end here we're going to do get tree
161
00:08:55,807 --> 00:08:56,831
Pause
162
00:08:57,087 --> 00:08:57,855
Equals false
163
00:08:59,391 --> 00:09:04,511
And then what we want to do is we want to click on the root node for the Potters menu
164
00:09:04,767 --> 00:09:10,143
Are we want to scroll down to the process mode and so like always so it's not pausing itself
165
00:09:10,399 --> 00:09:14,495
So it's all about and place we need a way to actually spawn the pause menu
166
00:09:14,751 --> 00:09:15,519
When
167
00:09:16,287 --> 00:09:19,103
Let's say when the escape about Mills pressed on the keyboard
168
00:09:19,359 --> 00:09:24,735
Before we start doing the scene instantiation let's go to our project project settings
169
00:09:26,015 --> 00:09:26,783
Input map
170
00:09:27,039 --> 00:09:28,831
And then add a new action
171
00:09:29,087 --> 00:09:30,367
Witches called escape
172
00:09:30,879 --> 00:09:32,927
We can Car Parts car parts
173
00:09:33,951 --> 00:09:37,535
And let's go ahead and under that action let's click the add button
174
00:09:37,791 --> 00:09:41,887
And select this listening for input field and pressed escape
175
00:09:42,399 --> 00:09:43,423
Thanks like ok
176
00:09:43,679 --> 00:09:46,239
And then click again under pause and
177
00:09:46,495 --> 00:09:49,823
Do something like pee and you can add whatever other keys you want as well
178
00:09:50,335 --> 00:09:53,919
I've got escape and pea so we can go ahead and close the
179
00:09:54,943 --> 00:09:56,223
And now
180
00:09:56,735 --> 00:09:58,015
In our main menu
181
00:09:58,783 --> 00:10:02,124
Moorside weather in our main scene so it's open up main which is different and main menu
182
00:10:02,125 --> 00:10:04,296
Subtitled by
online-courses.club
We compress knowledge for you!
183
00:10:04,298 --> 00:10:05,439
Open up that's crap
184
00:10:05,951 --> 00:10:07,231
What's do the following
185
00:10:07,743 --> 00:10:09,023
Let's preload
186
00:10:09,791 --> 00:10:10,559
H
187
00:10:10,815 --> 00:10:14,399
Pause menu so we're going to say pause menu scene
188
00:10:14,655 --> 00:10:15,935
Is equal to preload
189
00:10:20,287 --> 00:10:22,079
And then you can just do wrasse
190
00:10:22,335 --> 00:10:24,639
Pause menu and load the scene
191
00:10:24,895 --> 00:10:26,431
With the autocomplete there
192
00:10:27,199 --> 00:10:31,295
No I need a override a function called unhandled input
193
00:10:33,343 --> 00:10:39,231
So what is unhandled input so in put bubbles up through the tree until it is hanged
194
00:10:39,999 --> 00:10:40,767
And
195
00:10:41,023 --> 00:10:43,839
So when you override the unhandled input event
196
00:10:44,095 --> 00:10:46,655
Essentially what this is going to do as this is going to
197
00:10:46,911 --> 00:10:50,239
Be passed any input events that have happened
198
00:10:50,495 --> 00:10:53,567
They have not yet been handled by anything else in the game
199
00:10:54,335 --> 00:10:58,943
Is there with Arnold and what we can do as we can listen for the parse action
200
00:10:59,199 --> 00:11:03,039
So we can do as we can say if event that is action pressed
201
00:11:03,551 --> 00:11:04,319
Pause
202
00:11:05,343 --> 00:11:08,159
Then we're going to instantiated pause menu scene
203
00:11:08,415 --> 00:11:09,951
Sorry to say I'm child
204
00:11:10,719 --> 00:11:13,279
Pause menu scene.in statue
205
00:11:14,815 --> 00:11:16,351
When you handle input
206
00:11:16,607 --> 00:11:18,143
In the unhandled input
207
00:11:18,399 --> 00:11:19,167
Function
208
00:11:19,679 --> 00:11:21,215
You need to tell Google
209
00:11:21,471 --> 00:11:23,775
That the input has now been had
210
00:11:24,031 --> 00:11:30,175
Anyway we tell guedel to set the input as handle that it doesn't continue propagating up the tree
211
00:11:30,431 --> 00:11:32,223
Is we need to do get 3
212
00:11:32,991 --> 00:11:34,527
Dart route
213
00:11:35,551 --> 00:11:36,063
Start
214
00:11:36,319 --> 00:11:36,831
Set
215
00:11:37,087 --> 00:11:38,367
Input as handle
216
00:11:38,879 --> 00:11:43,743
And that just means that whatever the current input event that is being sent through the tree is
217
00:11:43,999 --> 00:11:46,815
That one is handled in stop its propagation
218
00:11:47,583 --> 00:11:50,655
So nothing else will handle this event
219
00:11:51,167 --> 00:11:55,775
There's one more thing that we need to do with regards to input handling and I'm going to copy this function
220
00:11:56,031 --> 00:11:58,847
With control c so that the entire unhandled input
221
00:11:59,103 --> 00:12:01,663
Can I get a paste that in the Pars menu as well
222
00:12:02,175 --> 00:12:05,247
And what this is going to do is we are going to
223
00:12:06,015 --> 00:12:07,295
Remove the scene
224
00:12:07,551 --> 00:12:09,087
When input is pressed
225
00:12:09,599 --> 00:12:11,647
Somebody get rid of this ad ChildLine
226
00:12:12,159 --> 00:12:14,463
Porky Pig get free sat in his hand
227
00:12:14,975 --> 00:12:18,559
And what I'm going to do is I'm going to create a function called close
228
00:12:19,327 --> 00:12:22,143
I'm going to move all of this code into that
229
00:12:23,423 --> 00:12:27,007
So I've just moved all of the owners impressed code into close
230
00:12:27,263 --> 00:12:29,823
And then I was impressed I'm just going to call close
231
00:12:30,079 --> 00:12:31,615
And the reason is because
232
00:12:31,871 --> 00:12:33,663
I'm going to call clothes here as well
233
00:12:34,687 --> 00:12:36,735
So close in The Angel Inn
234
00:12:37,503 --> 00:12:43,391
Now one thing to note is that we will be able to call close multiple times
235
00:12:44,159 --> 00:12:46,975
And perhaps even press the resume button multiple times
236
00:12:47,231 --> 00:12:51,071
So let's create a new variable at the top cold is closing
237
00:12:51,839 --> 00:12:54,399
And where does going to in here
238
00:12:55,423 --> 00:12:58,495
Modify this if statement in unhandled input to
239
00:12:58,751 --> 00:13:01,055
And not is closing
240
00:13:01,567 --> 00:13:03,871
Just like so we can make this even cleaner
241
00:13:04,127 --> 00:13:06,943
Weekend get rid of this and that we just add
242
00:13:07,455 --> 00:13:10,527
And instead in here do if it is closing
243
00:13:11,039 --> 00:13:11,551
Return
244
00:13:12,575 --> 00:13:13,087
So
245
00:13:13,343 --> 00:13:16,927
We can call close multiple times but it's just not going to do anything
246
00:13:17,183 --> 00:13:18,463
If it's already closing
247
00:13:18,719 --> 00:13:22,303
And then we need set is closing in here to true
248
00:13:22,815 --> 00:13:27,167
So let's Run the game and see if we can pause while we're in the game so press escape
249
00:13:28,191 --> 00:13:29,471
Alright that's looking good
250
00:13:29,727 --> 00:13:30,751
And then press p
251
00:13:32,031 --> 00:13:33,311
Perfect cell
252
00:13:33,567 --> 00:13:35,615
It's basically working just fine
253
00:13:36,127 --> 00:13:37,919
With the exception being
254
00:13:38,943 --> 00:13:41,247
That the pivot offset is all wrong
255
00:13:41,503 --> 00:13:42,015
So
256
00:13:42,271 --> 00:13:43,295
Let's Close our game
257
00:13:43,551 --> 00:13:47,391
And in here in are ready method we can before
258
00:13:47,903 --> 00:13:49,695
We connected that resume button
259
00:13:50,719 --> 00:13:52,255
We can say
260
00:13:53,023 --> 00:13:54,047
Panel container
261
00:13:56,095 --> 00:13:56,607
Dad
262
00:13:56,863 --> 00:13:57,631
Davidoff set
263
00:13:59,167 --> 00:13:59,935
Is equal to
264
00:14:00,447 --> 00:14:02,239
Hello container dad size
265
00:14:03,263 --> 00:14:06,079
/ 2 snowrunner game we should see the
266
00:14:06,335 --> 00:14:08,895
It is animated around the centre
267
00:14:09,407 --> 00:14:10,687
Rather than around
268
00:14:10,943 --> 00:14:11,711
The corner
269
00:14:12,735 --> 00:14:14,783
So now we've got a nice looking pause menu
270
00:14:15,039 --> 00:14:18,111
And you can verify that the resume button works and all that good stuff
271
00:14:18,623 --> 00:14:23,999
Alright so this is a long lesson but we've got two more buttons to build out so let's just get it done
272
00:14:24,255 --> 00:14:29,887
Let's connect to our options button now so I'm going to copy this resume button line in arpad manuscript
273
00:14:30,911 --> 00:14:32,959
Let's say options button
274
00:14:33,983 --> 00:14:35,263
Presto connect
275
00:14:35,519 --> 00:14:37,055
It should be on options
276
00:14:37,567 --> 00:14:40,639
Yeah let's stop out the quick button as well so let's do
277
00:14:41,663 --> 00:14:43,967
Dollar sign percent quit button
278
00:14:44,991 --> 00:14:46,783
Depressed dartconnect
279
00:14:47,295 --> 00:14:48,319
Arncliffe
280
00:14:49,087 --> 00:14:49,599
Press
281
00:14:50,879 --> 00:14:52,415
The quick button is going to be easy
282
00:14:52,927 --> 00:14:53,951
Working as a fun
283
00:14:54,463 --> 00:14:55,743
On quit
284
00:14:57,023 --> 00:14:59,327
I'm going to do is to call get three
285
00:15:00,095 --> 00:15:01,119
Change
286
00:15:01,375 --> 00:15:02,143
Scene
287
00:15:02,911 --> 00:15:03,679
To file
288
00:15:04,703 --> 00:15:08,031
Change it to main underscore menu
289
00:15:08,799 --> 00:15:09,823
Like cell
290
00:15:11,871 --> 00:15:14,175
And then 4 Hour on
291
00:15:14,431 --> 00:15:15,455
Options press
292
00:15:16,223 --> 00:15:16,991
Function
293
00:15:19,551 --> 00:15:23,647
We're going to need to add the options menu so let's just passed for now
294
00:15:24,415 --> 00:15:27,487
Let's do like we do Elsewhere and preload
295
00:15:28,511 --> 00:15:30,559
Pause are the options menu theme
296
00:15:30,815 --> 00:15:33,887
So we're going to save our options menu is equal to preload
297
00:15:34,143 --> 00:15:35,679
And then we can do RAS
298
00:15:35,935 --> 00:15:36,959
Options
299
00:15:39,263 --> 00:15:40,799
Menu Dad cscn
300
00:15:41,055 --> 00:15:41,823
Just like so
301
00:15:42,079 --> 00:15:44,639
And we can do an auctions press as we can save our
302
00:15:45,151 --> 00:15:47,455
Options menu scene
303
00:15:47,967 --> 00:15:50,271
Oral se options menu instance
304
00:15:51,039 --> 00:15:56,159
And I'm actually going to rename this variable up here from option menu to options menu seen
305
00:15:56,415 --> 00:15:59,487
So it's consistent with our naming things otherwise
306
00:15:59,743 --> 00:16:04,351
And we're going to say in our options press via options menu instance is equal to
307
00:16:04,863 --> 00:16:06,655
Options menu scene
308
00:16:07,167 --> 00:16:08,447
Instantiate
309
00:16:08,703 --> 00:16:12,799
And then we can just simply add that child so I'm going to say add child
310
00:16:13,311 --> 00:16:14,847
Options menu instance
311
00:16:15,103 --> 00:16:17,919
And then remember we have to connect to the back button
312
00:16:18,431 --> 00:16:20,223
A options menu
313
00:16:21,247 --> 00:16:22,271
Instant start
314
00:16:22,783 --> 00:16:23,807
Back press
315
00:16:24,831 --> 00:16:25,599
Connect
316
00:16:26,367 --> 00:16:28,415
To call this on options
317
00:16:29,183 --> 00:16:29,695
Back
318
00:16:29,951 --> 00:16:30,463
Press
319
00:16:31,743 --> 00:16:33,279
Ask read that function at the bottom
320
00:16:34,047 --> 00:16:35,583
On options back
321
00:16:36,607 --> 00:16:37,119
Pressed
322
00:16:38,911 --> 00:16:45,055
And let's send in the options menu as a parameter solus specify the parameter option
323
00:16:45,311 --> 00:16:45,823
Menu note
324
00:16:46,079 --> 00:16:47,103
Like cell
325
00:16:47,359 --> 00:16:49,407
And then we're going to
326
00:16:50,431 --> 00:16:51,455
In r connect
327
00:16:51,711 --> 00:16:52,735
Lying here
328
00:16:52,991 --> 00:16:54,527
Do that bind
329
00:16:55,295 --> 00:16:58,623
Options menu instance like cell
330
00:16:59,135 --> 00:17:01,951
So then when we click back we're just going to call
331
00:17:02,207 --> 00:17:05,535
Now we are going to introduce a transition but for now
332
00:17:05,791 --> 00:17:07,327
Medical options menu
333
00:17:07,583 --> 00:17:08,095
Dad
334
00:17:08,351 --> 00:17:08,863
Q3
335
00:17:10,399 --> 00:17:13,983
What's wrong the game and see if we can go into our options from our
336
00:17:14,239 --> 00:17:15,007
Meme
337
00:17:15,263 --> 00:17:16,031
So we
338
00:17:16,287 --> 00:17:18,079
Got the past menus for options
339
00:17:18,335 --> 00:17:22,175
And the options is not rendering on top of the pause menu
340
00:17:22,943 --> 00:17:26,271
And this is a problem that we cannot resolve with the chemist later
341
00:17:26,783 --> 00:17:29,087
So you'll notice that we're just adding
342
00:17:29,343 --> 00:17:35,487
The options menu as a direct child of the pause menu which is the easiest thing to do
343
00:17:35,743 --> 00:17:38,303
Instead of like trying to figure out the right place in the Sims 3
344
00:17:38,559 --> 00:17:42,399
But it does come with hearing problems but this is typically is it resolve
345
00:17:42,655 --> 00:17:44,703
We can go to options menu seen
346
00:17:44,959 --> 00:17:45,727
Open the app
347
00:17:46,239 --> 00:17:48,031
And for the options menu layer
348
00:17:48,287 --> 00:17:50,335
What's just changed the layer 2
349
00:17:50,847 --> 00:17:52,895
In addition to the Vineyard being too
350
00:17:53,151 --> 00:17:55,967
And now and we go into the game and we click play
351
00:17:56,735 --> 00:17:58,783
Open up our options menu
352
00:17:59,039 --> 00:18:00,575
We can see that working well
353
00:18:00,831 --> 00:18:01,855
Now I've been yet
354
00:18:02,111 --> 00:18:06,719
Is not working which means that we can just put up to later 3 instead for the vignette
355
00:18:07,999 --> 00:18:09,279
So with those changes
356
00:18:10,303 --> 00:18:16,447
You should see the options menu with the Virginia around it properly we can click back to go back to the
357
00:18:16,703 --> 00:18:17,983
What's menu and we can click resume
358
00:18:18,239 --> 00:18:22,079
Anna let's just verifying really quick that are quit to menu button work
359
00:18:22,847 --> 00:18:27,967
So that quit the menu is just about working however there is one final thing that we need to do
360
00:18:28,223 --> 00:18:30,783
That is let's go to our pause menu
361
00:18:31,295 --> 00:18:34,111
The problem is that when the quick button is pressed
362
00:18:34,623 --> 00:18:36,159
We are changing the scene
363
00:18:36,415 --> 00:18:41,535
To the main menu here but we are not on parsing the same tree
364
00:18:41,791 --> 00:18:43,583
So let's just quickly do that
365
00:18:43,839 --> 00:18:46,655
Get tree that has it got a false
366
00:18:47,935 --> 00:18:50,495
And that will be great so now let's play
367
00:18:50,751 --> 00:18:51,775
If I going to play
368
00:18:52,031 --> 00:18:55,871
And I click the menu I should be able to go back in so I now should be
369
00:18:56,127 --> 00:18:57,919
Able to go through this whole loop
370
00:18:58,175 --> 00:19:00,735
Enter like all the options and all that good stuff
371
00:19:01,247 --> 00:19:04,063
Alright and our pause menu is finished
27412
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.