PDA

View Full Version : FREE: Class Action Plugin


Centauri Soldier
08-17-2009, 01:01 AM
Why Use Classes?
Well, after reading this (http://www.indigorose.com/forums/showthread.php?t=27664) by Imagine Programming, I began digging into class definitions for VB and Java and began realizing how beneficial they could be in AMS. Although this is not what Imagine Programming was talking about, the idea itself was inspiring.

What Does the Class Action Plugin Do?
Basically, if you wanted a certain number of Pages to have certain like properties(such as background type and color) then you would create a table with those properties and create a class. Once the class has been created it can be assigned to any page that you want. The specified properties(in the class) will be reflected in the pages' properties without affecting the other page properties. This mechanism works for objects and dialogs as well.
The structure provided by the Class Action Plugin enables the programmer to be more efficient and more organized when dealing with a large amount of objects, pages or dialogs(DialogEx).

Per usual, please let me know if you find any bugs or would like more features.

Enjoy! :D

ShadowUK
08-17-2009, 04:23 AM
It's basically a slightly easier method of Lua Object Orientated Programming but for me it's harder, I'd rather use the Lua OOP model but nice..

Imagine Programming
08-17-2009, 05:46 AM
Nice to port it to a plugin mate, well done :yes

Centauri Soldier
08-17-2009, 12:16 PM
Thanks guys. You know, it would be pretty cool to see your idea in plugin form too Bas. I might just be able to use it if it were lol.

Imagine Programming
08-17-2009, 12:27 PM
Thanks guys. You know, it would be pretty cool to see your idea in plugin form too Bas. I might just be able to use it if it were lol.

Feel free to create a plugin from it :) I used it as a little example about the possibilities of lua :yes

Centauri Soldier
08-17-2009, 12:53 PM
I will leave making the plugin up to you, Bas. That bit you made is, at least for now, out of my skill base.

How's the other plugin going btw?

Imagine Programming
08-17-2009, 02:34 PM
I will leave making the plugin up to you, Bas. That bit you made is, at least for now, out of my skill base.

How's the other plugin going btw?

Okay, I'll port it to a plugin when the other plugin is done.

The other plugin is going well, your suggestions are all in there,
i just need to add the last one you suggested and then it should be done (If I don't think of any other functions)

Centauri Soldier
08-18-2009, 02:22 PM
Version 1.1.0.0
Added all action arguments to XML file.
Added the ability for the program to detect whether or not a dialog is active.