aboutsummaryrefslogtreecommitdiff
path: root/webAO/packets/handlers/handleRD.ts
diff options
context:
space:
mode:
authorstonedDiscord <Tukz@gmx.de>2022-09-03 02:13:01 +0200
committerGitHub <noreply@github.com>2022-09-03 02:13:01 +0200
commit20d53ae3a37622805d08e02d3b38175fea0084e2 (patch)
tree98bfddeee34500bb98169de405abf4a1cf114f8c /webAO/packets/handlers/handleRD.ts
parentb87c498ee3e5fb1e6e90084fc093a66abaa311c6 (diff)
parent86b493b881bde4a11214929ebe4317289a7f1da3 (diff)
Merge pull request #162 from caleb-mabry/last-of-the-handlers
Moved rest of the handlers
Diffstat (limited to 'webAO/packets/handlers/handleRD.ts')
-rw-r--r--webAO/packets/handlers/handleRD.ts18
1 files changed, 18 insertions, 0 deletions
diff --git a/webAO/packets/handlers/handleRD.ts b/webAO/packets/handlers/handleRD.ts
new file mode 100644
index 0000000..780b43f
--- /dev/null
+++ b/webAO/packets/handlers/handleRD.ts
@@ -0,0 +1,18 @@
+import { client } from "../../client";
+
+
+/**
+ * we are asking ourselves what characters there are
+ * @param {Array} args packet arguments
+ */
+export const handleRD = (_args: string[]) => {
+ client.sendSelf("BN#gs4#%");
+ client.sendSelf("DONE#%");
+ const ooclog = <HTMLInputElement>document.getElementById("client_ooclog");
+ ooclog.value = "";
+ ooclog.readOnly = false;
+
+ document.getElementById("client_oocinput")!.style.display = "none";
+ document.getElementById("client_replaycontrols")!.style.display =
+ "inline-block";
+} \ No newline at end of file