aboutsummaryrefslogtreecommitdiff
path: root/webAO/dom/pickEmotion.ts
diff options
context:
space:
mode:
authorstonedDiscord <stonedDiscord@users.noreply.github.com>2024-11-20 13:31:50 +0000
committerGitHub Action <actions@github.com>2024-11-20 13:31:50 +0000
commit6684f3fce6e90fd0574d7bab63b629554ab03ef6 (patch)
treeb2a62247d17e23a77af57aea355ba621666817c2 /webAO/dom/pickEmotion.ts
parent95a2d1361d84c61b454ebe506e6963b93f6d8dee (diff)
Prettified Code!
Diffstat (limited to 'webAO/dom/pickEmotion.ts')
-rw-r--r--webAO/dom/pickEmotion.ts32
1 files changed, 16 insertions, 16 deletions
diff --git a/webAO/dom/pickEmotion.ts b/webAO/dom/pickEmotion.ts
index 619d0ab..15169c3 100644
--- a/webAO/dom/pickEmotion.ts
+++ b/webAO/dom/pickEmotion.ts
@@ -1,26 +1,26 @@
-import { client } from '../client'
+import { client } from "../client";
/**
* Highlights and selects an emotion for in-character chat.
* @param {string} emo the new emotion to be selected
*/
export function pickEmotion(emo: number) {
- try {
- if (client.selectedEmote !== -1) {
- document.getElementById(`emo_${client.selectedEmote}`)!.className =
- "emote_button";
- }
- } catch (err) {
- // do nothing
+ try {
+ if (client.selectedEmote !== -1) {
+ document.getElementById(`emo_${client.selectedEmote}`)!.className =
+ "emote_button";
}
- client.selectedEmote = emo;
- document.getElementById(`emo_${emo}`)!.className = "emote_button dark";
+ } catch (err) {
+ // do nothing
+ }
+ client.selectedEmote = emo;
+ document.getElementById(`emo_${emo}`)!.className = "emote_button dark";
- (<HTMLInputElement>document.getElementById("sendsfx")).checked =
- client.emote.sfx.length > 1;
+ (<HTMLInputElement>document.getElementById("sendsfx")).checked =
+ client.emote.sfx.length > 1;
- (<HTMLInputElement>document.getElementById("sendpreanim")).checked =
- client.emote.zoom == 1;
+ (<HTMLInputElement>document.getElementById("sendpreanim")).checked =
+ client.emote.zoom == 1;
- (<HTMLInputElement>document.getElementById("client_inputbox")).focus();
+ (<HTMLInputElement>document.getElementById("client_inputbox")).focus();
}
-window.pickEmotion = pickEmotion; \ No newline at end of file
+window.pickEmotion = pickEmotion;