mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 04:30:44 +01:00
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:
co-authored by
Mothblocks
AnturK
iamgoofball
Aleksej Komarov
KubeRoot
Kapu1178
Iamgoofball
DomitiusKnack
LemonInTheDark
Wallem
parent
5b77b9e44e
commit
acfa5e4fdd
@@ -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
|
||||
|
||||
@@ -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))
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user