Commit Graph

12 Commits

Author SHA1 Message Date
LemonInTheDark eb7d505bef Makes the MC stat panel tab usable, and also nicer (#92405)
(cherry picked from commit 0909348cea)
2025-08-08 15:33:44 -04:00
Aylong 8550de3ccc Fix stat panel background color (#92052)
## About The Pull Request
Just a fix for a stat panel background color, was broken after -
https://github.com/tgstation/tgstation/pull/92004
Also removed unused goonStyle from it. There is no browserOutput.css in
repo

## Why It's Good For The Game
No dark background in stat panel, even on light theme
2025-07-11 18:04:51 -04:00
Jeremiah a5a4b83a25 Sets prettier to run on the repo (#91379)
Prettier (an auto formatter) is set to only run within the tgui folder
currently. This removes that limitation, allowing it to automatically
format all supported files in the repo (.js, .html, .yml
[etc](https://prettier.io/docs/))

I made a few exceptions for bundled and generated files
I'm of the opinion that code should look uniform and am lazy enough to
want CTRL-S to format files without having to think beyond that
2025-06-05 19:13:02 -04:00
John Willard 78a07f5fd6 Stat panel is only scrollable if needed (#90341)
## About The Pull Request

I was not aware of https://github.com/tgstation/tgstation/pull/90278
adding ``scrollable`` to Experiscanner, so I was looking at a fix to
that and found out that it's caused by ``overflow-y`` not working in its
scss panel. The linked PR failed to address that, so clients on 515 now
have 2 scrolls on it, this fixes that.
I checked every other instance to see which other ones might've been
broken, and while none were non-functional, I found the TaychonArray
scss file was completely unused, we replaced it in changes to the
Taychon Array machine itself and related UI changes, so I'm deleting it.
Lastly, I'm making the stat panel use ``auto`` instead of always showing
the scrollbar, because I thought it looked nicer.

## Why It's Good For The Game

Removes double scrollbar for 515 users and makes stat panel not always
have a scrollwheel when it can't even be used.

## Changelog

🆑
fix: Users on 515 no longer have 2 scrollwheels on the experiscanner.
del: The stat panel only shows the scrollwheel when there's something to
scroll to.
/🆑
2025-04-29 17:11:54 -06:00
Aylong 4142ae693b Little Stat Panel fix for Byond 516 (#89142)
## About The Pull Request
On the 516, when hovering over the cropped text, the transposed text
does not expand the background
It's a small fix for that.

| Before | After |
| - | - |
|
![image](https://github.com/user-attachments/assets/7fb94a56-5796-4652-92ba-a8ba6a0f9824)
|
![image](https://github.com/user-attachments/assets/f7f17185-7d1d-4db7-8602-65c639faebb5)
|
2025-01-20 08:26:16 -08:00
Aylong 81404a9012 Flatten skin sidebar (#88766)
## About The Pull Request
I have used a small hidden 515 feature, that disables white borders on
elements, if the colour of the element deviates even slightly from the
greyscale

For example, if you set color for skin button #FFFFFF (Pure white),
Byond will add "3D" effect to button. BUT, if you set color to #FEFFFF,
Byond makes it flat

## Why It's Good For The Game
Little more stylish imo

| Dark | Light |
| - | - |
|
![image](https://github.com/user-attachments/assets/e05adb43-7a6e-4ff4-a212-097cdf623764)
|
![image](https://github.com/user-attachments/assets/726cfa86-f28b-4fdf-9c93-666184c22b36)
|

## Changelog

🆑
qol: Sidebar has lost its bulging white lines. And top right buttons now
flat
/🆑
2025-01-06 08:08:12 -08:00
Aylong 1116df9b98 [NO GBP] Fix 516 scrollbar and background image (#88617)
## About The Pull Request
Ports - https://github.com/ParadiseSS13/Paradise/pull/26433
Fixes scrollbar color for Byond 516, and background position

## Why It's Good For The Game
Colorfull scrollbar
<details><summary> Videos </summary>


https://github.com/user-attachments/assets/969b4f6f-f553-4786-86c7-df11c034675b

</details>

## Changelog

🆑
fix: Fixed scrollbar colors and background position in TGUI on Byond 516
/🆑
2024-12-22 02:42:28 +01:00
Aylong edb4437c51 [NO GBP] Return wrap for stat panel tabs (#85399)
## About The Pull Request
Tabs in Stat Panel wraps again instead of creating a horizontal scroll
bar by default
BUT. Added 2 more options for tabs look, and created special setting
tabs for Stat Panel settings...


![image](https://github.com/user-attachments/assets/934d590b-3dd3-4ed5-a11c-c77838990dc3)

Idk if it is necessary to put a feature tag for this and remove `[NO
GBP]`
If need to, please tell me, I'm still new into this system

Fixes #85437

## Images of changes
<details>
<summary>Screenshots</summary>
Tabs look

| Default | Classic | Scrollable |
| - | - | - |
|
![image](https://github.com/user-attachments/assets/6b1dc400-8cf4-42d4-8667-bd89e7f6db9b)
|
![image](https://github.com/user-attachments/assets/64d83ce8-eb25-4ea1-ae18-1c2fa4b216bd)
|
![image](https://github.com/user-attachments/assets/07afbe95-d8d8-4fc7-8d51-7fce2ea1478f)
|

</details>
<details>
<summary>Video</summary>


https://github.com/user-attachments/assets/77839c27-60c8-45c2-ad92-8add59f9ba38

</details>

🆑
qol: Stat Panel settings moved to personal tab
fix: Stat Panel tabs no longer create horizontal scrollbar by default,
but you can return it into the settings
fix: Hovering over a truncated statpanel button, doesn't blocks the
button below it anymore
/🆑
2024-09-03 12:52:06 +02:00
Aylong 56eadcb0df Refactor Stat Panel styles and more TGUI-like appearance (#85257)
## About The Pull Request
The PR came out a little bigger than I had planned, but creating
separate ones for a couple of little things seemed unnecessary to me.

Let me start with the most important thing: Stat Panel now scales like
TGchat and also looks closer to TGUI!
By default, the Stat Panel font size is tied to the chat font size, but
this can be changed in a couple of clicks...

The rest of the changes are not as big:
1. Stat Panel styles are now more organised
2. The way themes are applied to Byond Skin has been refactored, if
someone decides to make a new theme (maybe me), it won't be necessary to
copy all the elements
3. NumberInput into the general chat settings tab, was changed to slider
4. Reoder tab buttons changed, they are more compact now
5. With the light theme, chat tabs now have a background when
hovering/active tabbing
<details>
<summary>How it look's like</summary>

| New reorder tab buttons | Light Chat tabs | 
| - | - | 
|
![image](https://github.com/user-attachments/assets/39194331-b69f-473f-ba82-497a86bbe062)
|
![image](https://github.com/user-attachments/assets/6fe22bac-2802-4e03-8095-0633b06a5b03)
|

</details>
<details>
<summary>General Preview</summary>


https://github.com/user-attachments/assets/7647d584-c2fd-41b2-b2ee-c7ee61569d1f

</details>

## Why It's Good For The Game
More accessibility for owners of 2/4k monitors
Better appearance
NumberInput is behaving extremely strangely in chat

## Changelog

🆑
add: Stat Panel now scales like a chat, depends on the font size.
Defaults from the chat font size, but you can separate it.
refactor: Refactored Stat Panel styles and Byond skin theme applying.
Stat Panel now looks more like a TGUI
/🆑
2024-07-29 11:55:22 -07:00
Mothblocks d67555a0b5 the inevitable Revert "Refactors admin verbs from giant ass lists into datums" in case stuff breaks (#73206)
Reverts tgstation/tgstation#72407
2023-02-05 11:44:38 +13:00
Zephyr fca90f5c78 Redoes the admin verb define to require passing in an Admin Visible Name, and restores the usage of '-' for the verb bar when you want to call verbs from the command bar. Also cleans up and organizes the backend for drawing verbs to make it easier in the future for me to make it look better (#73214)
## About The Pull Request

Damn that's a long title.

Admin Verbs can be used in the verb bar with hyphens instead of spaces
again.
## Why It's Good For The Game

Admin muscle memory
## Changelog
2023-02-04 01:20:18 -08:00
magatsuchi bea9387458 refactors statpanel to use tgui API (#66971)
refactors the status panel to utilize the tgui/byond communication APIs instead of passing along href data, as well as converts the entirety of it into a datum/tgui_window

Co-authored-by: Aleksej Komarov <stylemistake@gmail.com>
2022-05-16 07:12:05 +03:00