CatStation/Resources/Prototypes
Pieter-Jan Briers ffe130b38d
Battery (SMES/substation) interface (#36386)
* Add ENERGYWATTHOURS() loc function

Takes in joules (energy), displays as watt-hours.

* Add simple OnOffButton control

* Re-add Inset style class

This was sloppily removed at some point?? Whatever, I need it.

* Add helper functions for setting title/guidebook IDs on FancyWindow

Reagent dispenser uses these, more in the next commits.

* Add BuiPredictionState helper

This enables me to implement coarse prediction manually in the battery UI.

Basically it's a local buffer of predicted inputs that can easily be replayed against future BUI states from the server.

* Add input coalescing infrastructure

I ran into the following problem: Robust's Slider control absolutely *spams* input events, to such a degree that it actually causes issues for the networking layer if directly passed through. For something like a slider, we just need to send the most recent value.

There is no good way for us to handle this in the control itself, as it *really* needs to happen in PreEngine. For simplicity reasons (for BUIs) I came to the conclusion it's best if it's there, as it's *before* any new states from the server can be applied. We can't just do this in Update() or something on the control as the timing just doesn't line up.

I made a content system, BuiPreTickUpdateSystem, that runs in the ModRunLevel.PreEngine phase to achieve this. It runs a method on a new IBuiPreTickUpdate interface on all open BUIs. They can then implement their own coalescing logic.

In the simplest case, this coalescing logic can just be "save the last value, and if we have any new value since the last update, send an input event." This is what the new InputCoalescer<T> type is for.

Adding new coalescing logic should be possible in the future, of course. It's all just small helpers.

* Battery interface

This adds a proper interface to batteries (SMES/substation). Players can turn IO on and off, and they can change charge and discharge rate. There's also a ton of numbers and stuff. It looks great.

This actually enables charge and discharge rates to be changed for these devices. The settings for both have been set between 5kW and 150kW.

* Oops, forgot to remove these style class defs.
2025-04-27 21:08:34 +10:00
..
Accents localize skeleton accent (#32166) 2024-09-15 21:49:05 +02:00
Access Genpop Closets & IDs (#36392) 2025-04-24 16:32:11 +02:00
Actions Action charges refactor (#33993) 2025-04-18 13:45:48 +10:00
AlertLevels Change siren.ogg to gamma.ogg (#30836) 2024-08-10 15:31:28 +03:00
Alerts Add a Walking alert (#32954) 2024-11-08 18:28:24 -06:00
Anomaly New anomaly behaviour: Invisibility (#29120) 2024-07-03 11:14:39 -04:00
Atmospherics Add new freezer atmos devices and fix freezer fixgridatmos marker (#34991) 2025-02-12 18:32:18 +11:00
Body Moths can eat pills (#35609) 2025-04-23 19:28:34 -07:00
Catalog Remove legacy cargo shuttle code/prototypes (#36967) 2025-04-27 12:06:45 +10:00
Chemistry Cryo and grinder cleanup (#34842) 2025-03-13 01:44:05 +03:00
Damage Remove cellular resistance for slimes (#35583) 2025-03-01 21:24:54 +01:00
Datasets Xenoborgs part 1 (#36830) 2025-04-23 19:38:10 -07:00
Decals Improve crayon UI to not be stuck in 1996 (#33101) 2024-11-15 21:25:06 -06:00
Device Xenoborgs part 1 (#36830) 2025-04-23 19:38:10 -07:00
DeviceLinking Cloning Refactor and bugfixes (#35555) 2025-03-02 16:50:12 +01:00
Entities Battery (SMES/substation) interface (#36386) 2025-04-27 21:08:34 +10:00
EntityLists/Tools
Flavors The Bartender can now make Eggnog (#34065) 2025-04-20 17:27:35 -04:00
GameRules Cherry Pick Round-start Solar Variation (#36825) 2025-04-22 15:46:38 -04:00
GhostRoleRaffles shorten short raffle (#28685) 2024-06-19 12:41:41 +10:00
Guidebook THE WIZARD (#35406) 2025-02-25 22:34:07 -07:00
Hydroponics Increase base amount of egg in egg-plant (#36693) 2025-04-18 12:52:12 -07:00
InventoryTemplates Borg type switching. (#32586) 2024-11-14 11:08:35 -06:00
Loadouts Added a semi-functional genderfluid pin. (#35854) 2025-04-21 13:46:33 -04:00
LootTables Remove Vector assets and renames Vector SMG magazines (#34603) 2025-02-05 13:39:26 +01:00
Magic Action charges refactor (#33993) 2025-04-18 13:45:48 +10:00
Maps Miscounted by one 2025-04-16 12:50:27 -07:00
NPCs Sentry turrets - Part 4: The sentry turret and its primary systems (#35123) 2025-03-29 12:55:58 -05:00
Objectives Cleanup: Move folders out of bureaucracy.rsi and paper.yml (#35108) 2025-04-22 23:31:42 -07:00
Palettes Decal Beautification + Palette Update (#25689) 2024-02-29 15:27:25 -07:00
Parallaxes Amber Station - Small Improvements (#36335) 2025-04-14 11:58:21 -07:00
Polymorphs New Experimental Science T3: Desynchronizer (#35752) 2025-04-16 11:33:39 +10:00
Procedural Fix random maints room deleting whatever was already there (#36605) 2025-04-25 08:04:18 -07:00
RCD fix: return deconstruct to the top level option of radial menu (#36486) 2025-04-17 23:50:15 -05:00
Reagents Sheet-meister 2000 Cloth recipe (#32676) 2025-04-26 05:22:51 +02:00
Recipes Sheet-meister 2000 Cloth recipe (#32676) 2025-04-26 05:22:51 +02:00
Research PKA Modkits + Rebalance (#31247) 2025-04-25 11:18:23 -07:00
Roles Wizard Headset (#35732) 2025-04-20 17:38:30 -04:00
Shaders Revert "Feature/shader radial menu" due to shader issue (#36470) 2025-04-13 23:55:27 +02:00
Shuttles add man-o-war shuttle (#32105) 2024-12-20 14:36:23 +03:00
SoundCollections 3mo xeno archeology (first phase) (#33370) 2025-04-15 10:34:53 +10:00
Species Fix vox hair (#36816) 2025-04-21 21:24:37 -04:00
Stacks Astro Asteroid Sand (#34463) 2025-01-29 20:41:58 -08:00
StatusIcon Zombies can see Initial Infected (#33665) 2024-12-16 14:53:13 +03:00
Store pAI Software Catalog (#36857) 2025-04-23 16:55:35 -07:00
StoryGen Random book story generator refactor (#28082) 2024-05-18 12:20:00 -04:00
Tiles Lattice tiles footsteps now sound like catwalks (#35421) 2025-02-23 12:43:15 +01:00
Traits unrevivable lets you be cloned again (#36008) 2025-03-22 15:42:20 +01:00
Voice Fix bots parenting, emotes (#29949) 2025-04-21 18:49:43 -04:00
Wires Sentry turrets - Part 4: The sentry turret and its primary systems (#35123) 2025-03-29 12:55:58 -05:00
World
XenoArch XenoArch Rebalancing (#36604) 2025-04-16 00:38:26 +02:00
ai_factions.yml Xenoborgs part 1 (#36830) 2025-04-23 19:38:10 -07:00
audio.yml Fix space ambient music (#33594) 2024-11-27 16:32:39 +11:00
bar_signs.yml ports two barsigns from frontier (#35296) 2025-02-19 20:25:17 +01:00
borg_types.yml Cyborg Rebalance (#34186) 2025-04-24 19:29:16 -07:00
contraband_severities.yml Magical contraband type (#35254) 2025-02-18 01:21:49 +01:00
edge_spreaders.yml metal foam grenades (#29428) 2024-07-08 00:26:58 +10:00
explosion.yml Fix explosion visuals (#36644) 2025-04-17 20:12:13 +10:00
floor_trap.yml Floor trap (#26314) 2024-04-20 16:09:00 +10:00
fonts.yml Implement basic emoji support (#24039) 2024-01-29 15:32:13 +11:00
game_presets.yml Wizard added in all at once! (#36408) 2025-04-10 19:06:47 -07:00
holidays.yml Lowercase some prototypes names (#29990) 2024-07-23 11:16:11 +03:00
hud.yml Remove Eris UI theme (#25673) 2024-02-28 23:53:48 -06:00
item_size.yml
lobbyscreens.yml reclaimer-lobby-art (#29343) 2024-06-25 15:28:37 +02:00
name_identifier_groups.yml Station AI Name Identifier (#36801) 2025-04-21 19:54:51 +02:00
ore.yml Add Gold and Coal Rock Anomalies (#34809) 2025-03-13 01:45:22 +03:00
radio_channels.yml Xenoborgs part 1 (#36830) 2025-04-23 19:38:10 -07:00
round_announcements.yml
secret_weights.yml THE WIZARD (#35406) 2025-02-25 22:34:07 -07:00
silicon-laws.yml Xenoborgs part 1 (#36830) 2025-04-23 19:38:10 -07:00
status_effects.yml Hivelord mob (#31322) 2024-09-11 09:52:27 -04:00
tags.yml Adds Parcel Wrap (#34471) 2025-04-26 19:24:25 -04:00
themes.yml Ashen hud item status slot fix (#31411) 2025-04-22 14:40:58 -04:00
threats.yml
tool_qualities.yml Revert "plutonium core steal objective" (#29578) 2024-06-30 01:23:03 +10:00
typing_indicator.yml New Speech Indicators for species that don't have any. (#36126) 2025-04-19 09:19:04 +10:00
weather.yml
whitelists.yml Automated whitelists (#23985) 2024-08-27 18:01:17 +02:00
wizardsDenWhitelists.yml [HOTFIX] Fix MRP whitelist auto denying people with any medium severity notes in 14 days (#34532) 2025-01-21 11:24:50 +01:00