thryckz 1 Posted January 2, 2013 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
MissileMoose 10 Posted January 2, 2013 http://forums.bistudio.com/showthread.php?144236-How-to-compile-into-a-GUI-Question :) Share this post Link to post Share on other sites
thryckz 1 Posted January 2, 2013 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
mikie boy 18 Posted January 2, 2013 _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