aboutsummaryrefslogtreecommitdiff
path: root/webAO/packets/handlers/handleFL.ts
diff options
context:
space:
mode:
authorstonedDiscord <Tukz@gmx.de>2022-08-30 23:42:08 +0200
committerGitHub <noreply@github.com>2022-08-30 23:42:08 +0200
commitfd76aa9ea07c937e92d5f9f65b58c6f16957ce55 (patch)
tree2e53b0401f8c52a0f4dfd0604f4d11ed97b3a87f /webAO/packets/handlers/handleFL.ts
parentf07d77c3d40b2ebf5da0f3399e31f6741c60024e (diff)
parentc95c943938b2254bdb9581fc4b00e72d15e91436 (diff)
Merge pull request #158 from caleb-mabry/another-another
More packets moved
Diffstat (limited to 'webAO/packets/handlers/handleFL.ts')
-rw-r--r--webAO/packets/handlers/handleFL.ts88
1 files changed, 44 insertions, 44 deletions
diff --git a/webAO/packets/handlers/handleFL.ts b/webAO/packets/handlers/handleFL.ts
index d9e67e5..378d5a9 100644
--- a/webAO/packets/handlers/handleFL.ts
+++ b/webAO/packets/handlers/handleFL.ts
@@ -1,48 +1,48 @@
import { setExtraFeatures } from "../../client";
-
- /**
- * With this the server tells us which features it supports
- * @param {Array} args list of features
- */
+
+/**
+ * With this the server tells us which features it supports
+ * @param {Array} args list of features
+ */
export const handleFL = (args: string[]) => {
- console.info("Server-supported features:");
- console.info(args);
- setExtraFeatures(args);
-
- if (args.includes("yellowtext")) {
- const colorselect = <HTMLSelectElement>(
- document.getElementById("textcolor")
- );
-
- colorselect.options[colorselect.options.length] = new Option(
- "Yellow",
- "5"
- );
- colorselect.options[colorselect.options.length] = new Option("Grey", "6");
- colorselect.options[colorselect.options.length] = new Option("Pink", "7");
- colorselect.options[colorselect.options.length] = new Option("Cyan", "8");
- }
-
- if (args.includes("cccc_ic_support")) {
- document.getElementById("cccc")!.style.display = "";
- document.getElementById("pairing")!.style.display = "";
- }
-
- if (args.includes("flipping")) {
- document.getElementById("button_flip")!.style.display = "";
- }
-
- if (args.includes("looping_sfx")) {
- document.getElementById("button_shake")!.style.display = "";
- document.getElementById("2.7")!.style.display = "";
- }
-
- if (args.includes("effects")) {
- document.getElementById("2.8")!.style.display = "";
- }
-
- if (args.includes("y_offset")) {
- document.getElementById("y_offset")!.style.display = "";
- }
+ console.info("Server-supported features:");
+ console.info(args);
+ setExtraFeatures(args);
+
+ if (args.includes("yellowtext")) {
+ const colorselect = <HTMLSelectElement>(
+ document.getElementById("textcolor")
+ );
+
+ colorselect.options[colorselect.options.length] = new Option(
+ "Yellow",
+ "5"
+ );
+ colorselect.options[colorselect.options.length] = new Option("Grey", "6");
+ colorselect.options[colorselect.options.length] = new Option("Pink", "7");
+ colorselect.options[colorselect.options.length] = new Option("Cyan", "8");
+ }
+
+ if (args.includes("cccc_ic_support")) {
+ document.getElementById("cccc")!.style.display = "";
+ document.getElementById("pairing")!.style.display = "";
+ }
+
+ if (args.includes("flipping")) {
+ document.getElementById("button_flip")!.style.display = "";
+ }
+
+ if (args.includes("looping_sfx")) {
+ document.getElementById("button_shake")!.style.display = "";
+ document.getElementById("2.7")!.style.display = "";
+ }
+
+ if (args.includes("effects")) {
+ document.getElementById("2.8")!.style.display = "";
+ }
+
+ if (args.includes("y_offset")) {
+ document.getElementById("y_offset")!.style.display = "";
}
+}