Jump to content
arma_max

How can I draw a line/rectangle/circle in cutRsc?

Recommended Posts

Hi,

 

I am playing around with cutRsc and am wondering how my class needs to look like when I want to draw something like a simple line, rectangle, box or circle?

Does anyone here have some examples to look at?

 

Max

Share this post


Link to post
Share on other sites

Ok, so I have found this for lines

class MyLine:RscText
{
  idc = 3000; //control reference
  style = ST_LINE;
  x = 0.01 * safezoneW + safezoneX;
  y = 0.01 * safezoneH + safezoneY;
  w = 0.10 * safezoneW;
  h = 0.30 * safezoneH;
  colorText[] = {0.2941,0.8745,0.2157,1.0};
};

and this for frames/boxes

 

class MyFrame:RscFrame
{
  type = CT_STATIC;
  idc = 3000;
  style = 64;
  x = 0.01 * safezoneW + safezoneX;
  y = 0.01 * safezoneH + safezoneY;
  w = 0.10 * safezoneW;
  h = 0.30 * safezoneH;
  shadow = 2;
  colorBackground[] = {0,0,0,0};
  colorText[] = {1,1,1,1};
  font = "Zeppelin32";
  sizeEx = 0.02;
  text = "";
};

But nothing that would be a circle.

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

×