Skip to content

Commit

Permalink
217.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua-F committed Sep 27, 2023
1 parent acc9a1a commit 0343fbf
Show file tree
Hide file tree
Showing 33 changed files with 701 additions and 180 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1898,7 +1898,21 @@
[**1895**](scripts/[clientscript,script1895].cs2)
[**1896**](scripts/[clientscript,script1896].cs2)
[**1897**](scripts/[proc,script1897].cs2)
[**1898**](scripts/[clientscript,script1898].cs2)
[**1899**](scripts/[clientscript,script1899].cs2)
[**1900**](scripts/[clientscript,script1900].cs2)
[**1901**](scripts/[clientscript,script1901].cs2)
[**1902**](scripts/[clientscript,script1902].cs2)
[**1903**](scripts/[clientscript,script1903].cs2)
[**1904**](scripts/[proc,script1904].cs2)
[**1905**](scripts/[clientscript,bugreport_textinput].cs2) `[clientscript,bugreport_textinput]`
[**1906**](scripts/[clientscript,script1906].cs2)
[**1907**](scripts/[proc,script1907].cs2)
[**1908**](scripts/[clientscript,script1908].cs2)
[**1909**](scripts/[clientscript,script1909].cs2)
[**1910**](scripts/[clientscript,script1910].cs2)
[**1911**](scripts/[proc,script1911].cs2)
[**1912**](scripts/[proc,script1912].cs2)
[**1926**](scripts/[clientscript,script1926].cs2)
[**1934**](scripts/[proc,script1934].cs2)
[**1935**](scripts/[proc,instance_check].cs2) `[proc,instance_check]`
Expand Down
20 changes: 20 additions & 0 deletions scripts/[clientscript,script1898].cs2
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// 1898
[clientscript,script1898]
def_component $component0 = interface_214:0;
def_component $component1 = interface_214:1;
def_component $component2 = interface_214:9;
def_int $width3 = if_getwidth($component1);
def_int $height4 = if_getheight($component1);
def_int $width5 = if_getwidth($component0);
def_int $int6 = ~script1912;
def_int $int7 = calc(if_getheight($component0) - $int6);
def_int $int8 = max(0, min(%varcint1170, calc($width5 - $width3)));
def_int $int9 = max($int6, min(%varcint1171, calc($int6 + $int7 - $height4)));
if_setposition($int8, $int9, ^setpos_abs_left, ^setpos_abs_top, $component1);
if (getwindowmode = ^windowmode_fixed | ~on_mobile = true) {
if_setop(1, "", $component2);
if_setondrag(null, $component2);
} else {
if_setop(1, "Move", $component2);
if_setondrag("script1899(event_mousex, event_mousey, $int8, $int9, $int6, $component0, $component1, $component2)", $component2);
}
19 changes: 19 additions & 0 deletions scripts/[clientscript,script1899].cs2
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// 1899
[clientscript,script1899](int $mousex0, int $mousey1, int $int2, int $int3, int $int4, component $component5, component $component6, component $component7)
def_int $height8 = if_getheight($component6);
def_int $width9 = if_getwidth($component6);
def_int $int10 = $int2;
def_int $int11 = $int3;
def_int $width12 = if_getwidth($component5);
def_int $int13 = calc(if_getheight($component5) - $int4);
$int10, $int11 = calc($int10 + ($mousex0 - $int2)), calc($int11 + ($mousey1 - $int3));
if ($int10 < 10) {
$int10 = 0;
}
if ($int11 < calc($int4 + 10)) {
$int11 = $int4;
}
$int10 = max(0, min($int10, calc($width12 - $width9)));
$int11 = max($int4, min($int11, calc($int4 + $int13 - $height8)));
if_setposition($int10, $int11, ^setpos_abs_left, ^setpos_abs_top, $component6);
if_setontimer("script1900(calc(clientclock + 3), $int10, $int11, $int4, $component5, $component6, $component7)", $component7);
9 changes: 9 additions & 0 deletions scripts/[clientscript,script1900].cs2
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// 1900
[clientscript,script1900](int $clock0, int $int1, int $int2, int $int3, component $component4, component $component5, component $component6)
if (clientclock < $clock0) {
return;
}
%varcint1170, %varcint1171 = $int1, $int2;
if_setondrag("script1899(event_mousex, event_mousey, $int1, $int2, $int3, $component4, $component5, $component6)", interface_214:9);
if_setontimer(null, $component6);
if_callonresize($component4);
6 changes: 6 additions & 0 deletions scripts/[clientscript,script1901].cs2
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// 1901
[clientscript,script1901]
%varcint1168 = 0;
%varcint1169 = 0;
%varcint1170 = 0;
%varcint1171 = 0;
61 changes: 61 additions & 0 deletions scripts/[clientscript,script1902].cs2
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
// 1902
[clientscript,script1902](int $int0, int $int1)
def_component $component2 = interface_860:0;
def_component $component3 = interface_860:1;
def_int $int4 = 56360963;
def_int $int5 = 56360964;
def_int $int6 = 56360965;
def_component $component7 = interface_860:2;
def_component $component8 = interface_860:8;
if (%varcint1172 ! $int0 | %varcint1173 ! $int1) {
if_setscrollpos(0, 0, $component8);
}
%varcint1172 = $int0;
%varcint1173 = $int1;
def_enum $enum9 = ~toplevel_getcomponents;
def_component $component10 = enum(component, component, $enum9, toplevel_osrs_stretch:16);
if (~on_mobile = true) {
if_setontimer("script3833($component2, $component3, 0)", $component2);
} else {
if (%varcint1170 = 0 & %varcint1171 = 0 & %varcint1168 = 0 & %varcint1169 = 0) {
%varcint1168 = if_getwidth($component10);
%varcint1169 = if_getheight($component10);
%varcint1170 = if_getx($component10);
%varcint1171 = if_gety($component10);
}
if_setontimer("script6110($component2, -1)", $component2);
}
if_setonresize("script1903", $component2);
if_sethide(false, $component3);
if_sethide(true, $component7);
if ($enum9 = enum_1132) {
if_setposition(6, 6, ^setpos_abs_centre, ^setpos_abs_centre, $component3);
if_setsize(12, 12, ^setsize_minus, ^setsize_minus, $component3);
~script1904;
return;
}
cc_deleteall($component2);
def_int $int11 = 0;
while ($int11 < 9) {
cc_create($component2, ^iftype_graphic, $int11);
cc_settiling(true);
cc_settrans(255);
cc_setonmouserepeat("cc_settrans(event_com, event_comsubid, 200, null)");
cc_setonmouseleave("cc_settrans(event_com, event_comsubid, 255, null)");
cc_setdraggable($component2, -1);
cc_setdragdeadzone(1);
cc_setdragdeadtime(5);
$int11 = calc($int11 + 1);
}
cc_deleteall($component7);
$int11 = 0;
while ($int11 < 4) {
cc_create($component7, ^iftype_rectangle, $int11);
cc_setsize(calc($int11 * 2), calc($int11 * 2), ^setsize_minus, ^setsize_minus);
cc_setposition(0, 0, ^setpos_abs_centre, ^setpos_abs_centre);
cc_setcolour(0x9f9f9f);
cc_setfill(false);
cc_settrans(calc(100 + $int11 * 10));
$int11 = calc($int11 + 1);
}
~script1911(-1, -1, $component2, $component3);
3 changes: 3 additions & 0 deletions scripts/[clientscript,script1903].cs2
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// 1903
[clientscript,script1903]
~script1904;
11 changes: 11 additions & 0 deletions scripts/[clientscript,script1906].cs2
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// 1906
[clientscript,script1906](int $int0)
if ($int0 = %varcint1173) {
return;
}
sound_synth(interface_select1, 1, 0);
%varcint1173 = $int0;
def_component $component1 = interface_860:0;
def_component $component2 = interface_860:8;
if_callonresize($component1);
if_setscrollpos(0, 0, $component2);
65 changes: 65 additions & 0 deletions scripts/[clientscript,script1908].cs2
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
// 1908
[clientscript,script1908](int $comsubid0, int $mousex1, int $mousey2, int $x3, int $y4, int $int5, component $component6, component $component7, component $component8)
def_int $int9 = %varcint1168;
def_int $int10 = %varcint1169;
def_int $int11 = %varcint1170;
def_int $int12 = %varcint1171;
def_int $width13 = if_getwidth($component6);
def_int $int14 = calc(if_getheight($component6) - $int5);
def_int $int15 = 0;
if (cc_find($component6, $comsubid0) = ^true) {
cc_setgraphic(null);
switch_int ($comsubid0) {
case 0 :
$int11, $int12 = calc($int11 + ($mousex1 - $x3)), calc($int12 + ($mousey2 - $y4));
case 1 :
$int10 = calc($int10 + ($mousey2 - $y4));
case 2 :
$int15 = calc($mousex1 - $x3);
$int9, $int11 = calc($int9 - $int15), calc($int11 + $int15);
case 3 :
$int9 = calc($int9 + ($mousex1 - $x3));
case 4 :
$int15 = calc($mousex1 - $x3);
$int9, $int11 = calc($int9 - $int15), calc($int11 + $int15);
$int15 = calc($mousey2 - $y4);
$int10, $int12 = calc($int10 - $int15), calc($int12 + $int15);
case 5 :
$int9 = calc($int9 + ($mousex1 - $x3));
$int15 = calc($mousey2 - $y4);
$int10, $int12 = calc($int10 - $int15), calc($int12 + $int15);
case 6 :
$int15 = calc($mousex1 - $x3);
$int9, $int11 = calc($int9 - $int15), calc($int11 + $int15);
$int10 = calc($int10 + ($mousey2 - $y4));
case 7 :
$int9 = calc($int9 + ($mousex1 - $x3));
$int10 = calc($int10 + ($mousey2 - $y4));
case 8 :
$int15 = calc($mousey2 - $y4);
$int10, $int12 = calc($int10 - $int15), calc($int12 + $int15);
}
if ($int11 < 10) {
$int9, $int11 = calc($int9 + max(0, $int11)), 0;
}
$int15 = calc($width13 - ($int11 + $int9));
if ($int15 < 10) {
$int9 = calc($int9 + $int15);
}
if ($int12 < calc($int5 + 10)) {
$int10, $int12 = calc($int10 + max(0, calc($int12 - $int5))), $int5;
}
$int15 = calc($int14 + $int5 - ($int12 + $int10));
if ($int15 < 10) {
$int10 = calc($int10 + $int15);
}
$int9 = max(512, min($int9, $width13));
$int10 = max(334, min($int10, $int14));
$int11 = max(0, min($int11, calc($width13 - $int9)));
$int12 = max($int5, min($int12, calc($int5 + $int14 - $int10)));
if_setposition($int11, $int12, ^setpos_abs_left, ^setpos_abs_top, $component8);
if_setsize($int9, $int10, ^setsize_abs, ^setsize_abs, $component8);
if_sethide(false, $component8);
if_sethide(true, $component7);
cc_setontimer("script1909(calc(clientclock + 3), $int9, $int10, $int11, $int12)");
}
8 changes: 8 additions & 0 deletions scripts/[clientscript,script1909].cs2
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// 1909
[clientscript,script1909](int $clock0, int $int1, int $int2, int $int3, int $int4)
if (clientclock < $clock0) {
return;
}
%varcint1168, %varcint1169, %varcint1170, %varcint1171 = $int1, $int2, $int3, $int4;
def_component $component5 = interface_860:0;
if_callonresize($component5);
3 changes: 3 additions & 0 deletions scripts/[clientscript,script1910].cs2
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// 1910
[clientscript,script1910](int $width0, int $height1, component $component2, component $component3)
~script1911($width0, $height1, $component2, $component3);
4 changes: 2 additions & 2 deletions scripts/[clientscript,skill_guide_build].cs2
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// 655
[clientscript,skill_guide_build](component $component0, component $component1, component $component2, component $component3, component $component4, component $component5, component $component6, component $component7)
~skill_guide_build($component0, $component1, $component2, $component3, $component4, $component5, $component6, $component7);
[clientscript,skill_guide_build](component $component0, component $component1, component $component2, component $component3, component $component4, component $component5, component $component6, component $component7, component $component8)
~skill_guide_build($component0, $component1, $component2, $component3, $component4, $component5, $component6, $component7, $component8);
21 changes: 18 additions & 3 deletions scripts/[clientscript,skill_guide_init].cs2
Original file line number Diff line number Diff line change
@@ -1,4 +1,19 @@
// 654
[clientscript,skill_guide_init](component $component0, component $component1, component $component2, component $component3, component $component4, component $component5, component $component6, component $component7, component $component8)
~skill_guide_build($component1, $component2, $component3, $component4, $component5, $component6, $component7, $component8);
if_setonvartransmit("skill_guide_build($component1, $component2, $component3, $component4, $component5, $component6, $component7, $component8){var965}", $component0);
[clientscript,skill_guide_init](component $component0, component $component1, component $component2, component $component3, component $component4, component $component5, component $component6, component $component7, component $component8, component $component9)
~skill_guide_build($component1, $component2, $component3, $component4, $component5, $component6, $component7, $component8, $component9);
def_enum $enum10 = ~toplevel_getcomponents;
def_component $component11 = enum(component, component, $enum10, toplevel_osrs_stretch:16);
if (~on_mobile = true) {
if_setontimer("script3833($component9, $component0, 0)", $component9);
} else {
if (%varcint1170 = 0 & %varcint1171 = 0 & %varcint1168 = 0 & %varcint1169 = 0) {
%varcint1168 = if_getwidth($component11);
%varcint1169 = if_getheight($component11);
%varcint1170 = if_getx($component11);
%varcint1171 = if_gety($component11);
}
if_setontimer("script6110($component9, -1)", $component9);
if_setonresize("script1898", $component9);
}
if_setonvartransmit("skill_guide_build($component1, $component2, $component3, $component4, $component5, $component6, $component7, $component8, $component9){var965}", $component0);
~script1911(-1, -1, $component9, $component0);
4 changes: 2 additions & 2 deletions scripts/[clientscript,skill_guide_sidepanelop].cs2
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// 1105
[clientscript,skill_guide_sidepanelop](int $opindex0, int $int1, component $component2, component $component3, component $component4, component $component5, component $component6, component $component7, component $component8, component $component9)
[clientscript,skill_guide_sidepanelop](int $opindex0, int $int1, component $component2, component $component3, component $component4, component $component5, component $component6, component $component7, component $component8, component $component9, component $component10)
if ($opindex0 ! 1) {
return;
}
%varbit4372 = $int1;
~skill_guide_build($component2, $component3, $component4, $component5, $component6, $component7, $component8, $component9);
~skill_guide_build($component2, $component3, $component4, $component5, $component6, $component7, $component8, $component9, $component10);
4 changes: 2 additions & 2 deletions scripts/[clientscript,skillmulti_itembutton_key].cs2
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// 2051
[clientscript,skillmulti_itembutton_key](char $keychar0, int $key1, obj $obj2, component $component3, string $string0, int $int4, int $int5, int $int6)
[clientscript,skillmulti_itembutton_key](char $keychar0, int $key1, obj $obj2, component $component3, string $string0, int $int4, int $int5, int $int6, int $int7)
if (~keypress_permit(interface_270, null) = 1 & ($int4 ! -1 & $key1 = $int4 | $keychar0 ! null & string_length($string0) > 0 & string_indexof_char($string0, $keychar0) ! -1)) {
~skillmulti_itembutton_triggered($obj2, $component3, $string0, $int4, $int5, $int6);
~skillmulti_itembutton_triggered($obj2, $component3, $string0, $int4, $int5, $int6, $int7);
}
4 changes: 2 additions & 2 deletions scripts/[clientscript,skillmulti_itembutton_op].cs2
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// 2050
[clientscript,skillmulti_itembutton_op](int $opindex0, obj $obj1, component $component2, string $string0, int $int3, int $int4, int $int5)
[clientscript,skillmulti_itembutton_op](int $opindex0, obj $obj1, component $component2, string $string0, int $int3, int $int4, int $int5, int $int6)
if ($opindex0 = 1) {
~skillmulti_itembutton_triggered($obj1, $component2, $string0, $int3, $int4, $int5);
~skillmulti_itembutton_triggered($obj1, $component2, $string0, $int3, $int4, $int5, $int6);
}
12 changes: 6 additions & 6 deletions scripts/[clientscript,skillmulti_itembutton_reset].cs2
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
// 2053
[clientscript,skillmulti_itembutton_reset](int $clock0, obj $obj1, component $component2, string $string0, int $int3, int $int4, int $int5)
[clientscript,skillmulti_itembutton_reset](int $clock0, obj $obj1, component $component2, string $string0, int $int3, int $int4, int $int5, int $int6)
if (clientclock < $clock0) {
return;
}
~skillmulti_itembutton_draw(false, $obj1, $component2, $int4, $int5);
if_setonmouseover("skillmulti_itembutton_hover(true, $obj1, $component2, $int4, $int5)", $component2);
if_setonmouseleave("skillmulti_itembutton_hover(false, $obj1, $component2, $int4, $int5)", $component2);
if_setonop("skillmulti_itembutton_op(event_op, $obj1, $component2, $string0, $int3, $int4, $int5)", $component2);
if_setonkey("skillmulti_itembutton_key(event_keychar, event_keycode, $obj1, $component2, $string0, $int3, $int4, $int5)", $component2);
~skillmulti_itembutton_draw(false, $obj1, $component2, $int5, $int6);
if_setonmouseover("skillmulti_itembutton_hover(true, $obj1, $component2, $int5, $int6)", $component2);
if_setonmouseleave("skillmulti_itembutton_hover(false, $obj1, $component2, $int5, $int6)", $component2);
if_setonop("skillmulti_itembutton_op(event_op, $obj1, $component2, $string0, $int3, $int4, $int5, $int6)", $component2);
if_setonkey("skillmulti_itembutton_key(event_keychar, event_keycode, $obj1, $component2, $string0, $int3, $int4, $int5, $int6)", $component2);
if_setontimer(null, $component2);
Loading

0 comments on commit 0343fbf

Please sign in to comment.