Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_darkshape_tension_glow_Create_0

(view raw script w/o annotations or w/e)
1
apparent = 0;
2
alphamod = 1;
3
apparent = global.tension;
4
current = global.tension;
5
tsiner = 0;
6
healthbar_surf = -1;
7
change = 0;
8
changetimer = 15;
9
flashsiner = 0;
10
maxed = 0;
11
tamt = 0;
12
with (obj_tensionbar)
13
{
14
    other.x = x;
15
    other.y = y;
16
}
17
18
draw_w_offset = function(arg0 = 0, arg1 = 0, arg2 = 0)
19
{
20
    var xx = x;
21
    var yy = __view_get(e__VW.YView, 0) + 40;
22
    var z = 1;
23
    if (tamt < 100)
24
    {
25
        draw_text_color((xx - 30) + arg0, yy + 70 + arg1, string_hash_to_newline(string(floor((apparent / global.maxtension) * 100))), c_white, c_white, c_white, c_white, arg2);
26
        draw_text_color((xx - 25) + arg0, yy + 95 + arg1, string_hash_to_newline(stringsetloc(
Close Message
"%", "obj_tensionbar_slash_Draw_0_gml_18_0"
)), c_white, c_white, c_white, c_white, arg2);
27
    }
28
    else
29
    {
30
        draw_text_color((xx - 28) + arg0, yy + 70 + arg1, string_hash_to_newline(stringsetloc(
M
"M", "obj_tensionbar_slash_Draw_0_gml_25_0"
)), c_white, c_white, c_white, c_white, arg2);
31
        draw_text_color((xx - 24) + arg0, yy + 90 + arg1, string_hash_to_newline(stringsetloc(
A
"A", "obj_tensionbar_slash_Draw_0_gml_26_0"
)), c_white, c_white, c_white, c_white, arg2);
32
        draw_text_color((xx - 20) + arg0, yy + 110 + arg1, string_hash_to_newline(stringsetloc(
X
"X", "obj_tensionbar_slash_Draw_0_gml_27_0"
)), c_white, c_white, c_white, c_white, arg2);
33
    }
34
};
35
36
enum e__VW
37
{
38
    XView,
39
    YView,
40
    WView,
41
    HView,
42
    Angle,
43
    HBorder,
44
    VBorder,
45
    HSpeed,
46
    VSpeed,
47
    Object,
48
    Visible,
49
    XPort,
50
    YPort,
51
    WPort,
52
    HPort,
53
    Camera,
54
    SurfaceID
55
}