AggrorJorn Posted April 16, 2013 Share Posted April 16, 2013 Not really high priority but still worth mentioning. When you use multiline commented lines for the properties, the properties are still being used by the editor. Only '--' in front of a line makes the editor ignore a property. Link to comment Share on other sites More sharing options...
Rick Posted April 16, 2013 Share Posted April 16, 2013 This is why I think using comments to define things isn't the way to go about it. I think it should be defined with Lua tables 100%. Script.Speed = {} Script.Speed.type = int Script.Speed.value = 5 Script.Speed.label = "Speed" type, value, label are all hardcoded values that LE can look for while looking through the Script table of properties. I think this is cleaner and more readable even though it's more lines of code. We could also shorthand it via: Script.Speed = { type="int", value=5, label="Speed" } 1 Link to comment Share on other sites More sharing options...
beo6 Posted April 17, 2013 Share Posted April 17, 2013 I have no problem with the comments way. It reminds me a bit about the TYPO3 Flow Framework for PHP. Link to comment Share on other sites More sharing options...
AggrorJorn Posted April 17, 2013 Author Share Posted April 17, 2013 @ Rick: You don't have to define properties as comments. Without the '--' it works as well. However I do like the approach of the table. It is simple can be easily adjusted. The current way works okay as well, but some documented properties don't function well. So either documentation or the properties are incorrect. Link to comment Share on other sites More sharing options...
Josh Posted April 30, 2013 Share Posted April 30, 2013 FYI, the editor never actually executes the Lua scripts. This is confirmed, but low-priority. My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Josh Posted December 20, 2014 Share Posted December 20, 2014 Multi-line comments for script parameters will not be implemented, until noted otherwise. My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Recommended Posts