Author Topic: Adding a picture  (Read 1666 times)

leroy_jenkins22

  • Guest
Adding a picture
« on: May 18, 2013, 05:11:50 am »
http://www.youtube.com/watch?v=TcDryHq3cE0

In this video the guy adds two arrows in but mine only appears with two red squares. How do I add an arrow image in?

nednones

  • Guest
Re: Adding a picture
« Reply #1 on: May 18, 2013, 11:21:47 am »
If you mean the two buttons at the bottom of the screen then look I suspect you are adding in the ".png" extension. With button add you only need to specify "Images/ButtonName". Leave the index number off the end as the Buttonadd sorts this out for you!

leroy_jenkins22

  • Guest
Re: Adding a picture
« Reply #2 on: May 18, 2013, 02:57:22 pm »
Thank you! So I have to call my buttons left and right?

leroy_jenkins22

  • Guest
Re: Adding a picture
« Reply #3 on: May 18, 2013, 03:37:10 pm »
I have looked at the comments of this video and there are people having the same problem. I have called two images left and right and it still wont work. Can I do like a viewadd or something? It would be great if someone could show me how.

Micboy

  • Jr. Member
  • **
  • Posts: 79
  • Karma: +0/-2
    • View Profile
Re: Adding a picture
« Reply #4 on: July 21, 2013, 01:15:53 pm »
Hiya,

So make sure you call the image file:
unpressed left button -  left1,png
pressed left button - left2.png
unpressed right button - right1.png
pressed right button - right2.png

Then do button add
int SmallButt = ButtonAdd(container_handle, "Images/left" , x, y, OnButton, 0);
int BigButt = ButtonAdd(container_handle, "Images/right" ,x,y, OnButton, 1);

Thank you and I hope that I answered your question,
Micboy

Please would you be able to answer my question here?
http://dragonfiresdk.net/forum/index.php?topic=633.0