mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-12 10:42:37 +00:00
* Particle editor (#71110) ## About The Pull Request Demo: https://streamable.com/wnj3mf Features: - Full support for most gradients/vectors/numbers/generators/transforms ( I might have forgotten some of the more esoteric ones) - A "tutorial" section that explains the different rand/generation types and how physics works with pictures - Button for viewing what each var does - Selecting a particle type to set immediately - The generator types use defines now Not included: Color matrix support for color generators (I'm sorry but hell no) Special thanks to @ jlsnow301 for explaining js things to me ## Why It's Good For The Game Making cool stuf ## Changelog 🆑 refactor: Added a particle editor to VV dropdown which can be used by coders and admins to edit particle values on the fly easily. /🆑 Co-authored-by: TiviPlus <572233640+TiviPlus@ users.noreply.com> * Particle editor Co-authored-by: TiviPlus <57223640+TiviPlus@users.noreply.github.com> Co-authored-by: TiviPlus <572233640+TiviPlus@ users.noreply.com>
12 lines
645 B
Plaintext
12 lines
645 B
Plaintext
/**
|
|
* returns the arguments given to a generator and manually extracts them from the internal byond object
|
|
* returns:
|
|
* * flat list of strings for args given to the generator.
|
|
* * Note: this means things like "list(1,2,3)" will need to be processed
|
|
*/
|
|
/proc/return_generator_args(generator/target)
|
|
var/string_repr = "[target]" //the name of the generator is the string representation of it's _binobj, which also contains it's args
|
|
string_repr = copytext(string_repr, 11, length(string_repr)) // strips extraneous data
|
|
string_repr = replacetext(string_repr, "\"", "") // removes the " around the type
|
|
return splittext(string_repr, ", ")
|