Jump to content
Sign in to follow this  
zaphod

hint styled dialog

Recommended Posts

Hi there,

how can i make dialogs look like a hint (with round corners) ?

Share this post


Link to post
Share on other sites

Try type=0 and style=128.

Share this post


Link to post
Share on other sites

That shouldn't cut it on it's own. You need to set the background to a paa with a rounded corner. You can actually use the same paa used in the hint box to do it. All you've got to do is look it up in ui.pbo.

Share this post


Link to post
Share on other sites

that was my first thought, but i didn't find any paa that looks like a hint... i'll take a look again, but i looked some times...

i found some ui_* graphics with separated corner graphics, but they are not round smile_o.gif

Share this post


Link to post
Share on other sites

UI.pbo\data\ui_corner_ca.paa

You'll probably want to put a copy of the file in your actual mission or project or whatever. When I did my particle parameter utility, a patch came out while I was in the middle of it and they changed the paths to the paas I used. It's happened before, and it can happen again, so it's better safe than sorry.

Oh, and you may want to try

style = 512;

Share this post


Link to post
Share on other sites

ok the image is a upper left corner (looks like radio commands) ... can i rotate images?

and what does these styles affekt?.. don't see any changes on images, frames or other resources?

Regards,

zap

Share this post


Link to post
Share on other sites

hmm ... so frame border styled can have round corners?? or is this a just big background image created in a grafik software?

that's what i'm dreaming of .. just to add a style and that's it... but

all i tried failed crazy_o.gif

but it looks nice CrashDome!... how to do it?!

Share this post


Link to post
Share on other sites

One of the styles will stretch the image to fill the specified area and mirror and flip it for the other quadrants. I'm not positive which exact style it is, but it's used in the ui elements. You'll have to look it up.

Share this post


Link to post
Share on other sites

hmmm .... so who has the hint for me how to do it? ... all these suggestions are quite good as i come closer ....

and how is a standard hint done? i can't find any paa image representing this dark grey one.

and i still can't wait CrashDome to answer about his suggestion smile_o.gif

Regards,

Zap

Share this post


Link to post
Share on other sites

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> class RscHint {

idd = 301;

movingEnable = 0;

controls[] = {"Background", "Hint"};

class Background {

type = VSoft;

idc = 101;

style = 128;

x = 0.0;

y = 0.02;

w = 0.28;

h = 0.06;

text = "";

colorBackground[] = {0.2, 0.15, 0.1, 0.8};

colorText[] = {0, 0, 0, 0};

font = "TahomaB";

sizeEx = 0;

};

found in bin\config.bin

Share this post


Link to post
Share on other sites
Do you have the value of VSoft ?

...

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">#define VSoft 0

Share this post


Link to post
Share on other sites

thanx all for help, on top T_D ... now i'm "experimenting" with mainly:

type=0;

style=128; //+x who knows ... and 512?

it works on images, and text and structured text's as well...

let me know what you found out...

kind regards!

Zap

Share this post


Link to post
Share on other sites

Sorry for the delay...

The group box is a style and is applied to a static control. Other controls are then place on top of it.

This is from SoW v2 for OFP (the screens you saw):

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">

#define CT_STATIC                   0

#define ST_GROUP_BOX                96

#define ST_GROUP_BOX2               112

class SOWRscGroupBox

{

type = CT_STATIC;

idc = -1;

style = ST_GROUP_BOX;

colorBackground[] = SOW_Background;

colorText[] = SOW_Text;

font = SOWFontTitle;

sizeEx = 0.04;

text =;

};

class SOWRscGroupBox2

{

type = CT_STATIC;

idc = -1;

style = ST_GROUP_BOX2;

colorBackground[] = SOW_Background;

colorText[] = SOW_Text;

font = SOWFontTitle;

sizeEx = 0.04;

text =;

};

Whatever you make the background color, the frame will be solid version of it. So as you can see in the pics if the background of the GroupBox is blue, but even if slightly transparent, the frame will be solid blue.

If you make your main background completely transparent... the groupbox background white and transparent, you will be left with a solid white round-cornered frame.

Share this post


Link to post
Share on other sites

i don't get it or i do something wrong ... someone get results close to that screenshot. is it possible in arma to get these results as in ofp?

a really simple working rounded frame example might help much.

and what about these new styles 96 and 112 ...

Rounded corners work nice with style 128. But i just cannot imagine how these frameborders are done.

Regards,

Zap

Share this post


Link to post
Share on other sites

They must have changed something. I will see if I can reproduce them. It should certainly be possible if it was in OFP.

Share this post


Link to post
Share on other sites

that would be really nice ... a simple box showing it will do it for me ...

Regards,

zap

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  

×