Files
Paradise/code/modules/reagents
Arthri 08b071ba41 Restructure Chemical ChemMaster (#22992)
* Fixate size of production section in chemmaster

* Tab infrastructure + pill tab

* Definitions for patches and bottles

* Implement pill creation

* Allow pill name to be set to empty

* Fix oversight. Patches allow 20 at a time, not 10

* Fix flexGrow=0 causing weird sizing

* Make pill buttons slightly larger

* Make ChemMaster bigger vertically

* Propagate onFocus and onBlur in Input component

* Use bind to existing 'change' event instead of reimplementing

* Revert "Use bind to existing 'change' event instead of reimplementing"

This reverts commit 786ddea223fef701e8517f230cb8cbf29dab15da.

* Revert "Propagate onFocus and onBlur in Input component"

This reverts commit 88f0ec89c84af7563b758d44e649404919ea8e62.

* Fill in placeholder name on middle click

* Move pill style buttons to collapsible

* Factor out common code

* Fix naming inconsistency

* Add max bottles and patches to data

* Define children and fix error

* Implement patches

* Implement bottles

* Revert back to labels instead of collapsibles

* Send placeholder names separately

* Make bottle style buttons look better

* Fix bottle sprites

* Deconstruct instead of directly access pillsprite

* Tweak quantity slider pixel scaling

* Fix bottle style selection

* Bottles are not pills

* Use defined maximum production amounts

* Always broadcast placeholders

* Refactor out style button

* Purge dead code

* Fix variable name mismatches

* Remove unused variable

* Set minimum height for buffer and beaker section to 100px

* Allow configuration of icon's style in Button component

* Implement container customization

* Move order of defines for consistency

* Fix name check inconsistency

* Update bundle

* Style Fixes

Co-authored-by: Henri215 <77684085+Henri215@users.noreply.github.com>

* Remove space between if and opening parenthesis

* Allow setting tab switching without a beaker

* Allow container customization without a beaker

* allow preferences customization without a beaker

* Always show production tabs

* Only send placeholder names if buffer is not empty

* Prettier format

* remove stepPixelSize

[ci skip]

* Build and update tgui

* Apply suggestions from code review

Co-authored-by: Ryan <80364400+Sirryan2002@users.noreply.github.com>

* Use ui.user instead of usr

* Sanitize names

* Rename params

* [ci skip]

* Build and update tgui

* Rename create medicine variable `name` to `medicine_name`

* Use define instead of constant

* Move static data to ui_static_data

* [ci skip]

* Build and update tgui

---------

Co-authored-by: Arthri <41360489+a@users.noreply.github.com>
Co-authored-by: Henri215 <77684085+Henri215@users.noreply.github.com>
Co-authored-by: tgui <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Ryan <80364400+Sirryan2002@users.noreply.github.com>
2023-12-11 12:41:20 +00:00
..
2023-11-12 20:19:17 +00:00