All language subtitles for 23. Enabling Upgrade Selection

af Afrikaans
ak Akan
sq Albanian
am Amharic
ar Arabic
hy Armenian
az Azerbaijani
eu Basque
be Belarusian
bem Bemba
bn Bengali
bh Bihari
bs Bosnian
br Breton
bg Bulgarian
km Cambodian
ca Catalan
ceb Cebuano
chr Cherokee
ny Chichewa
zh-CN Chinese (Simplified)
zh-TW Chinese (Traditional)
co Corsican
hr Croatian
cs Czech
da Danish
nl Dutch
en English
eo Esperanto
et Estonian
ee Ewe
fo Faroese
tl Filipino
fi Finnish
fr French
fy Frisian
gaa Ga
gl Galician
ka Georgian
de German
el Greek
gn Guarani
gu Gujarati
ht Haitian Creole
ha Hausa
haw Hawaiian
iw Hebrew
hi Hindi
hmn Hmong
hu Hungarian
is Icelandic
ig Igbo
ia Interlingua
ga Irish
it Italian
ja Japanese
jw Javanese
kn Kannada
kk Kazakh
rw Kinyarwanda
rn Kirundi
kg Kongo
ko Korean
kri Krio (Sierra Leone)
ku Kurdish
ckb Kurdish (Soranรฎ)
ky Kyrgyz
lo Laothian
la Latin
lv Latvian
ln Lingala
lt Lithuanian
loz Lozi
lg Luganda
ach Luo
lb Luxembourgish
mk Macedonian
mg Malagasy
ms Malay
ml Malayalam
mt Maltese
mi Maori
mr Marathi
mfe Mauritian Creole
mo Moldavian
mn Mongolian
my Myanmar (Burmese)
sr-ME Montenegrin
ne Nepali
pcm Nigerian Pidgin
nso Northern Sotho
no Norwegian
nn Norwegian (Nynorsk)
oc Occitan
or Oriya
om Oromo
ps Pashto
fa Persian
pl Polish
pt-BR Portuguese (Brazil)
pt Portuguese (Portugal)
pa Punjabi
qu Quechua
ro Romanian
rm Romansh
nyn Runyakitara
ru Russian
sm Samoan
gd Scots Gaelic
sr Serbian
sh Serbo-Croatian
st Sesotho
tn Setswana
crs Seychellois Creole
sn Shona
sd Sindhi
si Sinhalese
sk Slovak
sl Slovenian
so Somali
es Spanish
es-419 Spanish (Latin American)
su Sundanese
sw Swahili
sv Swedish
tg Tajik
ta Tamil
tt Tatar
te Telugu
th Thai
ti Tigrinya
to Tonga
lua Tshiluba
tum Tumbuka
tr Turkish
tk Turkmen
tw Twi
ug Uighur
uk Ukrainian
ur Urdu
uz Uzbek
vi Vietnamese
cy Welsh
wo Wolof
xh Xhosa
yi Yiddish
yo Yoruba
zu Zulu

Original subtitles

Rui to show our ability upgrade choices is

Roughly in place but we still need to be a

How to select an upgrade

So let's get into it

So go ahead and open up your upgrade screen

And there is going to be a couple things that we need to do actually let's go had an upgrade

What's an open H

Ability upgrade car

As well this is the first one that we're going to want to

Open up that script

And we got our loan function right here set ability upgrade

Now what would you want to do

Is there going to want to

Can a signal that let us know

That

This ability was so

In the basic way that we're going to get the story cos we're going to say

If the player clicks on a car

The knackered is going to be

Chosen or that ability is going to be chosen

And then we can

Close the screen and continue on with the game

So what we going to do is we need to detect

If this card

Incorrect fortunately control nodes come with a signal so if you select ability upgrade card and

Subtitled by online-courses.club We compress knowledge for you!

Innotab

You can see that we have a gym input signal here

Which we can

So we're going to override the ready funk

Underscore read

And we are going to say

Gym

Dartconnect

Gy

In

Ok let's Create that function at the bottom on gui input

Add this as noted in the note tab on the left takes an input

So let's ride

Event

In Britain

And so let's just right passed here real quick so that we can talk about it

So what do we need to do well we need to detect a mouse click how are we going to do that one

This is going to be very similar to how we did

The player movement where we detect

If an action

In our input map

Why

Done right so we have a bunch of events associated with actions

And we can detect that

By name rather than doing

Checks first

Mickey coding tool

So detecting if we click

Into this card is going to be very similar to how

Did

Player movement

So let's go out an open project

Project settings

Go to the input

Stop the tab and we're going to set up another input

Which is going to be very similar and that's just going to be

Click

And let's go ahead and add any

For the Leftwich

What do the mouse button

And I will do

Mouse

Adra default hair should be fine so I click ok

Until there's are left

So how we detect if this thing was

Well in our own gym

We can simply say if event dot is action press

Left

Ok

This is pressed we are going to emit a signal now we don't have a signal define

Define one of the top

Signal

Where they call it selective

And then in our if block here we're just going to say selected

Ok

Somewhere knitting there so I can sing on now when this ability

Is klekt however we need to listen for that on the upgrade

Open up our upgrade screen

Bye going to upgrade screen scene and clicking on

The

Skip button

Any here we're creating this card instance right and so we can very easily

Say card instance

Select

Dartconnect

Since that is a signal now

Connect on

Ability

Why we're going to call on upgrade select

And we're going to use

Bynes

To be able to

Track which ability was

So they're buying

If we open up our documentation

Look for Kinect

You can see that

We can use this strategy right here so an example here it says

I'm player hit.by

And we can't

Some vines in

And that allows us to pass I retrieve arguments alongside the signal emission

So if I go back to my upgrade screen what I can do is I can say on upgrades elected

Bind

And we're going to bind the upgrade

That were passing

So let's to find out funk

Bank on

Upgrade

Selecting

And then we're going to have our upgrade

Ability

Upgrade

And then I'm just going to write

So what's linger on

For justice

So we have in our

Ability upgrade card is selected singer

This does not have any arguments

Or parameter

Associated with it

And when we were meeting nothing with it so it's just

A blank event there's no data

Coming along with you

That presents a problem though when we are looking at our upgrade screen screw

Because when an upgrade is elected we ideally want to be able to know

Which up

Specifically was

And they were doing that is in the

For Loop

Where can I get into that selected signal

The car

And then we're connecting

The

On upgrade selected

But

We're attaching extra information to

Which is the current upgrade that we are

Looking

In the

Right so essential

The selected signal does not have does that send any data by itself

But by using the stop bind with upgrades

We're going to be a

To keep track of that

How to make sense but you can see how this

Real

Quick and salt we're basically just going to pass another signal from here

So I'm gonna do another singing

And it's going to be cold ability

Selected or rather

Upgrade

Selected

And then we're going to pass in as an argument

Same thing upgrade

Inability

And so we're going to replace this pathway

Past weather

With upgrades

Select

Gmail

And then

What three letter

So why are we doing this nested select while because

We want

Which thing to be to have it owners

Disability right

So the card is just responsible for the taking

It's been collected and also responsible ID

For displaying the date

Are upgrades screen is responsible for displaying all the abilities

Supplied or chosen

As well as telling us when ability was

And then if we go back to upgrade

Manager so let's go

Control shift

Search for upgrade Manor

Go ahead and open up

I'm here now we're going to listen to that

Upgrade screen

Upgrade select

Single so upgrade

Screen

Ability

Or sorry I keep saying ability this is up to

Select

Dartconnect

On upgrade

Select

And then at the very bottom let's go out and create a definition for that funk

Funk on upgrade

Select

And remember we're getting an upgrade which is an ability

Grid as a parameter here

And they were going to do or just going to call apply upgrade

So you see how all that data is flowing now

So we

Just a retard

We choose which upgrades you want to show on the upgrade Sky

We instantiate the upgrade screen and add it as a child

We

Khaled ok

Here are the upgrades I want to show

Dinner upgrade screen

We read through that supply the rear creating a card for each other

And then making sure toucan

To each car

Selected syn

Otherwise known as when we

But also binding the upgrade that we are currently looking at

When we're in

When that single

We also in

The upgrade selected single passing along the upgrade that was

Back to the upgrade manager

Scene

Where we can then officially

To our current upgrades

So sexually passing data into the upgrades

And waiting for data to come back out of the oven

Now there's one final thing that we were

And that is we won

Really upgrade screen

When

The upgrade was

And the way that we're going to do that is really going to go back

The upgrade Sky

Script and we are going to

Simply after the emission we're just going to queue

So every select the upgrade Windows key free

Now we don't want to do that without first unpausing

So let's go ahead and highlight

This

Or copy this line in the ready method

Put that just above

The Q3

And we'll set

False

Now just to make sure that our upgrade is indeed going to work

What I'm going to do is I'm going

Go back to our upgrade manager screen

Honour

Inside here

And I'm just going to go ahead in print

Current upgrades in our apply upgrade

Method

So let's see if all of this work

So I'm going to go ahead and

And collect a vile

Ok so I've got

The game is paused if I click everywhere else

Nothing's happening but I clicked this

The game starts again and then screen goes away

And have a look at my output you can see

This has been properly added

To my

Current upgrades

So we've got EU I am please

And

The next step is to make the upgrade actually work

Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.