-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[proc,poh_board_setsort].cs2
48 lines (48 loc) · 2.48 KB
/
[proc,poh_board_setsort].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
// 3112
[proc,poh_board_setsort](component $component0, component $component1, component $component2)
cc_deleteall($component0);
def_int $int3 = 0;
def_int $int4 = 0;
def_int $int5 = 40;
def_int $int6 = 100;
$int3 = ~poh_board_sortbutton_draw($int3, $int6, $component0, 0, 1, $component1, "Sort by name", null);
$int4 = ~poh_board_v_line($component2, $int4, $int6);
cc_create($component0, ^iftype_text, $int3);
cc_setposition(10, 0, ^setpos_abs_left, ^setpos_abs_centre);
cc_setsize(100, 0, ^setsize_abs, ^setsize_minus);
cc_settext("Player Name");
cc_settextfont(p12_full);
cc_settextalign(^settextalign_left, ^settextalign_centre, 0);
cc_settextshadow(true);
cc_setcolour(0xff981f);
def_string $string0 = "Sort by name";
cc_setonmouserepeat("poh_board_hoversort(event_com, event_comsubid, 120, $component1, $string0)");
cc_setonmouseleave("cc_settrans(event_com, event_comsubid, 0, $component1)");
if (%varcint379 = 0) {
cc_setonclick("poh_board_clicksort(1)");
} else {
cc_setonclick("poh_board_clicksort(0)");
}
$int3 = calc($int3 + 1);
$int6 = calc($int6 + $int5);
$int3 = ~poh_board_sortbutton_draw($int3, $int6, $component0, 2, 3, $component1, "Sort by Construction level", "poh_board_icons,6");
$int4 = ~poh_board_v_line($component2, $int4, $int6);
$int6 = calc($int6 + $int5);
$int3 = ~poh_board_sortbutton_draw($int3, $int6, $component0, 4, 5, $component1, "Sort by Gilded altar", "poh_board_icons,0");
$int4 = ~poh_board_v_line($component2, $int4, $int6);
$int6 = calc($int6 + $int5);
$int3 = ~poh_board_sortbutton_draw($int3, $int6, $component0, 6, 7, $component1, "Sort by nexus tier", "poh_board_icons,1");
$int4 = ~poh_board_v_line($component2, $int4, $int6);
$int6 = calc($int6 + $int5);
$int3 = ~poh_board_sortbutton_draw($int3, $int6, $component0, 8, 9, $component1, "Sort by jewellery box", "poh_board_icons,2");
$int4 = ~poh_board_v_line($component2, $int4, $int6);
$int6 = calc($int6 + $int5);
$int3 = ~poh_board_sortbutton_draw($int3, $int6, $component0, 10, 11, $component1, "Sort by tier of pool", "poh_board_icons,3");
$int4 = ~poh_board_v_line($component2, $int4, $int6);
$int6 = calc($int6 + $int5);
$int3 = ~poh_board_sortbutton_draw($int3, $int6, $component0, 12, 13, $component1, "Sort by occult altar", "poh_board_icons,4");
$int4 = ~poh_board_v_line($component2, $int4, $int6);
$int6 = calc($int6 + $int5);
$int3 = ~poh_board_sortbutton_draw($int3, $int6, $component0, 14, 15, $component1, "Sort by armour stand", "poh_board_icons,5");
$int4 = ~poh_board_v_line($component2, $int4, $int6);
~poh_board_redraw;