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,clan_create_side_init].cs2
54 lines (54 loc) · 2.4 KB
/
[clientscript,clan_create_side_init].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
53
54
// 4445
[clientscript,clan_create_side_init](component $component0, component $component1, component $component2, component $component3, component $component4, component $component5, component $component6, component $component7, int $int8, string $string0)
def_int $int9 = 0;
if (%varbit13058 = 1 | %varbit13059 = 1) {
$int9 = 1;
if_settext("<col=ff981f>Create a <$string0></col>", $component1);
} else {
if_settext("<col=ff981f>Form a <$string0></col>", $component1);
}
cc_deleteall($component2);
cc_create($component2, ^iftype_text, 0);
cc_setposition(0, 0, ^setpos_abs_centre, ^setpos_abs_centre);
cc_setsize(0, 0, ^setsize_minus, ^setsize_minus);
cc_setcolour(0xffb83f);
cc_settextfont(p11_full);
cc_settextalign(^settextalign_centre, ^settextalign_centre, 0);
cc_settextshadow(true);
cc_settext("<$string0> members");
cc_deleteall($component0);
def_enum $enum10 = enum_3824;
def_int $int11 = 0;
if ($int9 = 1) {
$enum10 = enum_4053;
$int11 = 1;
}
cc_create($component0, ^iftype_rectangle, enum(component, int, $enum10, $component4));
cc_create($component0, ^iftype_rectangle, enum(component, int, $enum10, $component5));
cc_create($component0, ^iftype_rectangle, enum(component, int, $enum10, $component6));
cc_create($component0, ^iftype_rectangle, enum(component, int, $enum10, $component7));
def_string $string1 = "<col=ff981f><$string0> name</col>";
if (string_length(%varcstring458) > 0) {
$string1 = %varcstring458;
}
if_setop(1, "<$string0> name", $component4);
if_setop(1, "Cancel", $component5);
if_setop(1, "Invite", $component6);
if_setop(1, "Confirm", $component7);
if (%varbit13058 = 1 | %varbit12171 = 1) {
~stonebutton_init($string1, $component4, p12_full, 0);
~stonebutton_init("<col=ff0000>Cancel</col>", $component5, p12_full, 0);
~script2432("<col=ff981f>Invite</col>", $component6, p12_full);
~stonebutton_init("<col=0dc10d>Confirm</col>", $component7, p12_full, 0);
} else {
if ($int11 = 0) {
if_setonop("clan_create_member_invite", $component6);
} else {
if_setonop("clan_create_member_invite_group", $component6);
}
~stonebutton_draw(false, "<col=808080><$string0> name</col>", p12_full, 0, $component4);
~stonebutton_init("<col=ff0000>Cancel</col>", $component5, p12_full, 0);
~stonebutton_draw(false, "<col=808080>Invite</col>", p12_full, 0, $component6);
~stonebutton_draw(false, "<col=808080>Confirm</col>", p12_full, 0, $component7);
}
~clan_create_side_list_players($component3, "", "", "", "", "", "");