63 Commits

Author SHA1 Message Date
Metis 75b717d7fa Merge remote-tracking branch 'upstream/master' 2024-10-15 13:22:30 -04:00
SkyratBot 80e7c0db0a [MIRROR] Sends a toast notification when initializations complete. [MDB IGNORE] (#18623)
* Sends a toast notification when initializations complete. (#72465)

Initialization is significantly slowed down by the presence of clients,
though when testing features, you need to join the server. I've been
told that some devs (particularly Mothblocks) are alt-tabbed out of
Dream Daemon while doing dev work, meaning that they are liable to miss
initializations completing, causing an effective slowdown in the dev
cycle. Mothblocks said it would be nice if there was a way to produce a
desktop notification when initialization completes.

I originally intended to add a function to rust_g that would produce a
Windows toast notification with a button allowing you to immediately
launch Dream Seeker. However, I couldn't find a reliable way to detect
if the OS version was Windows 7 or earlier, so running this function on
such an OS would cause a rust panic (which I was told is only a problem
because MSO probably still uses Windows 7).

Fortunately, PowerShell scripts can access the necessary .NET APIs to
produce toast notifications on Windows 10, while also failing more
gracefully than crashing the host process. So I recreated the
functionality I intended in PowerShell.

Toast notifications will only be sent on Windows, if the
TOAST_NOTIFICATION_ON_INIT config flag is enabled, AND there are no
clients on the server.

**Note for downstreams:** If you want the toast notification to have
your downstream's icon, copy it, scale the copy down to 16x16, and
either rename it "tg_16.png" or change that path in the call to
`world.shelleo` to the name of the new file.

Video Demo:

https://user-images.githubusercontent.com/12720844/210492033-963923d7-a1de-4326-9c9f-4f0c0b71d1a5.mp4

This isn't really a line item in the Dev Cycles Initiative, but even if
Mothblocks was exaggerating the benefits, it would still be a
significant speedup in the dev cycles.

No player-facing changes.

* Sends a toast notification when initializations complete.

Co-authored-by: Y0SH1M4S73R <legoboyo@earthlink.net>
2024-10-15 00:25:48 -04:00
Metis b8b3d603c4 border 2024-10-07 20:21:02 -04:00
SandPoot d16a39505f oopsies 2023-10-05 21:39:55 -03:00
SandPoot a105852042 the stuff
Co-authored-by: Марк <SmiLeYre@users.noreply.github.com>
2023-10-05 21:15:11 -03:00
SandPoot bfe07112ff i hate keyed_list, i'm not keeping it in 2023-07-28 13:53:09 -03:00
SandPoot 6896a2e481 what was it again? 2023-07-27 21:09:41 -03:00
deathride58 ccc5ea1758 Bot refresh - Makes bot output channels configurable, makes the bot capable of pinging the reboot role 2022-05-19 15:19:21 -04:00
keronshb 0f4a3efcb5 Fixes weird flipped line 2022-02-22 17:26:19 -05:00
keronshb 3ea22f97a6 Merge remote-tracking branch 'upstream/master' into ambitioncheck 2022-02-22 17:10:25 -05:00
DeltaFire 2940d141cf please-dont-smite-us-lummox 2022-01-01 07:10:35 +01:00
keronshb 83a62ace04 Ambitioncheck 2021-12-23 21:15:31 -05:00
keronshb cd00d1589e fucking hell 2021-09-19 18:06:24 -04:00
keronshb 792dc073b3 Final fixes? 2021-09-16 13:28:34 -04:00
LetterN c25dc84da0 what the cat doing with the yarn dependencies?? 2021-09-08 09:25:38 +08:00
silicons d9b70b1f1c woo 2021-07-18 15:04:30 -07:00
silicons 0df58c878e more 2021-07-18 14:01:43 -07:00
silicons 55608737fa more.. 2021-06-28 14:51:55 -07:00
Fabian 8178b7073a It's done, atleast the code is 2021-03-05 21:50:29 +01:00
Fabian 2f1aba4f80 Revert "i can't believe kevin made me code"
This reverts commit 7f38564838.
2021-03-05 21:19:59 +01:00
Fabian 7f38564838 i can't believe kevin made me code
im taking severe offense to this
2021-03-05 19:55:53 +01:00
Letter N 7d39949a2f Merge remote-tracking branch 'origin/master' into rustsql 2021-02-19 12:38:32 +08:00
silicons 61ab2a5a53 logging fixes 2021-02-13 19:47:17 -07:00
Letter N cd5d558fad safety? what's that?
* maybe table-breaking change
2021-01-04 11:57:12 +08:00
silicons 45a7c68da1 wow 2020-12-11 15:05:00 -07:00
Timothy Teakettle e2ca7164b9 age verification 2020-11-06 21:00:14 +00:00
Putnam 558d11bc73 Stringified the vote #defines for easier config stuff 2020-10-18 14:49:43 -07:00
silicons 19f1e99a8c mass ports like 15 tg prs + counting (#13386)
* changes

* ok

* changes

* sigh

* fixes

* changes

* fix

* fix

* alright

* fixes
git pus

* fix

* fix

* fix

* test

* ok

* Update code/modules/paperwork/ticketmachine.dm

Co-authored-by: Letter N <24603524+LetterN@users.noreply.github.com>

* ok

* compile and other stuff

* ok

* fix

* fix

* Fix

* Update menu.dm

* Update view.dm

* Update preferences.dm

Co-authored-by: Letter N <24603524+LetterN@users.noreply.github.com>
Co-authored-by: Putnam3145 <putnam3145@gmail.com>
2020-10-10 12:20:33 +02:00
Letter N 3b7bca28b3 Functional* code 2020-08-20 13:50:33 +08:00
Unknown 16722c47c3 CentCom Galactic Ban DB 2020-07-29 21:39:58 -05:00
Artur 67e0b95407 Shuttle stuffs and gateway refactor port https://github.com/tgstation/tgstation/pull/49868/ 2020-04-23 12:36:42 +03:00
Ghommie 0602e728c0 Doesn't delete the old auto transfer behavior. 2020-03-12 21:15:12 +01:00
Ghommie 663a849afe Makes the autotransfer subsystem a bit more optional. 2020-03-12 21:02:34 +01:00
kevinz000 8923b7e72d minimaps 2020-03-04 01:21:16 -07:00
Hatterhat 0ad49f9004 shit dude i hope this works lmao 2020-02-19 17:18:51 -06:00
Hatterhat c00f797a4a extendies 2020-02-16 01:26:33 -06:00
Ghom a4a9701c98 Merge pull request #11022 from kevinz000/ssprofiler
ports auto profiler subsystem from tg
2020-02-13 15:06:27 +01:00
kevinz000 275fb6fc41 auto profiler 2020-02-11 07:54:17 -07:00
Ghommie 0caabe8018 Porting tgs DMAPI and script updates, as well as getrev updates and something bout OoM. 2020-02-11 15:23:03 +01:00
Putnam d05c2426a8 Added a config for map voting types. 2020-02-06 15:47:04 -08:00
Putnam 82fbef9920 Made it real time, added to config 2020-02-03 03:13:19 -08:00
Putnam a4cc73f219 some craft logging 2020-01-16 18:40:00 -08:00
AffectedArc07 16a37e2769 Standardises all files from CRLF to LF 2020-01-12 14:28:01 +00:00
Ghommie 100a87d57b Unmodularize configuration, _globalvars and subsystems. 2019-11-02 20:42:01 +01:00
Thalpy 764c3e5757 Missed one 2019-10-13 16:38:05 +01:00
Thalpy fc08d06352 Reverts 3/4 link buttons 2019-10-13 16:36:38 +01:00
Thalpy 7b27d9bd24 Library time 2019-10-13 16:19:32 +01:00
Thalpy 3abbfffdb8 Argh 2019-10-12 13:20:39 +01:00
Ghommie e31c441b3d rogue tabbing 2019-10-05 07:52:52 +02:00
Ghommie 3d22f4ec60 Porting a load of disease/symptoms code updates. 2019-10-05 07:14:25 +02:00