/client
Vars | |
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 |
saturation_matrix | saturation_matrix: the client's game saturation color_matrix: the client's game color (tint) |
tgui_cache_reloaded | global |
tgui_windows | global |
Procs | |
TestMarketReq | Proc to test a standard market contract for functionality. Test special orders with random event trigger instead. |
apply_keybind | |
apply_keys | |
build_list | Iteratively build a new list, then return it. |
check_newbee | marks a player as a newbee if they are below the newbee rounds threshold. Grants them various new player indicators. |
cmd_admin_show_player_stats | A bunch of procs for showing admins player data from the central API databases |
enable_waterflow | mob/EnteredAirborneFluid(obj/fluid/F as obj, atom/oldloc) |
flash_window | Flashes the window in the Windows titlebar |
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 | |
has_login_notice_pending | Returns 1 if a login message is pending, 0 otherwise |
input_data | For inputting data for things like edit-variables, proccall, etc Generally you should only use the associated defines for allowed_types. However, you CAN display anything as a choice for the user, allowing for custom prompts for specific cases. Just make sure the caller can handle the case! @param allowed_types The types of input which are allowed, which the user selects from. The selected type is returned as part of the data_input_result @param custom_title If not null, set as the title for the input @param custom_text If not null, set as the text for the input @param default The default value, if default_type is chosen as the input type @param default_type The default input type @param custom_type_title If not null, set as the title for input type selection @param custom_type_message If not null, set as the text for input type selection @return A data_input_result with the parsed input and the selected input type, or both null if we didn't get any data |
playAmbience | |
setVolume | Sets and applies the volume for a channel (0-1) |
show_login_notice | Shows a login notice, if one exists |
spawn_custom_transmutation | Spawn custom reagent that can transform turfs and objs to whatever material you desire. |
suggest_input_type | Get a suggested input type based on the thing you're editing @param var_value The value to evaluate @param varname The name of the variable @return Suggested input type for input_data() |
uiclose | verb |
viewnewvote | /mob/verb/vote_new() set name = "Initiate Vote" |
vpn_bonk | boots player and displays VPN message |
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
saturation_matrix
saturation_matrix: the client's game saturation color_matrix: the client's game color (tint)
tgui_cache_reloaded
global
TRUE if cache was reloaded by tgui dev server at least once.
tgui_windows
global
Tracks open windows for a user.
Proc Details
TestMarketReq
Proc to test a standard market contract for functionality. Test special orders with random event trigger instead.
Will add the contract to requisitions list and pin the contract, ignoring the one-pin limit or any contract type pin restrictions. Don't use this in live rounds, pin behavior will be wonky.
apply_keybind
- apply_keybind: Takes a given string style, and finds the datum, then applies it.
- External use only.
- This is what external stuff should be calling when applying their additive styles.
apply_keys
- apply_keys: Takes a keybind_style to apply to the src client
- Internal use only.
- Merges the given keybind_style onto the client. Also adds it to the client's tracking list.
build_list
Iteratively build a new list, then return it.
check_newbee
marks a player as a newbee if they are below the newbee rounds threshold. Grants them various new player indicators.
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)
flash_window
Flashes the window in the Windows titlebar
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
- get_keybind_style_datum: Given the string name of a style, finds the keybind_style with the matching name.
- Internal use only.
- Called by apply_keybind to fetch our datum.
has_login_notice_pending
Returns 1 if a login message is pending, 0 otherwise
input_data
For inputting data for things like edit-variables, proccall, etc Generally you should only use the associated defines for allowed_types. However, you CAN display anything as a choice for the user, allowing for custom prompts for specific cases. Just make sure the caller can handle the case! @param allowed_types The types of input which are allowed, which the user selects from. The selected type is returned as part of the data_input_result @param custom_title If not null, set as the title for the input @param custom_text If not null, set as the text for the input @param default The default value, if default_type is chosen as the input type @param default_type The default input type @param custom_type_title If not null, set as the title for input type selection @param custom_type_message If not null, set as the text for input type selection @return A data_input_result with the parsed input and the selected input type, or both null if we didn't get any data
playAmbience
* Client part of the Area Ambience Project
* Calling this proc is handled by the Area our client is in, see [area/proc/Exited()] and [area/proc/Entered()]
* LOOPING channel sound will keep playing until fed a pass_volume of 0 (done automagically)
* For FX sounds, they will play once.
* FX_1 is area-specific background noise handled by area/pickAmbience(), FX_2 is more noticeable stuff directly triggered, normally shorter
setVolume
Sets and applies the volume for a channel (0-1)
show_login_notice
Shows a login notice, if one exists
spawn_custom_transmutation
Spawn custom reagent that can transform turfs and objs to whatever material you desire.
suggest_input_type
Get a suggested input type based on the thing you're editing @param var_value The value to evaluate @param varname The name of the variable @return Suggested input type for input_data()
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_ALERT("Player voting disabled."))
// return
if(!ticker)
boutput(src, SPAN_ALERT("Can not start votes before the game starts."))
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_ALERT("You may not start any more votes this round. (Maximum reached : [max_votes_per_round])"))
else
if(vote_manager.show_vote_selection(src.client)) vote_log[src.ckey] = 1
vpn_bonk
boots player and displays VPN message