Commit Graph

23 Commits

Author SHA1 Message Date
RedFoxIV
aed54f75fb Add Chatstack (#1422)
# Description

Chatstack.

Can be changed/disabled in settings, and the chat automatically updates
to reflect the change.
Does not interfere with filters, etc.
Also updated ChatMessage class and serverside IChatManager with a new
IgnoreChatStack bool option, default false.

Currently is limited to looking up to 3 messages behind, only because I
feel off adding a textbox to the options.

---

# TODO

- [x] Make sure it works
- [x] Add it to settings
---

<details><summary><h1>Media</h1></summary>
<p>

![image](https://github.com/user-attachments/assets/e020bb35-3bac-4620-80d1-3dbd9dee2d1c)

[ee.webm](https://github.com/user-attachments/assets/bf1c92f0-b52a-47a0-b142-70b1ee5003cc)

</p>
</details>

---

# Changelog

🆑
- add: Chatstack. Look for it in Options under "General -
Accessibility".

---------

Co-authored-by: sleepyyapril <123355664+sleepyyapril@users.noreply.github.com>

(cherry picked from commit 78edbab4308bcef190fe387d36df79d90200e084)
2025-01-14 01:19:23 +03:00
Spatison
45efde8197 Revert "Вы указываете на святая ручная граната. x99! (#224)"
This reverts commit b1ce248e2f.
2025-01-14 01:14:48 +03:00
RedFoxIV
b1ce248e2f Вы указываете на святая ручная граната. x99! (#224)
* single commit challenge

* потерялось

* Popup duplicate stacking (#27978)

(cherry picked from commit 49982acc883f3acdd3e5bf6cc8027cac3ba03f7f)

# Conflicts:
#	Content.Client/Popups/PopupSystem.cs

* чтобы не пропускало сообщения в чате

* наводим красоту

* всё-таки выношу в локализацию

* не работает

* spacebar

* ясн

---------

Co-authored-by: ShadowCommander <10494922+ShadowCommander@users.noreply.github.com>
2024-12-31 10:36:54 +10:00
Sk1tch
88ba74a3c3 Added chat window transparency slider to options (#24990)
* Adds a new slider to the misc tab in options that lets the player set chat window transparency

* Tweaked variable names

* Fixed order to match UI

* Renamed set chat window transparency function

* Changed and refactored to opacity instead of transparency

* Remove unnecessary int to float conversions

Slider used to be 0-100 while the CCVar was 0.0-1.0f. This is confusing and was only used for rounding to 2 decimal points.

* Round the value to two decimal points

* Remove rounding for now

* Rename

* Unhardcode chat color by moving to stylesheet

* Fix indent

* Make opacity slider only change opacity

---------

Co-authored-by: Your Name <you@example.com>
Co-authored-by: ShadowCommander <10494922+ShadowCommander@users.noreply.github.com>
2024-07-11 21:19:13 -07:00
Pieter-Jan Briers
ccea85136b Random spontaneous cleanup PR (#25131)
* Use new Subs.CVar helper

Removes manual config OnValueChanged calls, removes need to remember to manually unsubscribe.

This both reduces boilerplate and fixes many issues where subscriptions weren't removed on entity system shutdown.

* Fix a bunch of warnings

* More warning fixes

* Use new DateTime serializer to get rid of ISerializationHooks in changelog code.

* Get rid of some more ISerializationHooks for enums

* And a little more

* Apply suggestions from code review

Co-authored-by: 0x6273 <0x40@keemail.me>

---------

Co-authored-by: 0x6273 <0x40@keemail.me>
(cherry picked from commit 68ce53ae17985876d6d112b764b2144964a9f42e)
2024-02-18 23:02:29 +01:00
Nemanja
fea640584d make newchat box more opaque (#24555)
(cherry picked from commit 6605b7ba5023c01f3ac590bfda089e0291bbb7f9)
2024-01-28 00:27:31 +01:00
Pieter-Jan Briers
45591a383f More UI fixes (#22431)
* Fix chat filter button

Oh look, the popup code was copy pasted between chat filter and channel selector.

Hilarious.

Anyways same stuff as 995f506aafd770dd6572dfc9e7bf9e18186e485a. I pulled it all out into a base class so NO MORE COPY PASTE.

Fixes #22360

* Remove all further EnableAllKeybinds buttons.

Fixes #22346

Yeah none of these are valid use cases, why is this set...
2023-12-16 20:15:24 +01:00
metalgearsloth
b1ee2d48ff Unrevert audio (#21330)
Co-authored-by: Pieter-Jan Briers <pieterjan.briers@gmail.com>
2023-12-02 20:16:36 +01:00
DrSmugleaf
253e012462 Add admin Erase verb, add checkbox to erase from the ban panel (#20985) 2023-10-14 22:19:04 +02:00
Vasilis
5344f2bc26 :( (#20440) 2023-09-27 21:59:12 +02:00
Vasilis
e0988e5c6f Remove cringe hardcodes for background (#20374) 2023-09-27 21:59:12 +02:00
Pieter-Jan Briers
73996d17e4 Remove accidental using directives on transient dependencies. (#18999) 2023-08-11 16:56:40 -05:00
metalgearsloth
68480af109 Update content vectors to numerics (#17759) 2023-07-08 14:08:32 +10:00
metalgearsloth
5b9705bc4d Add margins to chat (#14875)
* Add margins to chat

* a
2023-03-26 09:57:29 -05:00
Flipp Syder
ec3a519a46 Store chat size (#14299) 2023-03-06 11:06:57 -08:00
Leon Friedrich
75a559fa55 Update radio prefix parsing (#13777) 2023-02-19 04:27:56 +11:00
Leon Friedrich
f1cb0ca37a Misc replay related changes (#13250) 2023-01-08 05:04:09 +11:00
Chief-Engineer
5ece9bd9e8 Modify admin chat (#13050)
* split admin chat into new channel

* add ability to play audio when a chat message is received and add audio to admin chat

* give client control of AdminChat sound and volume + suppress sound for senders
2022-12-19 21:39:01 -06:00
jicksaw
5fedbf329f Clear chat input when focus is released with Esc (#12823) 2022-12-02 17:15:59 -08:00
Leon Friedrich
6af331c9ff Remove StoredChatMessage (#12623) 2022-11-22 22:52:19 +11:00
Leon Friedrich
3aeba9a63e Fix chat sanitization and entity name escaping (#12015) 2022-10-17 23:59:09 -07:00
Flipp Syder
a3dafd88dc Oldchat (#11913)
* attempt at moving MainViewport to UIWidget

* oldchat (prototype)

* separate oldchat and default ss14 HUD into their own files

* restores original default game screen logic and adds that logic into separated chat game screen

* hand reloading, several tweaks to port oldchat to main ss14 branch

oldchat is currently not selectable

* screen type cvar, gameplay state screen reloading/loading

* reload screen on ui layout cvar change

* fixes up basic reloading (HUD switching is still very bad)

* some UI widget reloading for main UI screen switching

* alert sync on screen change

* inventory reload

* hotbar margin fix

* chat bubbles above viewport

* whoops

* fixes ordering of speech bubble root

* should fix the chat focus issue (at least in-game, not lobby yet)

* should fix up the lobby/game chat focus

* fixes chat for lobby, turns lobby into a UI state

* viewport UI controller

* viewport ratio selection

* whoops

* adds the /tg/ widescreen ratio

* removes warning from inventory UI controller, adds background to separated chat game screen's chat portion

* menu button reload

* unload menu buttons only from gameplay state shutdown

* bugfix

* character button fix

* adds config options for viewport width/UI layout

* variable naming changes, get or null instead of get to avoid exceptions

* moves entity system get into controller
2022-10-17 17:13:41 -05:00
Jezithyr
571dd4e6d5 Hud refactor (#7202)
Co-authored-by: DrSmugleaf <DrSmugleaf@users.noreply.github.com>
Co-authored-by: Jezithyr <jmaster9999@gmail.com>
Co-authored-by: Jezithyr <Jezithyr@gmail.com>
Co-authored-by: Visne <39844191+Visne@users.noreply.github.com>
Co-authored-by: wrexbe <wrexbe@protonmail.com>
Co-authored-by: wrexbe <81056464+wrexbe@users.noreply.github.com>
2022-10-12 10:16:23 +02:00