Sign in to follow this  
Guest

Help With Customizing Exile Status Panel

3 posts in this topic

Guest

Hello,

I am trying to add a fourth option to Exile's status panel (bottom left), and I am still very new to this so bare with me. Can someone help me understand how <displays> work and how I add one more as well as retrieve the ID? From what I understand, the problem I am facing is related to this part, which will replace e.g. HP values if using same display ID.

_display displayCtrl 1306;

I have manged to get the fourth option to show up when toggling panel by changing the initial loop like so:

if (ExileHudMode isEqualTo 4) then {
	ExileHudMode = 0;
};

I am currently overwriting ExileClient_gui_hud_renderStatsPanel.sqf with CfgExileCustomCode like so:

_time = (round(180 - (serverTime) / 60));
_hours = (floor(_time / 60));
_minutes = (_time - (_hours * 60));
_uptimeValueControl = _display displayCtrl 1306;
_uptimeValueControl ctrlSetText format ["%1:%2", _hours, _minutes];
_uptimeLabelControl = _display displayCtrl 1307;
_uptimeLabelControl ctrlSetTextColor [221/255, 38/255, 38/255, 1];
_uptimeValueControl ctrlSetTextColor [221/255, 38/255, 38/255, 1];

I am currently also overwriting ExileClient_gui_hud_toggleStatsBar.sqf like so:

_uptimeLabel = _display displayCtrl 1306;
_uptimeLabel ctrlShow (ExileHudMode isEqualTo 3);
_uptimeValue = _display displayCtrl 1307;
_uptimeValue ctrlShow (ExileHudMode isEqualTo 3);

How do I create another display aswell as setting the text to "uptime"?

Thanks in advance,

gooby

Share this post


Link to post
Share on other sites

You would probably need to make a new hud file also and include it in description.ext All of this is in your config.cpp (config.bin converted)

class UptimeLabel: RscText
					{
						idc=1312;
						x="10 * pixelW";
						y="64 * pixelH - 35 * pixelH";
						w="70 * pixelW";
						h="20 * pixelH";
						colorText[]=
						{
							"221/255",
							"38/255",
							"38/255",
							1
						};
						text="Uptime:";
						font="OrbitronLight";
						shadow=0;
						fixedWidth=0;
						linespacing=0;
						style=0;
						sizeEx="11 * pixelH";
						show="false";
					};
					class Uptime: RscText
					{
						idc=1313;
						x="55 * pixelW";
						y="64 * pixelH - 45 * pixelH";
						w="80 * pixelW";
						h="40 * pixelH";
						colorText[]={1,1,1,1};
						text="";
						font="OrbitronMedium";
						shadow=0;
						fixedWidth=0;
						linespacing=0;
						style=1;
						sizeEx="30 * pixelH";
						show="false";
					};

https://resources.bisimulations.com/wiki/Description.ext

http://killzonekid.com/arma-scripting-tutorials-gui-part-1/

 

Share this post


Link to post
Share on other sites
Advertisement

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.