PDA

View Full Version : Free: Goto plugin


Centauri Soldier
07-13-2009, 08:52 PM
Someone on the forums was asking about goto a few days back so I whipped up this little plugin.

Please let me know if you find any bugs in the code.

All suggestion are most welcome.

Please email any suggestions or bug reports to my email listed in the plugin.

By the way, I used someone's DelimitedStringtoTable function but I'm not sure who's it was. If you want credit please email me your code and I'll be happy to include your name and website in the next release.

ShadowUK
07-14-2009, 11:40 AM
http://imgs.xkcd.com/comics/goto.png

Centauri Soldier
07-14-2009, 12:17 PM
lamo...:D. In all fairness though, I included a dinosaur warning in the readme.

Imagine Programming
07-14-2009, 02:30 PM
lamo...:D. In all fairness though, I included a dinosaur warning in the readme.

Hahaha :p
[10 char limit]

ronwilliams
07-15-2009, 05:33 AM
I was the Dinosaur that asked about this in the forum!

This is a great little add-on!

You put a huge smile on my face..


Thanks

Centauri Soldier
07-15-2009, 04:48 PM
Glad to help. :)

Let me know if you find anything that needs fixed or if you want any other additions to the plugin and I'll see what I can do.

Centauri Soldier
07-19-2009, 07:53 PM
Here's an update to the Goto plugin.

Version 1.1.0.0.
Updated code to use the LUA HELPER FUNCTIONS by MicroByte
Added the following actions:
Goto.PageSection
Goto.PageObjectSection
Goto.DialogSection
Goto.DialogObjectSection

You can now create function-type sections by simply adding an open tag at the desired start line and another close tag at the last line. It's kinda like using a function system without creating any functions. You simply use a commented html/xml open and close tag pair.

Example

[place this on a button]

Goto.PageSection("Page1", "On Audio", "Test Section");


[place this in your On Audio event on Page1 (to reflect the above code)]
--This is a test
Dialog.Message("Line", "Line 2");
Dialog.Message("Line", "Line 3");
Dialog.Message("Line", "Line 4");--<Test Section>
Dialog.Message("Line", "Line 5");
Dialog.Message("Line", "Line 6");
Dialog.Message("Line", "Line 7");
Dialog.Message("Line", "Line 8");
Dialog.Message("Line", "Line 9");
Dialog.Message("Line", "Line 10");
Dialog.Message("Line", "Line 11");
Dialog.Message("Line", "Line 12");--</Test Section>
Dialog.Message("Line", "Line 13");
Dialog.Message("Line", "Line 14");
Dialog.Message("Line", "Line 15");
--End Test

Another advantage of using sections over line numbers is that the line numbers can be dynamic without affecting your code meaning that you can add and delete lines of code and your sections can still be executed regardless of line number changes.