Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add possibility to include string partials #48

Open
reaby opened this issue Jul 17, 2017 · 2 comments
Open

Add possibility to include string partials #48

reaby opened this issue Jul 17, 2017 · 2 comments

Comments

@reaby
Copy link
Contributor

reaby commented Jul 17, 2017

Hey,

I would like to use FML script builder with build in elements and custom scripts, but currently it's missing ability to inject script partials to the rendered script. Could it be possible to add pure string data to following positions:

  • before main()
  • inside main()
  • inside loop

I know it's possible to use labels, but it's not quite enough.
Current implementation adds <script> elements when needed, and FML script element is appended to last element. Problem comes, if I define global variables and functions at custom script, i get ManiaScript error, since #Import needs to be first statements for the script, now it's being middle of the rendered script.

@steeffeen-zz
Copy link
Owner

Thanks for the request. 👍

@reaby
Copy link
Contributor Author

reaby commented Jul 24, 2017

Thanks,
when would I expect this to be ready ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants