-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy path[proc,ca_searchbar_setup_op].cs2
More file actions
27 lines (27 loc) · 1.04 KB
/
[proc,ca_searchbar_setup_op].cs2
File metadata and controls
27 lines (27 loc) · 1.04 KB
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
// 4794
[proc,ca_searchbar_setup_op](component $component0, component $component1, component $component2, int $int3)
def_int $int4 = 0;
if (%varbit12884 = 0) {
if_setop(1, "Search", $component1);
if_setonop("ca_searchbar_op($component0, $component1, $component2)", $component1);
if_setonmouseover("searchbar_mouseover($component2)", $component2);
if_setonmouseleave("searchbar_mouseleave($component2)", $component2);
if_setcolour(0xff981f, $component2);
if ($int3 = 1) {
%varcstring527 = "";
}
if_settext(append(%varcstring527, "*"), $component2);
if_setonkey(null, $component2);
} else {
if (~on_mobile = false) {
if_setop(1, "", $component1);
if_setonop(null, $component1);
} else {
if_setop(1, "Show keyboard", $component1);
if_setonop("ca_settings_show_keyboard", $component1);
}
if_setonmouseover(null, $component2);
if_setonmouseleave(null, $component2);
if_settext(append(%varcstring527, "<col=f4f4f4>*</col>"), $component2);
if_setonkey("ca_searchbar_keypress(event_key, event_keychar, $component0, $component2)", $component2);
}