Jump to content
  • 0

Adding #include lines to RscTitles


Styx

Question

Hi guys, 

I'm having trouble with one part of the Zupa Single Currency install.

 

One of the steps requires me to add this:

class RscTitles
{
#include "addons\playerhud\hud.hpp"
};

#include "defines.hpp"
#include "gold\common.hpp"
#include "gold\bank_dialog.hpp"
#include "gold\give_player_dialog.hpp"

 

to the bottom of my description.ext

 

In my description.ext I already have an RscTitles which looks like this:

class RscTitles 
{
	class wm_disp {
		idd = -1;
		onLoad = "uiNamespace setVariable ['wm_disp', _this select 0]";
		fadein = 0;
		fadeout = 0;
		duration = 10e10;
		controlsBackground[] = {};
		objects[] = {};
		class controls {
			class wm_text2 {
				idc = 1;
				x = safeZoneX+0.027;//safeZoneW*0.01;
				y = safeZoneY+safeZoneH-0.16;
				w = 1.151*safeZoneH;
				h = 0.057*safeZoneH;
				shadow = 2;
				class Attributes
				{
					font = "EtelkaNarrowMediumPro";
					color = "00d5ff";
					align = "left"; // put "center" here if you want some background
					valign = "middle";
					shadow = 2;
				};
				colorBackground[] = { 1, 0.3, 0, 0 };  // uncomment and increase 4th number to have a background
				font = "EtelkaNarrowMediumPro";
				size = 0.06*safeZoneH;
				type = 13;
				style = 0;
				text="";
			};
		};
	};
};	

I've been messing around guessing where I can put the extra #include lines in but I honestly have no idea what I'm doing :P

Any help would be appreciated, thanks!

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

Not sure exactly what you mean there Stiflers..?

 

Do you mean have it like this?

 

class RscTitles 
{
#include "addons\playerhud\hud.hpp"
	class wm_disp {
		idd = -1;
		onLoad = "uiNamespace setVariable ['wm_disp', _this select 0]";
		fadein = 0;
		fadeout = 0;
		duration = 10e10;
		controlsBackground[] = {};
		objects[] = {};
		class controls {
			class wm_text2 {
				idc = 1;
				x = safeZoneX+0.027;//safeZoneW*0.01;
				y = safeZoneY+safeZoneH-0.16;
				w = 1.151*safeZoneH;
				h = 0.057*safeZoneH;
				shadow = 2;
				class Attributes
				{
					font = "EtelkaNarrowMediumPro";
					color = "00d5ff";
					align = "left"; // put "center" here if you want some background
					valign = "middle";
					shadow = 2;
				};
				colorBackground[] = { 1, 0.3, 0, 0 };  // uncomment and increase 4th number to have a background
				font = "EtelkaNarrowMediumPro";
				size = 0.06*safeZoneH;
				type = 13;
				style = 0;
				text="";
			};
		};
	};
};	

Doesn't it still need the other #include lines?

Link to comment
Share on other sites

  • 0

Not sure exactly what you mean there Stiflers..?

 

Do you mean have it like this?

 

class RscTitles 
{
#include "addons\playerhud\hud.hpp"
	class wm_disp {
		idd = -1;
		onLoad = "uiNamespace setVariable ['wm_disp', _this select 0]";
		fadein = 0;
		fadeout = 0;
		duration = 10e10;
		controlsBackground[] = {};
		objects[] = {};
		class controls {
			class wm_text2 {
				idc = 1;
				x = safeZoneX+0.027;//safeZoneW*0.01;
				y = safeZoneY+safeZoneH-0.16;
				w = 1.151*safeZoneH;
				h = 0.057*safeZoneH;
				shadow = 2;
				class Attributes
				{
					font = "EtelkaNarrowMediumPro";
					color = "00d5ff";
					align = "left"; // put "center" here if you want some background
					valign = "middle";
					shadow = 2;
				};
				colorBackground[] = { 1, 0.3, 0, 0 };  // uncomment and increase 4th number to have a background
				font = "EtelkaNarrowMediumPro";
				size = 0.06*safeZoneH;
				type = 13;
				style = 0;
				text="";
			};
		};
	};
};	

Doesn't it still need the other #include lines?

 

this is how i had mine with the walkamongstthedead addon and yes you do need the other #include lines

 

class RscTitles

{

#include "addons\playerhud\hud.hpp"

    class zCamoStatusGUI {

    idd = -1;

    fadeout=0;

    fadein=0;

        onLoad = "uiNamespace setVariable ['zCamo_GUI_display', _this select 0]";

        duration = 10e10;

        name= "zCamoGui";

        controlsBackground[] = {};

        objects[] = {};

        class controls {

            class zCamoIcon:RscPictureGUI {

            idc = 1;

            text="custom\walkamongstthedead\zombie.paa";

            x="0.958313 * safezoneW + safezoneX";

            y="0.43 * safezoneH + safezoneY";

            w=0.059999999;

            h=0.079999998;

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

            };

        };

    };

};

#include "defines.hpp"

#include "gold\common.hpp"

#include "gold\bank_dialog.hpp"

#include "gold\give_player_dialog.hpp"

#include "spawn\defines.hpp"

#include "spawn\class.hpp"

#include "spawn\halo.hpp"

#include "spawn\spawn.hpp"

#include "custom\extra_rc.hpp"

#include "custom\snap_pro\snappoints.hpp"

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Discord

×
×
  • Create New...