mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 02:09:41 +00:00
○ Fixes for announcements and comm consoles.
○ FINALLY FIXED THE REQUEST CONSOLES BEING SHITTY WOOOOOOOO ○ You can now do line breaks in the admin centcom announcements, just simply hit enter. ○ You can now name portable / constructed turrets properly by using a pen on their frame before you finalize the construction. Joy! git-svn-id: http://tgstation13.googlecode.com/svn/trunk@2449 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
/proc/captain_announce(var/text)
|
||||
world << "<h1 class='alert'>Captain Announces</h1>"
|
||||
|
||||
world << "<span class='alert'>[sanitize(text)]</span>"
|
||||
world << "<span class='alert'>[html_encode(text)]</span>"
|
||||
world << "<br>"
|
||||
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
world << "<h1 class='alert'>[command_name()] Update</h1>"
|
||||
|
||||
if (title && length(title) > 0)
|
||||
world << "<h2 class='alert'>[sanitize(title)]</h2>"
|
||||
world << "<h2 class='alert'>[html_encode(title)]</h2>"
|
||||
|
||||
world << "<span class='alert'>[sanitize(text)]</span>"
|
||||
world << "<span class='alert'>[html_encode(text)]</span>"
|
||||
world << "<br>"
|
||||
|
||||
|
||||
@@ -694,6 +694,7 @@ Neutralize All Unidentified Life Signs: []<BR>"},
|
||||
|
||||
Turret.cover=new/obj/machinery/porta_turret_cover(src.loc)
|
||||
Turret.cover.Parent_Turret=Turret
|
||||
Turret.cover.name = finish_name
|
||||
del(src)
|
||||
|
||||
else if(istype(W, /obj/item/weapon/crowbar))
|
||||
|
||||
@@ -207,7 +207,7 @@ var/list/obj/machinery/requests_console/allConsoles = list()
|
||||
screen = 0
|
||||
priority = -1
|
||||
if(href_list["writeAnnouncement"])
|
||||
src.message = strip_html(input(usr, "Write your message", "Messanger", ""))
|
||||
src.message = input(usr, "Write your message", "Messanger", "")
|
||||
src.priority = href_list["priority"]
|
||||
while (findtext(src.message," ") == 1)
|
||||
src.message = copytext(src.message,2,lentext(src.message)+1)
|
||||
@@ -217,8 +217,7 @@ var/list/obj/machinery/requests_console/allConsoles = list()
|
||||
announceAuth = 0;
|
||||
screen = 0
|
||||
if(href_list["sendAnnouncement"])
|
||||
src.message = strip_html(message)
|
||||
world << "<b><font color='red' size='3'>[department] announcement:</font> <font color='black' size='3'>[sanitize(message)]</font></b>"
|
||||
world << "<b><font size = 3> <font color = red>[department] announcement:</font color> [html_encode(message)]</font size></b>"
|
||||
announceAuth = 0
|
||||
message = ""
|
||||
screen = 0
|
||||
|
||||
@@ -66,6 +66,7 @@ should be listed in the changelog upon commit tho. Thanks. -->
|
||||
<li><b>Doohl updated:</b>
|
||||
<ul>
|
||||
<li>More hairs added and a very long beard.</li>
|
||||
<li>Finally fixed the request console announcements going <b><font color = red>AMP AMP AMP</font color></b> all the time when you use punctuation.</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
Reference in New Issue
Block a user