Files
tbd-station-14/Content.Client
Fildrance 56710697a9 Feature/shader radial menu (#35152)
* 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

* overlay and its registration

* radial menu shader but it requires wierd offset

* remove unused file

* smol cleanup

* remove unused code

* neat internal subsctors in radial menu shaders

* refactor finalize visual style

* comments, simplify, extract variable and other minor refactors on radial-menu shader

* refactor: extract more data from radial menu with sector to radial container for shader drawing

* replaced DrawSeparators for RadialMenuTextureButtonWithSector with DrawBorder (no reason to make them separate), also now colors are properly applied

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

* refactor: remove duplication of radial menu shaders, use ValueList to collect ClearExistingChildrenRadialButtons buttons to remove

* 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: removed *if* blocks from shader, replaced with branchless logic

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

* fix: merge duplicated code

---------

Co-authored-by: pa.pecherskij <pa.pecherskij@interfax.ru>
Co-authored-by: Eoin Mcloughlin <helloworld@eoinrul.es>
2025-04-10 20:42:53 +10:00
..
2024-05-02 12:40:07 +10:00
2024-07-26 10:30:49 -07:00
2025-04-02 19:38:26 -07:00
2024-07-01 02:20:57 +10:00
2025-04-05 00:33:52 +11:00
2025-03-15 09:24:23 -07:00
2024-07-13 16:09:19 +10:00
2024-08-25 22:05:39 +10:00
2024-08-04 13:31:45 +10:00
2025-03-07 14:51:08 +01:00
2025-02-14 16:46:25 +01:00
2024-11-22 23:39:05 +01:00
2024-09-27 17:12:10 +10:00
2025-03-30 14:06:43 +02:00
2024-09-24 19:02:51 +02:00
2024-08-31 10:40:28 -04:00
2025-02-27 18:57:28 +01:00
2025-03-31 20:25:00 +02:00
2024-02-16 16:52:31 -07:00
2025-02-12 23:46:02 -05:00
2025-03-30 03:05:22 +02:00
2024-06-09 15:18:54 -04:00
2024-08-18 21:39:00 -06:00
2023-10-24 10:23:56 -04:00
2024-09-07 00:05:53 +10:00
2025-04-05 00:33:52 +11:00
2024-07-21 17:17:59 +10:00
2025-02-02 02:38:02 +01:00
2025-02-23 18:23:00 +11:00
2025-02-20 11:10:54 +01:00
2025-04-05 00:33:52 +11:00
2024-08-25 22:18:42 +10:00
2024-08-23 11:14:38 +02:00
2023-10-01 16:46:09 -04:00
2024-08-25 22:18:42 +10:00
2024-12-17 20:18:15 +01:00
2024-12-17 20:18:15 +01:00
2024-12-23 15:24:09 +01:00
2024-04-21 23:16:23 +10:00
2025-02-08 17:17:55 +11:00
2024-09-26 18:55:59 +02:00
2025-02-23 18:23:00 +11:00
2024-12-04 21:13:22 +11:00