Jump to content
sagent54

Adding image to background control in dialog

Recommended Posts

Good day everyone! Week ago i started learning SQF and made some little experience to build light dialogs. So i decided to add image in my dialog but anything i found at Bohemia forum and Wiki is how to add image to hints. I'll be glad if someone can explain me how can i do this with .hpp language. Thanks in advance!

Share this post


Link to post
Share on other sites

@sagent54, to add a picture to a control, use 0 as it's type, 48 as it's style and set path to picture to text property, e.g.:

class ctrlPicture
{
    style = 48;
    text = "path/to/picture.hpp";
    type = 0;
};

 

  • Like 1

Share this post


Link to post
Share on other sites
11 minutes ago, Schatten said:

@sagent54, to add a picture to a control, use 0 as it's type, 48 as it's style and set path to picture to text property, e.g.:


ctrlPicture
{
    style = 48;
    text = "path/to/picture.hpp";
    type = 0;
};

 

Thank you a lot! Can you please explain how it works? There are no any information about ctrlPicture at Bohemia forums 😞

Share this post


Link to post
Share on other sites
2 minutes ago, sagent54 said:

Can you please explain how it works? There are no any information about ctrlPicture at Bohemia forums

It's difficult to explain short. I recommend you read about dialogs here. Also there are nice tutorials written by @killzone_kid, first part here.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×