Skip to content
This repository has been archived by the owner on Jul 27, 2021. It is now read-only.

[MIRROR] Modernizes TGUI #549

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

[MIRROR] Modernizes TGUI #549

wants to merge 1 commit into from

Conversation

ghost
Copy link

@ghost ghost commented Jun 28, 2021

Original PR: BeeStation/BeeStation-Hornet#4219

About The Pull Request

ports tgstation/tgstation#54567
tgstation/tgstation#56080
tgstation/tgstation#56225

edit: additional followup PRs will go here
tgstation/tgstation#56223
tgstation/tgstation#56713
tgstation/tgstation#56727
tgstation/tgstation#56797
tgstation/tgstation#57081
tgstation/tgstation#57154
tgstation/tgstation#57251
tgstation/tgstation#56269
tgstation/tgstation#57326
tgstation/tgstation#57432
tgstation/tgstation#57465
tgstation/tgstation#57499
tgstation/tgstation#57717
tgstation/tgstation#57746
tgstation/tgstation#57825
tgstation/tgstation#57834
tgstation/tgstation#57905
tgstation/tgstation#58081
tgstation/tgstation#58215
tgstation/tgstation#58219
tgstation/tgstation#58484
tgstation/tgstation#58701
tgstation/tgstation#56190

TGUI Changes for Coders

Stack component replaces and generally replaces it, read more here
Storybook.js has been introduced, described in the above link.

bin/tgui ran with flags is more robust at handling issues for you, remember to run --lint and --fix when submitting something (because I sure as hell kept forgetting and it makes you look bad anyways.)

Fragment without a key is replaced with <>.

Typescript 4.2 can now be utilized for tgui components. Unit tests can be ran using Jest. Described here

Custom SVG fonts can be utilized now! Just throw them in the tgui icon's directly and then you can utilize them in your scripts. This is described here

A prettierrc exists now, for those who care. Along with multiple linter and vscode changes in general.

Resizable as a window property is dead, all windows are resizable by default now.

Why It's Good For The Game

~~No unnecessary merge conflicts with tgui PRs. ~~ lol use a bot

Newer TGUI

Typescript

Custom icons

Further monopolization of our lord and saviour vscode.

Changelog

馃啈 Stylemistake, Cyberboss, SpaceManiac, other TG coders, Froststahr port.
code: TGUI has been upgraded to 4.3 and now includes typescript.
code: Custom SVG icons are now easy to do as well.
fix: All tgui windows will resize automatically, and can now be resized as will.
server: TGS will require adaptation.
/:cl:

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant