Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:00,990 --> 00:00:10,740
In this lecture, I will talk about one question from Mr. Farrington How do I deny my static text when
2
00:00:10,740 --> 00:00:14,000
a particular volume is written on the Ifield?
3
00:00:14,370 --> 00:00:18,330
For example, when we get 20, I want to display low.
4
00:00:18,600 --> 00:00:22,130
When it's 15, I want to display half full.
5
00:00:22,410 --> 00:00:25,850
And when it's 100, I want to display full.
6
00:00:26,460 --> 00:00:29,700
All should be gone with this one basic script.
7
00:00:30,330 --> 00:00:33,500
Let's go to our chief of seven.
8
00:00:34,140 --> 00:00:38,670
We open the global video here.
9
00:00:38,700 --> 00:00:41,480
We have the eye of here in the eye of it.
10
00:00:41,490 --> 00:00:44,780
We use this for the tank level.
11
00:00:45,180 --> 00:00:54,900
And our look inside means, you see, when we use this value, we can display the number inside this
12
00:00:54,900 --> 00:00:56,520
tank in millimeters.
13
00:00:57,210 --> 00:01:01,980
So we want to display the static text.
14
00:01:01,980 --> 00:01:07,320
We have a different text that defense of this I of value.
15
00:01:07,830 --> 00:01:10,830
So we input the static text inside.
16
00:01:11,190 --> 00:01:14,750
We see we know you both, for example.
17
00:01:14,750 --> 00:01:17,700
This doesn't matter.
18
00:01:18,570 --> 00:01:20,790
Let's configure a bit this.
19
00:01:22,380 --> 00:01:29,960
This static tax, for example, like this, and we make that bold, let's say, on the 20.
20
00:01:30,840 --> 00:01:36,860
So now we have only the static tax without the visual basic animations.
21
00:01:37,410 --> 00:01:46,260
So we have the output value, the analog value, and we have the static things that should display for
22
00:01:46,260 --> 00:01:49,210
us the low half or full.
23
00:01:50,220 --> 00:01:53,130
So let's go to object properties.
24
00:01:53,250 --> 00:02:01,970
We go to phones, text and in dynamic times we go to visual basic script action.
25
00:02:03,000 --> 00:02:05,820
We open this inside here.
26
00:02:05,910 --> 00:02:11,520
We can write the visual basics for this option.
27
00:02:12,090 --> 00:02:20,670
So first we need to read the data from the analog value so we can create, for example, the dim value
28
00:02:20,910 --> 00:02:31,510
dim, for example, a, we need to read data from this dark runtime tax.
29
00:02:32,580 --> 00:02:33,090
We all.
30
00:02:37,270 --> 00:02:39,880
I've got three good not.
31
00:02:41,870 --> 00:02:56,030
That's common, this we need to copy this level, you know, you got to fund our names to 11 volume
32
00:02:57,000 --> 00:03:00,400
we cross and we need to make this data.
33
00:03:01,490 --> 00:03:07,680
So inside that e we have the data from this tank level volume.
34
00:03:08,450 --> 00:03:12,340
Now we want to display their low status.
35
00:03:14,000 --> 00:03:27,370
So we need to make that as so if A is lower than 20, then and we need to close this.
36
00:03:28,460 --> 00:03:36,590
So if our volume is lower than 20, we need to display the low status.
37
00:03:37,040 --> 00:03:41,080
So we had that text trigger we want to use.
38
00:03:41,930 --> 00:03:58,490
So text trigger will be, you know, the next we can copy this and the next we have the hard of Hofstadter's.
39
00:03:58,940 --> 00:04:10,190
So our text is hard, but we need to change our conditions for this so we will change to greater than
40
00:04:10,190 --> 00:04:14,090
twenty and lower.
41
00:04:16,300 --> 00:04:18,060
Than 50.
42
00:04:18,940 --> 00:04:30,550
So if our value is greater than 20 and lower than 50, we have the of text and then last version is
43
00:04:30,550 --> 00:04:31,340
that four.
44
00:04:31,810 --> 00:04:44,540
So if our value inside this analog is greater than 50, we want to say static text in full.
45
00:04:45,490 --> 00:04:53,170
So we get the text and A should be greater than 50.
46
00:04:54,340 --> 00:04:58,360
And for example, it can be back for 50.
47
00:04:58,690 --> 00:05:04,000
So we have the three version, the all the hard and the four.
48
00:05:05,490 --> 00:05:08,550
Let's check the syntax, no error.
49
00:05:09,480 --> 00:05:10,580
It's OK.
50
00:05:11,700 --> 00:05:12,720
Let's save.
51
00:05:14,730 --> 00:05:17,820
OK, now we can run this.
52
00:05:21,840 --> 00:05:31,200
We know so now every time we change this value here, we change the static text display, so we have
53
00:05:31,200 --> 00:05:33,900
that one, it's still low.
54
00:05:34,560 --> 00:05:38,730
But if we put the 20, we have the hard.
55
00:05:39,700 --> 00:05:46,790
At all go with his very basic script, so if we have the 50, we have the full.
56
00:05:47,530 --> 00:05:59,740
So in this small visual, basic script action, we created the animation between the analog value and
57
00:05:59,740 --> 00:06:06,120
the static text displaying this status in our windows, you see runtime.
58
00:06:07,420 --> 00:06:08,200
Thank you.
59
00:06:08,200 --> 00:06:08,740
And.
60
00:06:10,600 --> 00:06:19,750
Try your self, the different moments of this script, you can, for example, try with the background
61
00:06:19,750 --> 00:06:28,990
color if your condition is different, so you can change this and check how it's working inside your
62
00:06:29,320 --> 00:06:30,250
application.
63
00:06:30,670 --> 00:06:31,290
Good luck.
5632
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.