mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 02:09:41 +00:00
Mergey Merge Polaris VChat
This commit is contained in:
@@ -78,12 +78,7 @@
|
||||
#define COLOR_RED_LIGHT "#FF3333"
|
||||
#define COLOR_DEEP_SKY_BLUE "#00e1ff"
|
||||
|
||||
<<<<<<< HEAD
|
||||
|
||||
#define CLIENT_FROM_VAR(I) (ismob(I) ? I:client : (istype(I, /client) ? I : null))
|
||||
=======
|
||||
#define CLIENT_FROM_VAR(I) (ismob(I) ? I:client : (isclient(I) ? I : null))
|
||||
>>>>>>> 715de43... VChat: Redone chat output done in Vue.js (#6761)
|
||||
|
||||
// Shuttles.
|
||||
|
||||
|
||||
@@ -49,7 +49,6 @@
|
||||
Log(message, message_title)
|
||||
|
||||
datum/announcement/proc/Message(message as text, message_title as text)
|
||||
<<<<<<< HEAD
|
||||
global_announcer.autosay("<span class='alert'>[message_title]:</span> [message]", announcer ? announcer : ANNOUNCER_NAME)
|
||||
|
||||
datum/announcement/minor/Message(message as text, message_title as text)
|
||||
@@ -63,40 +62,6 @@ datum/announcement/priority/command/Message(message as text, message_title as te
|
||||
|
||||
datum/announcement/priority/security/Message(message as text, message_title as text)
|
||||
global_announcer.autosay("<span class='alert'>[message_title]:</span> [message]", ANNOUNCER_NAME)
|
||||
=======
|
||||
for(var/mob/M in player_list)
|
||||
if(!istype(M,/mob/new_player) && !isdeaf(M))
|
||||
to_chat(M, "<h2 class='alert'>[title]</h2>")
|
||||
to_chat(M, "<span class='alert'>[message]</span>")
|
||||
if (announcer)
|
||||
to_chat(M, "<span class='alert'> -[html_encode(announcer)]</span>")
|
||||
|
||||
datum/announcement/minor/Message(message as text, message_title as text)
|
||||
to_world("<b>[message]</b>")
|
||||
|
||||
datum/announcement/priority/Message(message as text, message_title as text)
|
||||
to_world("<h1 class='alert'>[message_title]</h1>")
|
||||
to_world("<span class='alert'>[message]</span>")
|
||||
if(announcer)
|
||||
to_world("<span class='alert'> -[html_encode(announcer)]</span>")
|
||||
to_world("<br>")
|
||||
|
||||
datum/announcement/priority/command/Message(message as text, message_title as text)
|
||||
var/command
|
||||
command += "<h1 class='alert'>[command_name()] Update</h1>"
|
||||
if (message_title)
|
||||
command += "<br><h2 class='alert'>[message_title]</h2>"
|
||||
|
||||
command += "<br><span class='alert'>[message]</span><br>"
|
||||
command += "<br>"
|
||||
for(var/mob/M in player_list)
|
||||
if(!istype(M,/mob/new_player) && !isdeaf(M))
|
||||
to_chat(M, command)
|
||||
|
||||
datum/announcement/priority/security/Message(message as text, message_title as text)
|
||||
to_world("<font size=4 color='red'>[message_title]</font>")
|
||||
to_world("<font color='red'>[message]</font>")
|
||||
>>>>>>> 715de43... VChat: Redone chat output done in Vue.js (#6761)
|
||||
|
||||
datum/announcement/proc/NewsCast(message as text, message_title as text)
|
||||
if(!newscast)
|
||||
|
||||
@@ -177,7 +177,6 @@ var/list/obj/machinery/requests_console/allConsoles = list()
|
||||
message_log += "<B>Message sent to [recipient]</B><BR>[message]"
|
||||
else
|
||||
audible_message(text("[bicon(src)] *The Requests Console beeps: 'NOTICE: No server detected!'"),,4)
|
||||
<<<<<<< HEAD
|
||||
|
||||
//Handle printing
|
||||
if (href_list["print"])
|
||||
@@ -188,8 +187,6 @@ var/list/obj/machinery/requests_console/allConsoles = list()
|
||||
var/obj/item/weapon/paper/R = new(src.loc)
|
||||
R.name = "[department] Message"
|
||||
R.info = "<H3>[department] Requests Console</H3><div>[msg]</div>"
|
||||
=======
|
||||
>>>>>>> 715de43... VChat: Redone chat output done in Vue.js (#6761)
|
||||
|
||||
//Handle screen switching
|
||||
if(href_list["setScreen"])
|
||||
|
||||
@@ -29,23 +29,9 @@ You can set verify to TRUE if you want send() to sleep until the client has the
|
||||
//This proc sends the asset to the client, but only if it needs it.
|
||||
//This proc blocks(sleeps) unless verify is set to false
|
||||
/proc/send_asset(var/client/client, var/asset_name, var/verify = TRUE)
|
||||
<<<<<<< HEAD
|
||||
if(!istype(client))
|
||||
if(ismob(client))
|
||||
var/mob/M = client
|
||||
if(M.client)
|
||||
client = M.client
|
||||
|
||||
else
|
||||
return 0
|
||||
|
||||
else
|
||||
return 0
|
||||
=======
|
||||
client = CLIENT_FROM_VAR(client) // Will get client from a mob, or accept a client, or return null
|
||||
if(!istype(client))
|
||||
return 0
|
||||
>>>>>>> 715de43... VChat: Redone chat output done in Vue.js (#6761)
|
||||
|
||||
if(client.cache.Find(asset_name) || client.sending.Find(asset_name))
|
||||
return 0
|
||||
@@ -79,23 +65,9 @@ You can set verify to TRUE if you want send() to sleep until the client has the
|
||||
|
||||
//This proc blocks(sleeps) unless verify is set to false
|
||||
/proc/send_asset_list(var/client/client, var/list/asset_list, var/verify = TRUE)
|
||||
<<<<<<< HEAD
|
||||
if(!istype(client))
|
||||
if(ismob(client))
|
||||
var/mob/M = client
|
||||
if(M.client)
|
||||
client = M.client
|
||||
|
||||
else
|
||||
return 0
|
||||
|
||||
else
|
||||
return 0
|
||||
=======
|
||||
client = CLIENT_FROM_VAR(client) // Will get client from a mob, or accept a client, or return null
|
||||
if(!istype(client))
|
||||
return 0
|
||||
>>>>>>> 715de43... VChat: Redone chat output done in Vue.js (#6761)
|
||||
|
||||
var/list/unreceived = asset_list - (client.cache + client.sending)
|
||||
if(!unreceived || !unreceived.len)
|
||||
|
||||
@@ -124,10 +124,7 @@ body.inverted {
|
||||
.emote {}
|
||||
.alert {color: #ff0000;}
|
||||
h1.alert, h2.alert {color: #000000;}
|
||||
<<<<<<< HEAD
|
||||
.nif {} /* VOREStation Add */
|
||||
=======
|
||||
>>>>>>> 715de43... VChat: Redone chat output done in Vue.js (#6761)
|
||||
|
||||
/* Game Messages */
|
||||
|
||||
@@ -160,11 +157,7 @@ h1.alert, h2.alert {color: #000000;}
|
||||
.soghun {color: #228B22;}
|
||||
.solcom {color: #22228B;}
|
||||
.changeling {color: #800080;}
|
||||
<<<<<<< HEAD
|
||||
.sergal {color: #0077FF;}
|
||||
=======
|
||||
.sergal {color: #0077FF; font-family: "Comic Sans MS";}
|
||||
>>>>>>> 715de43... VChat: Redone chat output done in Vue.js (#6761)
|
||||
.birdsongc {color: #CC9900;}
|
||||
.vulpkanin {color: #B97A57;}
|
||||
.enochian {color: #848A33; letter-spacing:-1pt; word-spacing:4pt; font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif;}
|
||||
|
||||
@@ -152,11 +152,7 @@ function start_vue() {
|
||||
admin: false
|
||||
},
|
||||
{
|
||||
<<<<<<< HEAD
|
||||
matches: ".notice, .adminnotice, .info, .sinister, .cult",
|
||||
=======
|
||||
matches: ".notice:not(.pm), .adminnotice, .info, .sinister, .cult",
|
||||
>>>>>>> 715de43... VChat: Redone chat output done in Vue.js (#6761)
|
||||
becomes: "vc_info",
|
||||
pretty: "Notices",
|
||||
tooltip: "Non-urgent messages from the game and items",
|
||||
@@ -164,11 +160,7 @@ function start_vue() {
|
||||
admin: false
|
||||
},
|
||||
{
|
||||
<<<<<<< HEAD
|
||||
matches: ".critical, .danger, .userdanger, .warning, .italics",
|
||||
=======
|
||||
matches: ".critical, .danger, .userdanger, .warning:not(.pm), .italics",
|
||||
>>>>>>> 715de43... VChat: Redone chat output done in Vue.js (#6761)
|
||||
becomes: "vc_warnings",
|
||||
pretty: "Warnings",
|
||||
tooltip: "Urgent messages from the game and items",
|
||||
@@ -191,7 +183,6 @@ function start_vue() {
|
||||
required: false,
|
||||
admin: false
|
||||
},
|
||||
<<<<<<< HEAD
|
||||
//VOREStation Add Start
|
||||
{
|
||||
matches: ".nif",
|
||||
@@ -202,8 +193,6 @@ function start_vue() {
|
||||
admin: false
|
||||
},
|
||||
//VOREStation Add End
|
||||
=======
|
||||
>>>>>>> 715de43... VChat: Redone chat output done in Vue.js (#6761)
|
||||
{
|
||||
matches: ".pm",
|
||||
becomes: "vc_adminpm",
|
||||
@@ -685,11 +674,7 @@ function start_vue() {
|
||||
hiddenElement.target = '_blank';
|
||||
hiddenElement.download = filename;
|
||||
hiddenElement.click();
|
||||
<<<<<<< HEAD
|
||||
//Probably what will end up getting used
|
||||
=======
|
||||
//Probably what will end up getting used
|
||||
>>>>>>> 715de43... VChat: Redone chat output done in Vue.js (#6761)
|
||||
} else {
|
||||
var blob = new Blob([textToSave], {type: 'text/html;charset=utf8;'});
|
||||
saved = window.navigator.msSaveOrOpenBlob(blob, filename);
|
||||
|
||||
@@ -103,11 +103,7 @@ GLOBAL_DATUM_INIT(iconCache, /savefile, new("data/iconCache.sav")) //Cache of ic
|
||||
owner << browse(file2text("code/modules/vchat/html/vchat.html"), "window=htmloutput")
|
||||
|
||||
//Check back later
|
||||
<<<<<<< HEAD
|
||||
spawn(15 SECONDS)
|
||||
=======
|
||||
spawn(60 SECONDS)
|
||||
>>>>>>> 715de43... VChat: Redone chat output done in Vue.js (#6761)
|
||||
if(!src)
|
||||
return
|
||||
if(!src.loaded)
|
||||
@@ -144,13 +140,10 @@ GLOBAL_DATUM_INIT(iconCache, /savefile, new("data/iconCache.sav")) //Cache of ic
|
||||
/datum/chatOutput/proc/become_broken()
|
||||
broken = TRUE
|
||||
loaded = FALSE
|
||||
<<<<<<< HEAD
|
||||
=======
|
||||
|
||||
if(!owner)
|
||||
qdel(src)
|
||||
return
|
||||
>>>>>>> 715de43... VChat: Redone chat output done in Vue.js (#6761)
|
||||
|
||||
update_vis()
|
||||
|
||||
|
||||
@@ -474,12 +474,9 @@ macro "hotkeymode"
|
||||
elem
|
||||
name = "5"
|
||||
command = ".me"
|
||||
<<<<<<< HEAD
|
||||
elem
|
||||
name = "6"
|
||||
command = "subtle"
|
||||
=======
|
||||
>>>>>>> 715de43... VChat: Redone chat output done in Vue.js (#6761)
|
||||
elem
|
||||
name = "A+REP"
|
||||
command = ".moveleft"
|
||||
@@ -1254,10 +1251,7 @@ window "outputwindow"
|
||||
style = ".system {color:#FF0000;}"
|
||||
max-lines = 0
|
||||
saved-params = ""
|
||||
<<<<<<< HEAD
|
||||
=======
|
||||
enable-http-images = true
|
||||
>>>>>>> 715de43... VChat: Redone chat output done in Vue.js (#6761)
|
||||
|
||||
window "rpane"
|
||||
elem "rpane"
|
||||
@@ -1424,10 +1418,6 @@ window "infowindow"
|
||||
is-default = true
|
||||
saved-params = ""
|
||||
highlight-color = #00aa00
|
||||
<<<<<<< HEAD
|
||||
=======
|
||||
allow-html = true
|
||||
>>>>>>> 715de43... VChat: Redone chat output done in Vue.js (#6761)
|
||||
on-show = ".winset\"rpane.infob.is-visible=true;rpane.browseb.is-visible=true?rpane.infob.pos=130,0:rpane.infob.pos=65,0 rpane.textb.is-visible=true rpane.infob.is-checked=true rpane.rpanewindow.pos=0,30 rpane.rpanewindow.size=0x0 rpane.rpanewindow.left=infowindow\""
|
||||
on-hide = ".winset\"rpane.infob.is-visible=false;rpane.browseb.is-visible=true?rpane.browseb.is-checked=true rpane.rpanewindow.left=browserwindow:rpane.textb.is-visible=true rpane.rpanewindow.pos=0,30 rpane.rpanewindow.size=0x0 rpane.rpanewindow.left=\""
|
||||
|
||||
|
||||
@@ -1654,10 +1654,7 @@
|
||||
#include "code\modules\catalogue\catalogue_data_vr.dm"
|
||||
#include "code\modules\catalogue\cataloguer.dm"
|
||||
#include "code\modules\catalogue\cataloguer_visuals.dm"
|
||||
<<<<<<< HEAD:vorestation.dme
|
||||
#include "code\modules\catalogue\cataloguer_vr.dm"
|
||||
=======
|
||||
>>>>>>> 715de43... VChat: Redone chat output done in Vue.js (#6761):polaris.dme
|
||||
#include "code\modules\client\asset_cache.dm"
|
||||
#include "code\modules\client\client defines.dm"
|
||||
#include "code\modules\client\client procs.dm"
|
||||
|
||||
Reference in New Issue
Block a user