Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

1 decade ago by TigerJ

You may have seen other posts in code about a plugin I am trying to make. I have a nice working copy that is still WIP for features located at

https://github.com/TigerJ/DarcyMenu

demo: http://devbriggs.com/experiment/

in a console you can:
add an item
ig.game.darcy.addItem("test","testbutton","shoot",function(){console.log("I am a test")});

change a property and rebuild
ig.game.darcy.ButtonProperties.ButtonSize.y=25
ig.game.darcy.rebuildMenu()

I am curious if I have done some things wrong or in a non standard way. I am especially curious about how to properly have an instance of a plugin class update(), init(), and draw() without having the user specify each instance to do so.

any and all advice is greatly appreciated.

1 decade ago by Graphikos

Having them call update(), draw(), etc. is the correct way. It allows the user to control the order in which a plugin operates (if anything).
Page 1 of 1
« first « previous next › last »