TGUI Say: Upgrades chat input with modern features (#67116)

Co-authored-by: Mothblocks <35135081+Mothblocks@users.noreply.github.com>
Co-authored-by: AnturK <AnturK@users.noreply.github.com>
Co-authored-by: iamgoofball <iamgoofball@gmail.com>
Co-authored-by: Aleksej Komarov <stylemistake@gmail.com>
Co-authored-by: KubeRoot <6917698+KubeRoot@users.noreply.github.com>
Co-authored-by: Kapu1178 <75460809+Kapu1178@users.noreply.github.com>
Co-authored-by: Iamgoofball <4081722+Iamgoofball@users.noreply.github.com>
Co-authored-by: DomitiusKnack <56321744+DomitiusKnack@users.noreply.github.com>
Co-authored-by: LemonInTheDark <58055496+LemonInTheDark@users.noreply.github.com>
Co-authored-by: Wallem <66052067+Wallemations@users.noreply.github.com>
This commit is contained in:
Jeremiah
2022-06-16 17:21:21 -07:00
committed by GitHub
co-authored by Mothblocks AnturK iamgoofball Aleksej Komarov KubeRoot Kapu1178 Iamgoofball DomitiusKnack LemonInTheDark Wallem
parent 5b77b9e44e
commit acfa5e4fdd
68 changed files with 1990 additions and 622 deletions
+3
View File
@@ -251,3 +251,6 @@
/// If this client has been fully initialized or not
var/fully_created = FALSE
/// Does this client have typing indicators enabled?
var/typing_indicators = FALSE
+16 -6
View File
@@ -219,6 +219,8 @@ GLOBAL_LIST_INIT(blacklisted_builds, list(
// Instantiate tgui panel
tgui_panel = new(src, "browseroutput")
tgui_say = new(src, "tgui_say")
set_right_click_menu_mode(TRUE)
GLOB.ahelp_tickets.ClientLogin(src)
@@ -353,6 +355,8 @@ GLOBAL_LIST_INIT(blacklisted_builds, list(
// Initialize tgui panel
tgui_panel.initialize()
tgui_say.initialize()
if(alert_mob_dupe_login && !holder)
var/dupe_login_message = "Your ComputerID has already logged in with another key this round, please log out of this one NOW or risk being banned!"
if (alert_admin_multikey)
@@ -1031,12 +1035,18 @@ GLOBAL_LIST_INIT(blacklisted_builds, list(
movement_keys[key] = WEST
if("South")
movement_keys[key] = SOUTH
if("Say")
winset(src, "default-[REF(key)]", "parent=default;name=[key];command=say")
if("OOC")
winset(src, "default-[REF(key)]", "parent=default;name=[key];command=ooc")
if("Me")
winset(src, "default-[REF(key)]", "parent=default;name=[key];command=me")
if(SAY_CHANNEL)
var/say = tgui_say_create_open_command(SAY_CHANNEL)
winset(src, "default-[REF(key)]", "parent=default;name=[key];command=[say]")
if(RADIO_CHANNEL)
var/radio = tgui_say_create_open_command(RADIO_CHANNEL)
winset(src, "default-[REF(key)]", "parent=default;name=[key];command=[radio]")
if(ME_CHANNEL)
var/me = tgui_say_create_open_command(ME_CHANNEL)
winset(src, "default-[REF(key)]", "parent=default;name=[key];command=[me]")
if(OOC_CHANNEL)
var/ooc = tgui_say_create_open_command(OOC_CHANNEL)
winset(src, "default-[REF(key)]", "parent=default;name=[key];command=[ooc]")
/client/proc/change_view(new_size)
if (isnull(new_size))
+10
View File
@@ -47,3 +47,13 @@
for (var/datum/tgui/tgui as anything in client.mob?.tgui_open_uis)
// Force it to reload either way
tgui.update_static_data(client.mob)
/// Light mode for tgui say
/datum/preference/toggle/tgui_say_light_mode
category = PREFERENCE_CATEGORY_GAME_PREFERENCES
savefile_key = "tgui_say_light_mode"
savefile_identifier = PREFERENCE_PLAYER
default_value = FALSE
/datum/preference/toggle/tgui_say_light_mode/apply_to_client(client/client)
client.tgui_say?.load()