Commit Graph

686 Commits

Author SHA1 Message Date
Fildrance 0e022994cb refactor: simple radial menu for easier creation (#34639)
* it works! kinda

* so it works now

* minor cleanup

* central button now is useful too

* more cleanup

* minor cleanup

* more cleanup

* refactor: migrated code from toolbox (as it was rejected as too specific)

* feat: moved border drawing for radial menu into RadialMenuTextureButton. Radial menu position setting into was moved to OverrideArrange to not being called on every frame

* refactor: major reworks!

* renamed DrawBagleSector to DrawAnnulusSector

* Remove strange indexing

* Regularize math

* refactor: re-orienting segment elements to be Y-mirrored

* refactor: extracted radial menu radius multiplier property, changed color pallet for radial menu button

* refactor: removed icon backgrounds on textures used in current radial menu buttons with sectors, RadialContainer Radius renamed and now actually changed control radius.

* refactor: in RadialMenuTextureButtonWithSector all sector colors are converted to and from sRGB in property getter-setters

* refactor: renamed srgb to include Srgb suffix so devs gonna see that its srgb clearly

* fix: enabled any functional keys pressed when pushing radial menu buttons

* fix: radial menu sector now scales with UIScale

* fix: accept only one event when clicking on radial menu ContextualButton

* fix: now radial menu buttons accepts only click/alt-click, now clicks outside menu closes menu always

* feat: simple radial menu prototype for easier creation

* refactor: cleanup, restored emote filtering, button models now have class hierarchy

* refactor: remove usage of closure from 'outside code'

* refactor: remove non existing type from UiControlTest

* refactor: remove unused using

* refactor: revert ability to declare radial menu layers in xaml, scale 32px sprites using scale in radial menu

* refactor: whitespaces

* refactor: subscribe for dispose on existing radial menus

* feat: now simple radial menu button models can have custom color for each sector background (and hover background color). Also added OpenOverMouseScreenPosition inside SimpleRadialMenu

* fix: AI door menu now can be closed by verb if it gets unpowered

* refactor: simplify hiding border, extended xml-doc for simple radial menu settings

* refactor: remove linq

* fix: fix AI radial action serialization using invalid type

* refactor: fix duplicate ShowDeviceNotRespondingPopup for AI by properly checking if it can interact

* refactor: whitespaces, changed list to array in simple radial button preparing methods

---------

Co-authored-by: pa.pecherskij <pa.pecherskij@interfax.ru>
Co-authored-by: Eoin Mcloughlin <helloworld@eoinrul.es>
2025-04-06 20:52:12 +01:00
metalgearsloth 0fdb024752 Add BUI ctor tests (#31463)
5 lines of eaten iocmanager.injectdependencies led to this.
2025-04-06 20:52:00 +01:00
Tobias Berger 788d43ad99
Message highlights (#2990)
* Merge pull request impstation/imp-station-14#468 from hivehum/highlight

Add text highlighting

(cherry picked from commit e442cc4bb20fbb4d5b970275c82cc87508e6f687)

* More cleanly separate auto-generated and manual highlights

Edge case that's not handled: Closing and reopening the game drops the list of auto-generated highlights

* Use LocalizedDatasets to make higlight lists for all jobs

* DeltaV-ification

Since the implementation is now fundamentally incompatible
with the (still open) upstream PR, move to our own cvars

* Try to untroll code

* Untroll

* Untroll for real this time

* Fix wrong count in ChatHighlightBorg

* Escape highlights

Depends on space-wizards/RobustToolbox/pull/5688

* add missing using directive

* Fix failing test

* Rename CVars to avoid clash with previous implementation

* Tidy some stuff up

* Show auto highlights

* Remove redundant check

---------

Co-authored-by: V <97265903+formlessnameless@users.noreply.github.com>
2025-04-04 17:18:19 +01:00
Dakota 72200dd577 feat: Ghost Role Button only turns red when new ghost roles are added (#35970)
* feat: Ghost Role Button only turns red when new ghost roles are added

* fix: Make _prevNumberRoles private
2025-03-23 16:19:05 +00:00
metalgearsloth 8850b504cc Sloth's subfloor vismask adventure (#35347)
* Add a subfloor vismask

Significantly cuts down on sent entity count.

* More optimisations

* Fix command

* Fixes

* namespace cleanup

* Review

* Vismasks

* Content update

* Bandaid

* awewa

* Revert these

* reh

* Update Content.Shared/SubFloor/TrayScannerComponent.cs

---------

Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>
2025-03-23 16:15:07 +00:00
Evelyn Gordon 36db104447 Ensure speech bubble cap is always respected (#32223)
Ensure speech bubble cap is respected, even when messages are sent very fast
2025-03-23 14:04:44 +00:00
deltanedas dacdbc40a7 merge master 2025-03-11 22:09:45 +00:00
deltanedas 9e26db7a9d
return ahelp to f1, add alternate keybind for staff help chooser (#3176)
* fix bad grammar

* return ahelp to f1

---------

Co-authored-by: deltanedas <@deltanedas:kde.org>
2025-03-10 02:19:32 +00:00
Coolsurf6 27a6684bc1 Changed Damage Overlay to check Burn Damage (#34535)
* updated BruteLevel to be PainLevel with burn damage checks in DamageOverlayUiController.cs

* dehardcoded pain level by adding damage groups to paindamagegroups to affect

* re-added the name for painDamageGroups

* fixed overlay default and added minimum limit to component check first

* renamed to PainDamageGroups and removed obsolete tag
2025-03-09 22:04:06 +00:00
metalgearsloth 9d9e48226b Predict vending machine UI (#33412) 2025-03-09 19:35:09 +00:00
beck-thompson 2013f23d04
Remove greentexts - Replace with custom responses (#2940)
* 1984

* my spelling....

* Admin log

* Fixes

* bruh

* Fixes thanks delta o7

* Pro fixes
2025-03-04 22:32:30 +00:00
deltanedas f411ef7f0e merge master but real 2025-03-04 12:32:35 +00:00
deltanedas 0f3edc0b39
port better borgs from frontier (#3110)
* BetterBorgs: droppable, swappable cyborg item interactions (#2766)

* WIP: droppable, swappable, insertable cyborg items

* Half-baked borg HandPlaceholderComponent

* cyborg: sprite representation for empty slots

* nullable prototype

---------

Co-authored-by: Dvir <39403717+dvir001@users.noreply.github.com>

* BorgSystem: check droppable items for duped mods (#2887)

* BorgSystem: check droppable items for duped mods

* Cache item comparer

* BorgSystem: Unremoveable after equip (#2854)

* raise interaction events to add fibers to things

---------

Co-authored-by: Whatstone <166147148+whatston3@users.noreply.github.com>
Co-authored-by: Dvir <39403717+dvir001@users.noreply.github.com>
Co-authored-by: deltanedas <@deltanedas:kde.org>
2025-03-04 12:10:32 +00:00
deltanedas c7a83857b4 merge master 2025-03-02 23:33:56 +00:00
SolStar edba14b3f2
Curator Chat (Ported from RMC14 #5084) (#3070)
* Port Add Mentor Help #5084 https://github.com/RMC-14/RMC-14/pull/5084

* Remove de/re-mentoring command and mentor jobs instead tie to admining

* Renamed to Curator Chat

* Make chat 10% less shit

* Fishguy fixes

* oops

* Cherry Pick d4fcd8e8c8

* maybe this is right?

* Revert changes to upstream file

* Revert changes to upstream file

---------

Co-authored-by: DrSmugleaf <drsmugleaf@gmail.com>
2025-03-02 00:03:27 +00:00
pathetic meowmeow 125422f7b6 Make escape key work as expected with multiple open inventories (#35040) 2025-03-01 14:31:31 +00:00
Winkarst 5375091d1c New Feature: Admin Only messages in AHelp (#35283)
* Feature

* Update

* Update

* Update

* Update Resources/Locale/en-US/administration/bwoink.ftl

Co-authored-by: Pieter-Jan Briers <pieterjan.briers@gmail.com>

* Yes

---------

Co-authored-by: Pieter-Jan Briers <pieterjan.briers@gmail.com>
2025-03-01 14:08:36 +00:00
metalgearsloth d8009437d4 General storage fixes (#34845)
* Fix storage stars

* Fix some more storage bugs

- Fix positions not saving.
- Fix the 1-tick delay between parent and child storage UIs opening / closing.
- Fix BackButton being visible sometimes when it shouldn't be.

* milon is a furry
2025-03-01 13:55:20 +00:00
metalgearsloth 047215cc93 Remove storage hotbar GUI bandaid (#35054)
* Remove storage hotbar GUI bandaid

With BUI deferred opens it also happened to fix this issue which is nice.

* Update Content.Client/Storage/StorageBoundUserInterface.cs
2025-03-01 13:54:05 +00:00
metalgearsloth 1f355142b8 General storage fixes (#34845)
* Fix storage stars

* Fix some more storage bugs

- Fix positions not saving.
- Fix the 1-tick delay between parent and child storage UIs opening / closing.
- Fix BackButton being visible sometimes when it shouldn't be.

* milon is a furry
2025-03-01 13:31:09 +00:00
ActiveMammmoth 48fc402186 Wizard Staff of Animation (#34649) 2025-03-01 12:53:19 +00:00
SpaceManiac e655b9d1e2 Fix 38 non-obsolete warnings (#33794) 2025-03-01 12:44:03 +00:00
SpaceManiac b91fb287cf Fix character menu button not untoggling when window closes (#33712) 2025-03-01 12:38:14 +00:00
deltanedas 57ff361009 Revert "Revert `Storage UI V2` (#2950)"
This reverts commit 94dcefd803.
2025-03-01 12:37:16 +00:00
pathetic meowmeow 07e11dda25
Port respawning from Frontierstation/Corvax (#3021) 2025-02-24 06:33:22 +00:00
metalgearsloth e9ca563f05 Tweak viewport nullspace check (#35037)
* Tweak viewport nullspace check

WorldPos being 0,0 is sussy-a.

* a
2025-02-14 16:10:01 +00:00
TemporalOroboros ec76de5c13 Purges the one remaining use of TransformComponent.WorldPosition in content. (#34943) 2025-02-14 16:10:00 +00:00
ShadowCommander 614f7b31db HOTFIX: Fix lineedit focus (#34621)
* Test entered tree fix

* Use Opened override

* Fix keyboard focus on window open for DialogWindow

This affects Phone, Pray, Rename, and multiple other admin verbs.

* Clean up
2025-02-14 16:09:56 +00:00
AJCM-git 32cfe943e0 Fixes the ShowRulesCommand and the client not syncing rules correctly (#28752) 2025-02-14 16:09:48 +00:00
Michael Shaw 94dcefd803
Revert `Storage UI V2` (#2950)
* Revert `Storage UI V2`

Storage UI v2 has been a buggy and infuriating mess to use.
This idea needs additional polish before it is ready. I think we should
go ahead and remove it until that point, to alleviate further
aggrevation.

Signed-off-by: Michael Shaw <michaelsshaw44@gmail.com>

* storage: remove unused cvars

---------

Signed-off-by: Michael Shaw <michaelsshaw44@gmail.com>
2025-02-10 22:55:39 +00:00
deltanedas c4b44a983c
fix storage stars (#2824)
Co-authored-by: deltanedas <@deltanedas:kde.org>
2025-01-31 05:16:16 +00:00
metalgearsloth a525587dcb Storage sidebar fix (#34680) 2025-01-28 05:01:41 +00:00
Coolsurf6 a7f00f263c Added Pain Numbness Trait (#34538)
* added pain-numbness component and system

* added numb as a trait that pulls the pain numbness component

* removed new event as mob threshold event as already being fired

* checked for MobThresholdsComponent first before running VerifyThresholds

* refacted force say to using LocalizedDatasetPrototype and added numb messages

* added severity check alert

* added comment for BeforeForceSayEvent

* removed space formatting

* changed Cancelled to CancelUpdate, fixed spacing and added two more damage-force-say-numb

* changed prefix damage-force-say-numb to 5 (whoops)
2025-01-28 04:53:45 +00:00
metalgearsloth 767b43fd26 Storage UI V2 (#33045) 2025-01-28 04:52:58 +00:00
Fildrance 21c5713374 Feature/make radial menu great again (#32653)
* it works! kinda

* so it works now

* minor cleanup

* central button now is useful too

* more cleanup

* minor cleanup

* more cleanup

* refactor: migrated code from toolbox (as it was rejected as too specific)

* feat: moved border drawing for radial menu into RadialMenuTextureButton. Radial menu position setting into was moved to OverrideArrange to not being called on every frame

* refactor: major reworks!

* renamed DrawBagleSector to DrawAnnulusSector

* Remove strange indexing

* Regularize math

* refactor: re-orienting segment elements to be Y-mirrored

* refactor: extracted radial menu radius multiplier property, changed color pallet for radial menu button

* refactor: removed icon backgrounds on textures used in current radial menu buttons with sectors, RadialContainer Radius renamed and now actually changed control radius.

* refactor: in RadialMenuTextureButtonWithSector all sector colors are converted to and from sRGB in property getter-setters

* refactor: renamed srgb to include Srgb suffix so devs gonna see that its srgb clearly

* fix: enabled any functional keys pressed when pushing radial menu buttons

* fix: radial menu sector now scales with UIScale

* fix: accept only one event when clicking on radial menu ContextualButton

* fix: now radial menu buttons accepts only click/alt-click, now clicks outside menu closes menu always

---------

Co-authored-by: pa.pecherskij <pa.pecherskij@interfax.ru>
Co-authored-by: Eoin Mcloughlin <helloworld@eoinrul.es>
2025-01-28 04:33:54 +00:00
c4llv07e 31d4558719 Add option to disable bwoink sound. (#33782)
* Add option to disable bwoink sound.

* Now it's working only with active admin status.

* No bwoink, only "notification sound"

* Moar changes

* Another one
2025-01-28 04:31:25 +00:00
Myra c4b22fca82 Remove baby jail (#34443)
* Remove baby jail

Closes #33893

* Test fail fix.
2025-01-28 04:31:23 +00:00
Errant e7cd9bc0dc Role Types (#33420)
* mindcomponent namespace

* wip MindRole stuff

* admin player tab

* mindroletype comment

* mindRolePrototype redesign

* broken param

* wip RoleType implementation

* basic role type switching for antags

* traitor fix

* fix AdminPanel update

* the renameningTM

* cleanup

* feature uncreeping

* roletypes on mind roles

* update MindComponent.RoleType when MindRoles change

* ghostrole configuration

* ghostrole config improvements

* live update of roleType on the character window

* logging stuff and notes

* remove thing no one asked for

* weh

* Mind Role Entities wip

* headrev count fix

* silicon stuff, cleanup

* exclusive antag config, cleanup

* jobroleadd overwerite

* logging stuff

* MindHasRole cleanup, admin log stuff

* last second cleanup

* ocd

* move roletypeprototype to its own file, minor note stuff

* remove Roletype.Created

* log stuff

* roletype setup for ghostroles and autotraitor reinforcements

* ghostrole type configs

* adjustable admin overlay

* cleanup

* fix this in its own PR

* silicon antagonist

* borg stuff

* mmi roletype handling

* spawnable borg roletype handling

* weh

* ghost role cleanup

* weh

* RoleEvent update

* polish

* log stuff

* admin overlay config

* ghostrolecomponent cleanup

* weh

* admin overlay code cleanup

* minor cleanup

* Obsolete MindRoleAddedEvent

* comment

* minor code cleanup

* MindOnDoGreeting fix

* Role update message

* fix duplicate job greeting for cyborgs

* fix emag job message dupe

* nicer-looking role type update

* crew aligned

* syndicate assault borg role fix

* fix test fail

* fix a merge mistake

* fix LoneOp role type

* Update Content.Client/Administration/AdminNameOverlay.cs

Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>

* Update Content.Shared/Roles/SharedRoleSystem.cs

Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>

* comment formatting

Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>

* change logging category

Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>

* fix a space

Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>

* use MindAddRoles

Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>

* get MindComponent from TryGetMind

Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>

* move var declaration outside loop

* remove TryComp

* take RoleEnum behind the barn

* don't use ensurecomp unnecessarily

* cvar comments

* toggleableghostrolecomponent documentation

* skrek

* use EntProtoId

* mindrole config

* merge baserolecomponent into basemindrolecomponent

* ai and borg silicon role tweaks

* formatting

Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>

* I will end you (the color)

Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>

* use LocId type for a locale id

* update RoleEvent documentation

* update RoleEvent documentation

* remove obsolete MindRoleAddedEvent

* refine MindRolesUpdate()

* use dependency

Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>

* inject dependency

Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>

* roleType.Name no longer required

* reformatted draw code logic

* GhostRoleMarkerRoleComponent comment

* minor SharedRoleSystem cleanup

* StartingMindRoleComponent, unhardcode roundstart silicon

* Update Content.Shared/Roles/SharedRoleSystem.cs

* remove a whitespace

---------

Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>
2025-01-12 08:26:32 +00:00
gluesniffler 57f6d340e7 Minor Shitmed Bugfixes 2 (#1038)
* full fucking send

* ope forgot to remove the EE scripts

* fix test

* fix shitcode fail

* DELTA THAT VALUE IS NULLABLE

* whoopsie daysie

* fixed???

* chat is this real

* bugfixes

* more bugfixes

* goobmed

* Savepoint

* fixed yet more crap

* ymlops

* tests

* shitcode

* Update duffelbag.yml

* shoes fixed???

* bruhhhhhhhhhhhhh
2024-12-27 17:17:07 +00:00
gluesniffler a3ccc297e6 Major Shitmed Bugfixes (#1003) 2024-12-27 17:13:03 +00:00
gluesniffler da885d8854 Shitmed (#869)
* full fucking send

* ope forgot to remove the EE scripts

* fix test

* fix shitcode fail
2024-12-27 16:47:20 +00:00
Southbridge 5b57004ed8 Monospace Support for Rich Text (#33830)
* Initial Commit

* Moved all this to SS14 on it's own

* Added prototype validation
2024-12-21 09:56:32 +00:00
deathride58 3c9b179222 Adds an introductory message to the user-facing ahelp chat window (#33348)
* Adds an introductory message to the user-facing ahelp chat window

* Update Resources/Locale/en-US/administration/bwoink.ftl

* Update Resources/Locale/en-US/administration/bwoink.ftl

---------

Co-authored-by: chromiumboy <50505512+chromiumboy@users.noreply.github.com>
2024-12-21 09:39:18 +00:00
Vasilis The Pikachu d3e498fad4 Revert "Simplify separated screen top menu (#33047)"
This reverts commit f27fa1ed30920581c6322d08867cb3334f897589.
2024-12-21 09:37:09 +00:00
SpaceManiac 88511938f8 Organize the Sandbox Panel window (#33684)
* Organize Sandbox Panel

* Map Editing -> Editing

* Unset ToggleMode on Suicide button. Can hardly un-suicide, no?

* Remove 'Link machines' button that has done nothing for 3 years

* Remember Sandbox window's position instead of forcing to center

* Shows Spawns -> Show Spawns

* Remove SandboxSystem.MachineLinking
2024-12-07 22:11:27 +00:00
Plykiya a8e0295656 Fix for inspecting entities in hand (#33642)
Actually inspect entity in hands
2024-12-07 21:54:25 +00:00
Intoxicating-Innocence db85e1cf2e Ghost role drop-down alignment (#33397)
* dropdown shares margin width with children

* removed dependency that rider added for some reason

* reduced vertical margin from 8 to 2
2024-12-07 21:47:24 +00:00
metalgearsloth 33fa47e192 Simplify separated screen top menu (#33047) 2024-12-07 21:47:16 +00:00
Nikolai Korolev c129540b28 Fix RA0003 warning for ChatBox (#33531) 2024-12-07 21:46:33 +00:00
SlamBamActionman a6604276b0 Remove drag & drop dropping items from containers (#32706)
* Initial commit

* Update based on maintainer discussion

* Forgot to remove this woops
2024-12-07 16:31:52 +00:00