But, when i try to generate code from this, i get:
Transparency = 0 it´s ok, but it would be better to for me to have local Transparency = 0
Any tips on how can i achieve this?
--
You received this message because you are subscribed to the Google Groups "Blockly" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blockly+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
----
You received this message because you are subscribed to a topic in the Google Groups "Blockly" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/blockly/VuG4yF5jJXA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to blockly+unsubscribe@googlegroups.com.
Thanks very much! I will give it a try!
2017-05-24 13:57 GMT-03:00 'Cory Diers' via Blockly <blo...@googlegroups.com>:
What generator file are you using in your app? My guess is that you're using lua_compressed.js as your generator, in which case, you need to rebuild your lua generator file after making changes. Two options - either use the raw generator files - so instead of:
<script src="...lua_compressed.js"></script>You import<script src="...generators/lua/variables.js></script>(Note there are several files in this folder, you'll need to import every file that contains generators for blocks you're using, or build a new generators file that has all the blocks you need.)OR, you can use the build script (build.py) to regenerate the compressed files. Assuming you're changing the files in generators/lua, this should pick up your changes and include them when you refresh the page.
On Wed, May 24, 2017 at 7:49 AM, Arthur G. <arthur.g...@gmail.com> wrote:Hello guys.--
I trying to add the prefix "local" before the name of any created variable with lua generator. I went through the .js file where the block VARIABLES is created and returns it´s code , and i tried this:
But, when i try to generate code from this, i get:
Transparency = 0 it´s ok, but it would be better to for me to have local Transparency = 0
Any tips on how can i achieve this?
You received this message because you are subscribed to the Google Groups "Blockly" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blockly+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--