forked from RuneStar/cs2-scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path[proc,options_windowmode_draw].cs2
52 lines (52 loc) · 3.23 KB
/
[proc,options_windowmode_draw].cs2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
// 843
[proc,options_windowmode_draw](component $component0, component $component1, component $component2)
cc_deleteall($component0);
cc_deleteall($component1);
def_string $string0 = "";
def_graphic $graphic3 = null;
def_int $comsubid4 = 0;
def_int $windowmode5 = getwindowmode;
if ($windowmode5 = ^windowmode_resizable) {
$comsubid4 = ~options_button_on($component1, 0);
cc_create($component1, ^iftype_graphic, $comsubid4);
cc_setposition(0, 0, ^setpos_abs_centre, ^setpos_abs_centre);
cc_setsize(54, 46, ^setsize_abs, ^setsize_abs);
cc_setgraphic(~graphic_device("windowmode_icons,5", "windowmode_icons,7"));
$string0 = "The game client expands to fill the <~text_device("window", "screen")>.";
if_setonmouserepeat("tooltip_mouserepeat(event_com, -1, $component2, $string0, 25, 190)", $component1);
if_setonmouseleave("deltooltip($component2)", $component1);
if_setonop(null, $component1);
$comsubid4 = ~options_button_off($component0, 0);
cc_create($component0, ^iftype_graphic, $comsubid4);
cc_setposition(0, 0, ^setpos_abs_centre, ^setpos_abs_centre);
cc_setsize(54, 46, ^setsize_abs, ^setsize_abs);
cc_setgraphic(~graphic_device("windowmode_icons,0", "windowmode_icons,2"));
$graphic3 = ~graphic_device("windowmode_icons,4", "windowmode_icons,6");
$string0 = "The game client is fixed to a static size.";
if_setonmouserepeat("options_windowmode_mouserepeat(event_com, $component2, $string0, $graphic3, $comsubid4)", $component0);
$graphic3 = ~graphic_device("windowmode_icons,0", "windowmode_icons,2");
if_setonmouseleave("options_windowmode_mouseleave(event_com, $component2, $graphic3, $comsubid4)", $component0);
if_setonop("options_windowmode_set(^windowmode_fixed, $component0, $component1, $component2)", $component0);
} else {
$comsubid4 = ~options_button_on($component0, 0);
cc_create($component0, ^iftype_graphic, $comsubid4);
cc_setposition(0, 0, ^setpos_abs_centre, ^setpos_abs_centre);
cc_setsize(54, 46, ^setsize_abs, ^setsize_abs);
cc_setgraphic(~graphic_device("windowmode_icons,4", "windowmode_icons,6"));
$string0 = "The game client is fixed to a static size.";
if_setonmouserepeat("tooltip_mouserepeat(event_com, -1, $component2, $string0, 25, 190)", $component0);
if_setonmouseleave("deltooltip($component2)", $component0);
if_setonop(null, $component0);
$comsubid4 = ~options_button_off($component1, 0);
cc_create($component1, ^iftype_graphic, $comsubid4);
cc_setposition(0, 0, ^setpos_abs_centre, ^setpos_abs_centre);
cc_setsize(54, 46, ^setsize_abs, ^setsize_abs);
cc_setgraphic(~graphic_device("windowmode_icons,1", "windowmode_icons,3"));
$graphic3 = ~graphic_device("windowmode_icons,5", "windowmode_icons,7");
$string0 = "The game client expands to fill the <~text_device("window", "screen")>.";
if_setonmouserepeat("options_windowmode_mouserepeat(event_com, $component2, $string0, $graphic3, $comsubid4)", $component1);
$graphic3 = ~graphic_device("windowmode_icons,1", "windowmode_icons,3");
if_setonmouseleave("options_windowmode_mouseleave(event_com, $component2, $graphic3, $comsubid4)", $component1);
if_setonop("options_windowmode_set(^windowmode_resizable, $component0, $component1, $component2)", $component1);
}
if_setontimer("options_windowmode_resynch($windowmode5, $component0, $component1, $component2)", $component0);