Goonstation 13 - Modules - TypesVar Details - Proc Details

/client

Vars

applied_keybind_stylesList on each client containing the styles we've applied so we don't double-apply.
refresh_varedit_onchangecontrols whether or not the varedit page is refreshed after altering variables
tgui_windowsglobal

Procs

apply_keybind
apply_keys
cloud_availableReturns 1 if you can set or retrieve cloud data on the client
cloud_getReturns some cloud data on the client
cloud_putSets a cloud key value pair and sends it to goonhub
cmd_admin_show_player_statsA bunch of procs for showing admins player data from the central API databases
enable_waterflowmob/EnteredAirborneFluid(obj/fluid/F as obj, atom/oldloc)
getDefaultVolumeReturns the default volume for a channel, unattenuated for the master channel (0-1)
getMasterVolumeReturns the master volume (0-1)
getRealVolumeReturns the true volume for a channel, unattenuated for the master channel (0-1)
getVolumeReturns the volume to set /sound/var/volume to for the given channel(so 0-100)
getVolumeChannelDescriptionGet the friendly description for a specific sound channel.
getVolumeDescriptionsReturns a list of friendly descriptions for available sound channels
getVolumeNamesReturns a list of friendly names for available sound channels
get_keybind_style_datum
playAmbience
setVolumeSets and applies the volume for a channel (0-1)
uicloseverb
viewnewvote/mob/verb/vote_new() set name = "Initiate Vote"

Var Details

applied_keybind_styles

List on each client containing the styles we've applied so we don't double-apply.

refresh_varedit_onchange

controls whether or not the varedit page is refreshed after altering variables

tgui_windows

global

Tracks open windows for a user.

Proc Details

apply_keybind

apply_keys

cloud_available

Returns 1 if you can set or retrieve cloud data on the client

cloud_get

Returns some cloud data on the client

cloud_put

Sets a cloud key value pair and sends it to goonhub

cmd_admin_show_player_stats

A bunch of procs for showing admins player data from the central API databases

Verbs

enable_waterflow

mob/EnteredAirborneFluid(obj/fluid/F as obj, atom/oldloc)

getDefaultVolume

Returns the default volume for a channel, unattenuated for the master channel (0-1)

getMasterVolume

Returns the master volume (0-1)

getRealVolume

Returns the true volume for a channel, unattenuated for the master channel (0-1)

getVolume

Returns the volume to set /sound/var/volume to for the given channel(so 0-100)

getVolumeChannelDescription

Get the friendly description for a specific sound channel.

getVolumeDescriptions

Returns a list of friendly descriptions for available sound channels

getVolumeNames

Returns a list of friendly names for available sound channels

get_keybind_style_datum

playAmbience

setVolume

Sets and applies the volume for a channel (0-1)

uiclose

verb

Called by UIs when they are closed. Must be a verb so winset() can call it.

required uiref ref The UI that was closed.

viewnewvote

/mob/verb/vote_new() set name = "Initiate Vote"

//if(!config.allow_vote_restart && !config.allow_vote_mode && !src.client.holder)
//	boutput(src, "<span class='alert'>Player voting disabled.</span>")
//	return
if(!ticker)
	boutput(src, "<span class='alert'>Can not start votes before the game starts.</span>")
	return
if(!vote_manager) return //shits hitting the fan at ludicrous speeds
if(vote_manager.active_vote) vote_manager.show_vote(src.client)
else
	if(src.ckey in vote_log)
		if(vote_log[src.ckey] < max_votes_per_round)
			if(vote_manager.show_vote_selection(src.client)) vote_log[src.ckey]++
		else
			boutput(src, "<span class='alert'>You may not start any more votes this round. (Maximum reached : [max_votes_per_round])</span>")
	else
		if(vote_manager.show_vote_selection(src.client)) vote_log[src.ckey] = 1