]> git.smokeofanarchy.ru Git - space-station-14.git/commit
Feature/make radial menu great again (#32653)
authorFildrance <fildrance@gmail.com>
Thu, 23 Jan 2025 12:16:58 +0000 (15:16 +0300)
committerGitHub <noreply@github.com>
Thu, 23 Jan 2025 12:16:58 +0000 (13:16 +0100)
commit68b0dfbc026a07aad2bf3f07d1052f92f899ea31
tree54c02fac7cd081bd67bfdd02705368aecd807a5b
parentf186838544c051d7549edf157a909be491574c60
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>
Content.Client/Chat/UI/EmotesMenu.xaml
Content.Client/Chat/UI/EmotesMenu.xaml.cs
Content.Client/Ghost/GhostRoleRadioMenu.xaml.cs
Content.Client/RCD/RCDMenu.xaml
Content.Client/RCD/RCDMenu.xaml.cs
Content.Client/Silicons/StationAi/StationAiMenu.xaml
Content.Client/Silicons/StationAi/StationAiMenu.xaml.cs
Content.Client/UserInterface/Controls/RadialContainer.cs
Content.Client/UserInterface/Controls/RadialMenu.cs