This repository was archived by the owner on Feb 4, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy path[clientscript,script3935].cs2
34 lines (34 loc) · 1.83 KB
/
[clientscript,script3935].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
// 3935
[clientscript,script3935](component $component0, component $component1, component $component2, component $component3, component $component4)
cc_deleteall($component1);
if (~on_enhanced_any = 0) {
if_setposition(0, 91, ^setpos_abs_centre, ^setpos_abs_top, $component4);
} else {
if_setposition(0, 0, ^setpos_abs_centre, ^setpos_abs_bottom, $component4);
if_setonvartransmit("script7100($component2){var3796}", $component1);
~script7101($component2);
}
def_int $int5 = struct_param(area_sound_volume_2755, param_1101);
def_int $int6 = 0;
def_int $width7 = if_getwidth($component1);
def_graphic $graphic8 = "options_icons,14";
def_int $int9 = ~settings_get_slider(^setting_volumeareasounds);
~settings_set_slider(^setting_volumeareasounds, $int9);
def_string $string0 = "Mute Area Sound";
def_string $string1 = "Unmute Area Sound";
~settings_create_icon($int9, ^setting_volumeareasounds, $component2, $component1, $int5, $graphic8, $component0, $string0, $string1, $component3);
if_setonvartransmit("script3939(^setting_volumeareasounds, $component2, $component1, $int5, $graphic8, $component0, $string0, $string1, $component3){var872}", $component2);
if_setnoclickthrough(true, $component2);
if_setonclick("settings_side_op_sound", $component2);
while ($int6 <= $int5) {
cc_create($component1, ^iftype_rectangle, $int6);
cc_setop(1, "Adjust Area Sound Volume");
cc_setposition(scale($int6, $int5, $width7), 0, ^setpos_abs_left, ^setpos_abs_top);
cc_setsize(calc(scale(calc(1 + $int6), $int5, $width7) - scale($int6, $int5, $width7)), 0, ^setsize_abs, ^setsize_minus);
cc_setfill(true);
cc_setcolour(^white);
cc_settrans(255);
cc_setonop("script3940(^setting_volumeareasounds, $int6, $component2, $component1, $int5, $graphic8, $component0, $string0, $string1, $component3)");
$int6 = calc($int6 + 1);
}
~script3941($int9, $component2, $component1, $int5);