Jump to content
Sign in to follow this  
thryckz

How to execute forms/dialogs in arma through action menu?

Recommended Posts

I just made a form using the UserInterfaceEditor and this is my result:

carDealer.hpp

class vehicleDPolice_frame: RscFrame
{
idc = 1800;
text = "Police Vehicle Garage";
x = 0.4375 * safezoneW + safezoneX;
y = 0.325 * safezoneH + safezoneY;
w = 0.12746 * safezoneW;
h = 0.27582 * safezoneH;
};
class vehicleDPolice_carSelection: RscListbox
{
idc = 1500;
x = 0.441147 * safezoneW + safezoneX;
y = 0.350926 * safezoneH + safezoneY;
w = 0.12121 * safezoneW;
h = 0.246177 * safezoneH;
};
class vehicleDPolice_apply: RscButton
{
idc = 1600;
text = "ASSIGN SELECTED SQUADCAR";
x = 0.438009 * safezoneW + safezoneX;
y = 0.602821 * safezoneH + safezoneY;
w = 0.124857 * safezoneW;
h = 0.0359039 * safezoneH;
};

What I am trying to accomplush is that when the policeOfficers "CarDealer_Police", the form will show up in addAction and when the person selects that action the form appears..

I know my .hpp is probably wrong, its just that whatever resource I looked at ( including the wiki ) they all gave me different answers. Shouldn't there be more pre-processors?

I also added the following into description

#include "police\carDealer.hpp"

Thanks for the help guys :D

Share this post


Link to post
Share on other sites

It is saying "police\cardealer.hpp" is not found.

This is the code I am running. I tried multiple patterns with no success.

_ok = createDialog "carDealer.hpp";
_ok = createDialog "police\cardealer.hpp";
_ok = createDialog "police\cardealer";
_ok = createDialog "cardealer";

Share this post


Link to post
Share on other sites

_ok = createDialog "carDealer";

and

#include "carDealer.hpp"

and the hpp should look something like

class carDealer
{
name=carDealer;
idd=-1;
movingEnable=1;
controlsBackground[]={BgWin};
objects[]={};
controls[]={vehicleDPolice_frame, vehicleDPolice_carSelection, vehicleDPolice_apply};



class vehicleDPolice_frame: RscFrame
{
idc = 1800;
text = "Police Vehicle Garage";
x = 0.4375 * safezoneW + safezoneX;
y = 0.325 * safezoneH + safezoneY;
w = 0.12746 * safezoneW;
h = 0.27582 * safezoneH;
};
class vehicleDPolice_carSelection: RscListbox
{
idc = 1500;
x = 0.441147 * safezoneW + safezoneX;
y = 0.350926 * safezoneH + safezoneY;
w = 0.12121 * safezoneW;
h = 0.246177 * safezoneH;
};
class vehicleDPolice_apply: RscButton
{
idc = 1600;
text = "ASSIGN SELECTED SQUADCAR";
x = 0.438009 * safezoneW + safezoneX;
y = 0.602821 * safezoneH + safezoneY;
w = 0.124857 * safezoneW;
h = 0.0359039 * safezoneH;
};



};

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  

×