aboutsummaryrefslogtreecommitdiff
path: root/webAO/packets/handlers/handleRD.ts
blob: 780b43ff4e80f2201df59a89d9800a097f698002 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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";
}