Files

27 lines
7.2 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><base href="../../../"><link rel="stylesheet" href="dmdoc.css"><title>/datum/controller/subsystem/tickets - Space Station 13</title></head><body><header><a href="index.html">Space Station 13</a> - <a href="index.html#modules">Modules</a> - <a href="index.html#types">Types</a><a href="datum/controller/subsystem/tickets.html#var">Var Details</a> - <a href="datum/controller/subsystem/tickets.html#proc">Proc Details</a></header><main><h1>tickets <aside>/<a href="datum.html">datum</a>/<a href="datum/controller.html">controller</a>/<a href="datum/controller/subsystem.html">subsystem</a>/<a href="datum/controller/subsystem/tickets.html">tickets</a></aside> <a href="https://github.com/ParadiseSS13/Paradise/blob/edee60476d21ee840643bd1abe7f6003a8c65773/code/controllers/subsystem/tickets/SStickets.dm#L4"><img src="git.png" width="16" height="16" title="code/controllers/subsystem/tickets/SStickets.dm 4"></a></h1><table class="summary" cellspacing="0"><tr><td colspan="2"><h2>Vars</h2></td></tr><tr><th><a href="datum/controller/subsystem/tickets.html#var/anchor_link_extra">anchor_link_extra</a></th><td>Text that will be added to the anchor link</td></tr><tr><th><a href="datum/controller/subsystem/tickets.html#var/db_save_id">db_save_id</a></th><td>DB ID for these tickets to be logged with</td></tr><tr><th><a href="datum/controller/subsystem/tickets.html#var/open_detail_uis">open_detail_uis</a></th><td>Who has what tickets open? Maps client -&gt; open ticket number.</td></tr><tr><th><a href="datum/controller/subsystem/tickets.html#var/other_ticket_name">other_ticket_name</a></th><td>The name of the other ticket type to convert to</td></tr><tr><th><a href="datum/controller/subsystem/tickets.html#var/other_ticket_permission">other_ticket_permission</a></th><td>Which permission to look for when seeing if there is staff available for the other ticket type</td></tr><tr><td colspan="2"><h2>Procs</h2></td></tr><tr><th><a href="datum/controller/subsystem/tickets.html#proc/makeUrlMessage">makeUrlMessage</a></th><td>Will add the URLs usable by staff to the message and return it
Arguments:
C - The client who send the message
msg - The raw message
ticketNum - Which ticket number the ticket has</td></tr><tr><th><a href="datum/controller/subsystem/tickets.html#proc/message_staff">message_staff</a></th><td>Sends a message to the designated staff
Arguments:
msg - The message being send
alt - If an alternative prefix should be used or not. Defaults to TICKET_STAFF_MESSAGE_PREFIX
important - If the message is important. If TRUE it will ignore the CHAT_NO_TICKETLOGS preferences,
send a sound and flash the window. Defaults to FALSE</td></tr><tr><th><a href="datum/controller/subsystem/tickets.html#proc/newHelpRequest">newHelpRequest</a></th><td>Will either make a new ticket using the given text or will add the text to an existing ticket.
Staff will get a message
Arguments:
C - The client who requests help
text - The text the client send</td></tr></table><h2 id="var">Var Details</h2><h3 id="var/anchor_link_extra"><aside class="declaration">var </aside>anchor_link_extra <a href="https://github.com/ParadiseSS13/Paradise/blob/edee60476d21ee840643bd1abe7f6003a8c65773/code/controllers/subsystem/tickets/SStickets.dm#L19"><img src="git.png" width="16" height="16" title="code/controllers/subsystem/tickets/SStickets.dm 19"></a></h3><p>Text that will be added to the anchor link</p><h3 id="var/db_save_id"><aside class="declaration">var </aside>db_save_id <a href="https://github.com/ParadiseSS13/Paradise/blob/edee60476d21ee840643bd1abe7f6003a8c65773/code/controllers/subsystem/tickets/SStickets.dm#L33"><img src="git.png" width="16" height="16" title="code/controllers/subsystem/tickets/SStickets.dm 33"></a></h3><p>DB ID for these tickets to be logged with</p><h3 id="var/open_detail_uis"><aside class="declaration">var </aside>open_detail_uis <aside> /list</aside> <a href="https://github.com/ParadiseSS13/Paradise/blob/edee60476d21ee840643bd1abe7f6003a8c65773/code/controllers/subsystem/tickets/SStickets.dm#L41"><img src="git.png" width="16" height="16" title="code/controllers/subsystem/tickets/SStickets.dm 41"></a></h3><p>Who has what tickets open? Maps client -&gt; open ticket number.</p><h3 id="var/other_ticket_name"><aside class="declaration">var </aside>other_ticket_name <a href="https://github.com/ParadiseSS13/Paradise/blob/edee60476d21ee840643bd1abe7f6003a8c65773/code/controllers/subsystem/tickets/SStickets.dm#L24"><img src="git.png" width="16" height="16" title="code/controllers/subsystem/tickets/SStickets.dm 24"></a></h3><p>The name of the other ticket type to convert to</p><h3 id="var/other_ticket_permission"><aside class="declaration">var </aside>other_ticket_permission <a href="https://github.com/ParadiseSS13/Paradise/blob/edee60476d21ee840643bd1abe7f6003a8c65773/code/controllers/subsystem/tickets/SStickets.dm#L26"><img src="git.png" width="16" height="16" title="code/controllers/subsystem/tickets/SStickets.dm 26"></a></h3><p>Which permission to look for when seeing if there is staff available for the other ticket type</p><h2 id="proc">Proc Details</h2><h3 id="proc/makeUrlMessage"><aside class="declaration">proc </aside>makeUrlMessage<aside>(target, msg, ticketNum, one_line) <a href="https://github.com/ParadiseSS13/Paradise/blob/edee60476d21ee840643bd1abe7f6003a8c65773/code/controllers/subsystem/tickets/SStickets.dm#L145"><img src="git.png" width="16" height="16" title="code/controllers/subsystem/tickets/SStickets.dm 145"></a></aside></h3><p>Will add the URLs usable by staff to the message and return it
Arguments:
C - The client who send the message
msg - The raw message
ticketNum - Which ticket number the ticket has</p><h3 id="proc/message_staff"><aside class="declaration">proc </aside>message_staff<aside>(msg, prefix_type, important) <a href="https://github.com/ParadiseSS13/Paradise/blob/edee60476d21ee840643bd1abe7f6003a8c65773/code/controllers/subsystem/tickets/SStickets.dm#L669"><img src="git.png" width="16" height="16" title="code/controllers/subsystem/tickets/SStickets.dm 669"></a></aside></h3><p>Sends a message to the designated staff
Arguments:
msg - The message being send
alt - If an alternative prefix should be used or not. Defaults to TICKET_STAFF_MESSAGE_PREFIX
important - If the message is important. If TRUE it will ignore the CHAT_NO_TICKETLOGS preferences,
send a sound and flash the window. Defaults to FALSE</p><h3 id="proc/newHelpRequest"><aside class="declaration">proc </aside>newHelpRequest<aside>(/<a href="client.html">client</a>/C, text) <a href="https://github.com/ParadiseSS13/Paradise/blob/edee60476d21ee840643bd1abe7f6003a8c65773/code/controllers/subsystem/tickets/SStickets.dm#L123"><img src="git.png" width="16" height="16" title="code/controllers/subsystem/tickets/SStickets.dm 123"></a></aside></h3><p>Will either make a new ticket using the given text or will add the text to an existing ticket.
Staff will get a message
Arguments:
C - The client who requests help
text - The text the client send</p></main><footer>paradise.dme <a href="https://github.com/ParadiseSS13/Paradise/tree/edee60476d21ee840643bd1abe7f6003a8c65773">edee604</a> (master) — <a href="https://github.com/SpaceManiac/SpacemanDMM/blob/master/crates/dmdoc/README.md">dmdoc 1.11.0</a></footer></body></html>