Thursday, December 29, 2011

Events in Shops and Adding Button



So now that we have shops it would be really cool to be able to add event buttons from xml. But to do that You would need an event system that could process the event call from the button and then feed that event to a text system. If only we had such a system... oh wait we do. Adding a button is simple... see the example below.

http://pastebin.com/AT5Waq6i

Note I build a label text system so that you can use generic buttons easily with out having pre-made buttons. It's that simple. And then anyone should be able to add there own button or there own event or hopefully with a little more luck there own quest.

Also built the rest of the shops added there xml and background. Tonight the actual shop shop parts I think... or more accurately the boring part. Or I may work on a new quest book screen...

Daisy

No comments:

Post a Comment