Adds vchat export chatlog verb (#7214)

This commit is contained in:
Atermonera
2020-05-24 14:23:14 -07:00
committed by VirgoBot
parent 5c130f413e
commit f0bf4efcca
4 changed files with 72 additions and 6 deletions

View File

@@ -89,6 +89,7 @@ function start_vchat() {
//Inform byond we're done
vchat_state.ready = true;
push_Topic('done_loading');
push_Topic_showingnum(this.showingnum);
//I'll do my own winsets
doWinset("htmloutput", {"is-visible": true});
@@ -352,6 +353,7 @@ function start_vue() {
}
set_storage("showingnum",this.showingnum);
push_Topic_showingnum(this.showingnum); // Send the buffer length back to byond so we have it in case of reconnect
this.attempt_archive();
},
current_categories: function(newSetting, oldSetting) {
@@ -799,6 +801,11 @@ function push_Topic(topic_uri) {
window.location = '?_src_=chat&proc=' + topic_uri; //Yes that's really how it works.
}
// Send the showingnum back to byond
function push_Topic_showingnum(topic_num) {
window.location = '?_src_=chat&showingnum=' + topic_num;
}
//Tells byond client to focus the main map window.
function focusMapWindow() {
window.location = 'byond://winset?mapwindow.map.focus=true';