varnames
This commit is contained in:
@@ -3,9 +3,9 @@
|
|||||||
set desc = "Open a list of available news channels"
|
set desc = "Open a list of available news channels"
|
||||||
set category = "Ghost"
|
set category = "Ghost"
|
||||||
|
|
||||||
var/datum/browser/popup = new(user, "ghost_news_list", "Chanenl List", 450, 600)
|
var/datum/browser/B = new(src, "ghost_news_list", "Chanenl List", 450, 600)
|
||||||
popup.set_content(render_news_channel_list())
|
B.set_content(render_news_channel_list())
|
||||||
popup.open()
|
B.open()
|
||||||
|
|
||||||
/mob/dead/observer/Topic(href, href_list)
|
/mob/dead/observer/Topic(href, href_list)
|
||||||
. = ..()
|
. = ..()
|
||||||
@@ -15,7 +15,7 @@
|
|||||||
render_news_channel(D)
|
render_news_channel(D)
|
||||||
|
|
||||||
/mob/dead/observer/proc/render_news_channel_list()
|
/mob/dead/observer/proc/render_news_channel_list()
|
||||||
var/datum/news_network = GLOB.news_network
|
var/datum/news_network/news_network = GLOB.news_network
|
||||||
var/list/content = list()
|
var/list/content = list()
|
||||||
for(var/i in news_network.network_channels)
|
for(var/i in news_network.network_channels)
|
||||||
var/datum/news/feed_channel/FC = i
|
var/datum/news/feed_channel/FC = i
|
||||||
@@ -29,7 +29,8 @@
|
|||||||
content += "<FONT COLOR='red'><B>ATTENTION: </B></FONT>This channel has been deemed as threatening to the welfare of the station, and marked with a Nanotrasen D-Notice.<BR>"
|
content += "<FONT COLOR='red'><B>ATTENTION: </B></FONT>This channel has been deemed as threatening to the welfare of the station, and marked with a Nanotrasen D-Notice.<BR>"
|
||||||
content += "No further feed story additions are allowed while the D-Notice is in effect.</FONT><BR><BR>"
|
content += "No further feed story additions are allowed while the D-Notice is in effect.</FONT><BR><BR>"
|
||||||
if(!length(FC.messages))
|
if(!length(FC.messages))
|
||||||
content += "<b>This channel is empty.<b><BR>"
|
content += "<b>This channel is empty.<b><BR>"
|
||||||
|
else
|
||||||
for(var/i in FC.messages)
|
for(var/i in FC.messages)
|
||||||
var/datum/news/feed_message/FM = i
|
var/datum/news/feed_message/FM = i
|
||||||
content += "-[FM.returnBody(-1)] <BR>"
|
content += "-[FM.returnBody(-1)] <BR>"
|
||||||
@@ -41,8 +42,8 @@
|
|||||||
content += "<BR>"
|
content += "<BR>"
|
||||||
content += "<FONT SIZE=1>\[Story by <FONT COLOR='maroon'>[FM.returnAuthor(-1)] </FONT>\] - ([FM.time_stamp])</FONT><BR>"
|
content += "<FONT SIZE=1>\[Story by <FONT COLOR='maroon'>[FM.returnAuthor(-1)] </FONT>\] - ([FM.time_stamp])</FONT><BR>"
|
||||||
content += "<b><font size=1>[FM.comments.len] comment[FM.comments.len > 1 ? "s" : ""]</font></b><br>"
|
content += "<b><font size=1>[FM.comments.len] comment[FM.comments.len > 1 ? "s" : ""]</font></b><br>"
|
||||||
for(var/i in FM.comments)
|
for(var/c in FM.comments)
|
||||||
var/datum/news/feed_comment/comment = i
|
var/datum/news/feed_comment/comment = c
|
||||||
content += "<font size=1><small>[comment.body]</font><br><font size=1><small><small><small>[comment.author] [comment.time_stamp]</small></small></small></small></font><br>"
|
content += "<font size=1><small>[comment.body]</font><br><font size=1><small><small><small>[comment.author] [comment.time_stamp]</small></small></small></small></font><br>"
|
||||||
if(FM.locked)
|
if(FM.locked)
|
||||||
content += "<b>Comments locked</b><br>"
|
content += "<b>Comments locked</b><br>"
|
||||||
|
|||||||
Reference in New Issue
Block a user