-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[proc,nzone_rewards_tabs].cs2
27 lines (27 loc) · 1.29 KB
/
[proc,nzone_rewards_tabs].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
// 308
[proc,nzone_rewards_tabs](component $component0, component $component1, component $component2, component $component3, component $component4)
cc_deleteall($component0);
def_int $int5 = 0;
def_int $int6 = 0;
$int5, $int6 = ~nzone_rewards_tab($component0, $component1, "Resources", $int5, $int6, $component1, $component2, $component3, $component4);
$int5, $int6 = ~nzone_rewards_tab($component0, $component2, "Upgrades", $int5, $int6, $component1, $component2, $component3, $component4);
$int5, $int6 = ~nzone_rewards_tab($component0, $component3, "Benefits", $int5, $int6, $component1, $component2, $component3, $component4);
cc_create($component0, ^iftype_text, $int5);
cc_setposition($int6, 0, ^setpos_abs_left, ^setpos_abs_top);
cc_setsize(calc(if_getwidth($component0) - $int6), if_getheight($component0), ^setsize_abs, ^setsize_abs);
cc_settextfont(p12_full);
cc_settextalign(^settextalign_centre, ^settextalign_centre, 0);
cc_setcolour(0xff981f);
cc_settextshadow(true);
~nzone_rewards_setpoints;
cc_setonvartransmit("nzone_rewards_setpoints(event_com, event_comsubid){var1060}");
if_sethide(false, $component4);
if ($component4 ! $component1) {
if_sethide(true, $component1);
}
if ($component4 ! $component2) {
if_sethide(true, $component2);
}
if ($component4 ! $component3) {
if_sethide(true, $component3);
}