DragonFireSDK Forum

Programming Discussions => Game Programming => Topic started by: carlos.yalluh@gmail.com on December 23, 2013, 02:27:35 am

Title: ViewAdd vs ButtonAdd == Same?
Post by: carlos.yalluh@gmail.com on December 23, 2013, 02:27:35 am
ButtonAdd makes an image with callback id.
ViewAdd makes an image with callback id.

They have identical parameters, so what is the damn difference? (image, x, y, name, id)

-Carl.
Title: Re: ViewAdd vs ButtonAdd == Same?
Post by: expleo on January 31, 2014, 09:04:49 am
The buttonAdd actualy creates a viewadd with two images associated and a touchstate that updates what image is shown.

You can create a view, then have an on-touch check that uses a viewsetimage, but easier to use buttonadd to create a button-like feature.