Hyperstation RP beta 0.1 and alot of bug fixes.

This commit is contained in:
QuoteFox
2021-03-20 12:36:02 +00:00
parent 42b1d15981
commit 706ee6d3eb
70 changed files with 207 additions and 119 deletions
+42 -1
View File
@@ -274,6 +274,7 @@ if (window.location) {
var status_tab_parts = ["loading..."];
var current_tab = null;
var mc_tab_parts = [["loading...", ""]];
var examine_tab_parts = ["<b>Mob Examine Text</b>"];
var href_token = null;
var spells = [];
var spell_tabs = [];
@@ -570,11 +571,13 @@ function tab_change(tab) {
draw_tickets();
} else if(tab == "SQDL2") {
draw_sqdl2();
} else if(tab == "Examine") {
draw_examine();
}else if(tab == turfname) {
draw_listedturf();
} else {
var statcontentdiv = document.getElementById("statcontent");
statcontentdiv[textContentKey] = "loading...";
statcontentdiv[textContentKey] = "loading...";
}
window.location.href = "byond://winset?statbrowser.is-visible=true";
}
@@ -684,6 +687,22 @@ function draw_mc() {
}
document.getElementById("statcontent").appendChild(table);
}
function update_examine(html) {
examine_tab_parts = html
}
function draw_examine() {
var statcontentdiv = document.getElementById("statcontent");
if(!document.getElementById("Examine")) {
createStatusTab("Examine");
current_tab = "Examine";
}
statcontentdiv[textContentKey] = inner;
document.getElementById("statcontent").innerHTML = examine_tab_parts;
}
function update_tickets(T){
tickets = JSON.parse(T);
if(!verb_tabs.includes("Tickets")) {
@@ -729,6 +748,28 @@ function remove_admin_tabs() {
remove_sqdl2();
}
//mob examine
function create_mobexamine() {
remove_mobexamine(); // remove the last one if we had one
addPermanentTab("Examine");
tab_change("Examine");
}
function remove_mobexamine() {
removePermanentTab("Examine");
checkStatusTab();
if(current_tab == "Examine")
tab_change("Status");
}
function update_mobexamine(TC) {
turfcontents = JSON.parse(TC);
if(current_tab == "Examine")
draw_listedturf();
}
//turf
function create_listedturf(TN) {
remove_listedturf(); // remove the last one if we had one
turfname = JSON.parse(TN);