aboutsummaryrefslogtreecommitdiff
path: root/webAO/client.js
diff options
context:
space:
mode:
Diffstat (limited to 'webAO/client.js')
-rw-r--r--webAO/client.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/webAO/client.js b/webAO/client.js
index 03a72cf..ba9245d 100644
--- a/webAO/client.js
+++ b/webAO/client.js
@@ -1870,6 +1870,16 @@ export function reloadTheme() {
window.reloadTheme = reloadTheme;
/**
+ * Triggered by the ini button.
+ */
+export function iniedit() {
+ const ininame = document.getElementById("client_ininame").value;
+ client.handleCharacterInfo(ininame.split("&"),client.charID);
+ client.handlePV(("0#CID#" + client.charID).split("#"));
+}
+window.iniedit = iniedit;
+
+/**
* Triggered when a character icon is clicked in the character selection menu.
* @param {MouseEvent} event
*/