Jump to content
Sign in to follow this  
Eraknelo

.paa image in action menu has no color

Recommended Posts

Hey people,

I have searched just about everywhere.

Used 2 different editors (Paint.NET, Photoshop CS6).

Used 2 different file formats (.PNG, .TGA).

Added alpha channel in Photoshop, with different transparency levels (black to white).

But, I can't for the life of me get my image in my action menu to show any kind of color.

Ty5f763.png

No matter what color/size/image I use, it's Always this dark-grayish.

Here's my addAction code:

_object addAction ["<img image='scripts\images\pick_up.paa' /><t color='#00FF00'>Pick Up</t>", "scripts\building\object_action.sqf", [_object, "pick-up"], 999, false, false, "", "vehicle _this == _this"];

Anyone have any clue what I'm doing on?

Thanks in advance,

- Eraknelo

Edited by Eraknelo

Share this post


Link to post
Share on other sites

What?! You can do that!? Neat!

What happens if you put the color tag outside the img tag?

Share this post


Link to post
Share on other sites

Tried that, no effect D:

Ever played the Wasteland mod? It has ugly orange icons next to the action. In Arma 3 as well, I believe.

Edited by Eraknelo

Share this post


Link to post
Share on other sites

what are the dimensions? Also shouldn't it be DXT1 or DXT5 in order for it to be in color?

Share this post


Link to post
Share on other sites

I had the same problems trying to import some of my custom HUD elements into the game from Arma2. But maybe as cobra mentions, they need to be DXT1 or DxT5 for Arma3 (w/e that means).

Edited by Pac Man

Share this post


Link to post
Share on other sites
what are the dimensions? Also shouldn't it be DXT1 or DXT5 in order for it to be in color?

Could you elaborate on this DXT you are talking about?

Share this post


Link to post
Share on other sites

the texture needs to be in the format 1:1 or 1:2 to be displayed it correctly, otherwise it will be transparent like yours.

Share this post


Link to post
Share on other sites

For anybody still looking for the answer:

 

Put the color attribute in the image tag.

 

Like so:

<img image='scripts\images\pick_up.paa' color="your_hex_color"/>

 

  • Like 1

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
Sign in to follow this  

×