sv3nxd
Member
So far I've been working with the solution of sanboxrunners gml_fmt which is an amazing resource and really helpful. But I'm wondering if there is a plan to ever make it a build-in feature of GMS2.
Woah! I've never seen that list, really exciting.Here take a look!
https://help.yoyogames.com/hc/en-us/articles/360022211472
it's under "Future Considerations"
You're probably right.. but that's a shame! plugin API would save Yoyo a lot of feature implementationIf they would document API for IDE (which exists from 2.0), then we could do it on our own in fact, so they shouldn't consider some of features on roadmap in fact, but let community made them. However, that API is probably too buggy, so that's why it's still kept internal.
@10thingsThatNeverHappenedHere take a look!
https://help.yoyogames.com/hc/en-us/articles/360022211472
it's under "Future Considerations"
IDE extensions are all code-signed and you can't get around that without modifying the IDE files, which is insufficiently legal to do.There's several people here on community, that cracks the possibilities of GMS so much, that it amazes me they still didn't found a way to hack and create sample IDE plugins. Must be not easy then, or it's somehow locked to not load files that aren't hardcoded on some list (as they don't publish API for IDE, it doesn't need to be open for any extensions in fact).
Well if they ever allow for people to develop IDE plugins that will probably change, no?IDE extensions are all code-signed and you can't get around that without modifying the IDE files, which is insufficiently legal to do.
So yes, somebody already tried that, I knew! That's understandable that they only allow signed ones, to prevent "unofficial plugins" begin made after they mentioned that API exists. So this is still for future.IDE extensions are all code-signed and you can't get around that without modifying the IDE files, which is insufficiently legal to do.
Not to get too off topic, but you can already do this with macros.Something that lets you rename built-in functions would be good. Like the opposite of how extensions can replace them, something where you choose a function name and tell it the source function
But there isn't a way to make them take arguments is there?Not to get too off topic, but you can already do this with macros.
as @samspade said you can do it with macros:But there isn't a way to make them take arguments is there?
This made me realize you can put variable names in the macro value, like: make_color_rgb(r, g, b) and it will use r g & b if they exist. Thanks for making me realize that
#macro string_size string_length
var a = string_size("this is a test");
show_debug_message(a); // prints "14"
Thanks, I didn't realize they'd made this change to macros in gms2as @samspade said you can do it with macros:
Not sure if this is something you want to be doing... but you can!Code:#macro string_size string_length var a = string_size("this is a test"); show_debug_message(a); // prints "14"