initial commit
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
/datum/newscaster/feed_message
|
||||
var/author =""
|
||||
var/body =""
|
||||
var/list/authorCensorTime = list()
|
||||
var/list/bodyCensorTime = list()
|
||||
var/is_admin_message = 0
|
||||
var/icon/img = null
|
||||
var/time_stamp = ""
|
||||
var/list/datum/newscaster/feed_comment/comments = list()
|
||||
var/locked = FALSE
|
||||
var/caption = ""
|
||||
var/creationTime
|
||||
var/authorCensor
|
||||
var/bodyCensor
|
||||
var/photo_file
|
||||
|
||||
/datum/newscaster/feed_message/proc/returnAuthor(censor)
|
||||
if(censor == -1)
|
||||
censor = authorCensor
|
||||
var/txt = "[GLOB.news_network.redactedText]"
|
||||
if(!censor)
|
||||
txt = author
|
||||
return txt
|
||||
|
||||
/datum/newscaster/feed_message/proc/returnBody(censor)
|
||||
if(censor == -1)
|
||||
censor = bodyCensor
|
||||
var/txt = "[GLOB.news_network.redactedText]"
|
||||
if(!censor)
|
||||
txt = body
|
||||
return txt
|
||||
|
||||
/datum/newscaster/feed_message/proc/toggleCensorAuthor()
|
||||
if(authorCensor)
|
||||
authorCensorTime.Add(GLOB.news_network.lastAction*-1)
|
||||
else
|
||||
authorCensorTime.Add(GLOB.news_network.lastAction)
|
||||
authorCensor = !authorCensor
|
||||
GLOB.news_network.lastAction ++
|
||||
|
||||
/datum/newscaster/feed_message/proc/toggleCensorBody()
|
||||
if(bodyCensor)
|
||||
bodyCensorTime.Add(GLOB.news_network.lastAction*-1)
|
||||
else
|
||||
bodyCensorTime.Add(GLOB.news_network.lastAction)
|
||||
bodyCensor = !bodyCensor
|
||||
GLOB.news_network.lastAction ++
|
||||
Reference in New Issue
Block a user