xtr3m3

Statusbar Script?

411 posts in this topic

On 24.10.2016 at 10:27 PM, Kronik said:

Anyone know how to add locker and on player money to same icon like this:

8efe898c05fbe47bb01256b5eac1956e.png

As example:

You delete lines 6 and 7

Spoiler

		//display the information 
		((uiNamespace getVariable "osefStatusBarAdmin")displayCtrl 55554)ctrlSetStructuredText parseText 
			format["
			<t shadow='1' shadowColor='#000000' color='%10'><img size='1.3'  shadowColor='#000000' image='addons\statusbar\icons\players.paa' color='%10'/> %2</t>
			<t shadow='1' shadowColor='#000000' color='%11'><img size='1.0'  shadowColor='#000000' image='addons\statusbar\icons\health.paa' color='%11'/> %3%1</t> 
			<t shadow='1' shadowColor='#000000' color='%10'><img size='1.0'  shadowColor='#000000' image='addons\statusbar\icons\poptab_ca.paa' color='%10'/> %4</t> 
			<t shadow='1' shadowColor='#000000' color='%10'><img size='1.0'  shadowColor='#000000' image='addons\statusbar\icons\locker.paa' color='%10'/> %20</t>			
			<t shadow='1' shadowColor='#000000' color='%12'><img size='1.3'  shadowColor='#000000' image='addons\statusbar\icons\hunger.paa' color='%12'/> %5%1</t> 
			<t shadow='1' shadowColor='#000000' color='%13'><img size='1.3'  shadowColor='#000000' image='addons\statusbar\icons\thirst.paa' color='%13'/> %6%1</t> 
			<t shadow='1' shadowColor='#000000' color='%15'><img size='1.0'  shadowColor='#000000' image='addons\statusbar\icons\exile.paa' color='%10'/> %9</t> 
			<t shadow='1' shadowColor='#000000' color='%15'><img size='1.0'  shadowColor='#000000' image='addons\statusbar\icons\fps.paa' color='%10'/> %7</t>
			<t shadow='1' shadowColor='#000000' color='%15'><img size='1.0'  shadowColor='#000000' image='addons\statusbar\icons\compass.paa' color='%10'/> %17</t> 
			<t shadow='1' shadowColor='#000000' color='%10'><img size='1.2'  shadowColor='#000000' image='addons\statusbar\icons\restart.paa' color='%10'/>%18:%19</t>
			<t shadow='1' shadowColor='#000000' color='%15'><img size='1.0'  shadowColor='#000000' image='addons\statusbar\icons\body.paa' color='%10'/> %21</t>
			<t shadow='1' shadowColor='#000000' color='%15'><img size='1.0'  shadowColor='#000000' image='addons\statusbar\icons\temp.paa' color='%10'/> %22</t>",				
					"%",                       //1
					count playableUnits,       //2
					_damage,                  //3
					_wallet,                  //4
					_hunger,                 //5
					_thirst,                 //6
					_serverFPS,               //7
					_energyPercent,          //8
					_stamina,               //9
					_colourDefault,          //10
					_colourDamage,           //11
					_colourHunger,           //12
					_colourThirst,           //13
					_colourEnergy,           //14
					_colourStamina,          //15
					format["%1/%2",_xx,_yy], //16
					_dir,                   //17
					_hours,                 //18
					_minutes,              //19
                    _lockers,              //20
					_bodyTemperature,      //21
					_environmentTemperature//22

 

 

and same place add this line:

Spoiler

<t shadow='1' shadowColor='#000000' color='%10'><img size='1.0'  shadowColor='#000000' image='addons\statusbar\icons\poptab_ca.paa' color='%10'/> %20|%4</t>

 

Edited by SadBoy1981

Share this post


Link to post
Share on other sites
5 hours ago, SadBoy1981 said:

As example:

You delete lines 6 and 7

  Reveal hidden contents


		//display the information 
		((uiNamespace getVariable "osefStatusBarAdmin")displayCtrl 55554)ctrlSetStructuredText parseText 
			format["
			<t shadow='1' shadowColor='#000000' color='%10'><img size='1.3'  shadowColor='#000000' image='addons\statusbar\icons\players.paa' color='%10'/> %2</t>
			<t shadow='1' shadowColor='#000000' color='%11'><img size='1.0'  shadowColor='#000000' image='addons\statusbar\icons\health.paa' color='%11'/> %3%1</t> 
			<t shadow='1' shadowColor='#000000' color='%10'><img size='1.0'  shadowColor='#000000' image='addons\statusbar\icons\poptab_ca.paa' color='%10'/> %4</t> 
			<t shadow='1' shadowColor='#000000' color='%10'><img size='1.0'  shadowColor='#000000' image='addons\statusbar\icons\locker.paa' color='%10'/> %20</t>			
			<t shadow='1' shadowColor='#000000' color='%12'><img size='1.3'  shadowColor='#000000' image='addons\statusbar\icons\hunger.paa' color='%12'/> %5%1</t> 
			<t shadow='1' shadowColor='#000000' color='%13'><img size='1.3'  shadowColor='#000000' image='addons\statusbar\icons\thirst.paa' color='%13'/> %6%1</t> 
			<t shadow='1' shadowColor='#000000' color='%15'><img size='1.0'  shadowColor='#000000' image='addons\statusbar\icons\exile.paa' color='%10'/> %9</t> 
			<t shadow='1' shadowColor='#000000' color='%15'><img size='1.0'  shadowColor='#000000' image='addons\statusbar\icons\fps.paa' color='%10'/> %7</t>
			<t shadow='1' shadowColor='#000000' color='%15'><img size='1.0'  shadowColor='#000000' image='addons\statusbar\icons\compass.paa' color='%10'/> %17</t> 
			<t shadow='1' shadowColor='#000000' color='%10'><img size='1.2'  shadowColor='#000000' image='addons\statusbar\icons\restart.paa' color='%10'/>%18:%19</t>
			<t shadow='1' shadowColor='#000000' color='%15'><img size='1.0'  shadowColor='#000000' image='addons\statusbar\icons\body.paa' color='%10'/> %21</t>
			<t shadow='1' shadowColor='#000000' color='%15'><img size='1.0'  shadowColor='#000000' image='addons\statusbar\icons\temp.paa' color='%10'/> %22</t>",				
					"%",                       //1
					count playableUnits,       //2
					_damage,                  //3
					_wallet,                  //4
					_hunger,                 //5
					_thirst,                 //6
					_serverFPS,               //7
					_energyPercent,          //8
					_stamina,               //9
					_colourDefault,          //10
					_colourDamage,           //11
					_colourHunger,           //12
					_colourThirst,           //13
					_colourEnergy,           //14
					_colourStamina,          //15
					format["%1/%2",_xx,_yy], //16
					_dir,                   //17
					_hours,                 //18
					_minutes,              //19
                    _lockers,              //20
					_bodyTemperature,      //21
					_environmentTemperature//22

 

 

and same place add this line:

  Hide contents


<t shadow='1' shadowColor='#000000' color='%10'><img size='1.0'  shadowColor='#000000' image='addons\statusbar\icons\poptab_ca.paa' color='%10'/> %20|%4</t>

 

Thanks for helping but ive done this all works well but i get poptabs as any|20 so on player works but not locker :S

Share this post


Link to post
Share on other sites
Advertisement

As example: server fps

 

 

 

this line 


<t shadow='1' shadowColor='#000000' color='%15'><img size='1.0'  shadowColor='#000000' image='addons\statusbar\icons\fps.paa' color='%10'/> %7</t>

where %7</t> end of line show fps.

what number you need you can see few lines downside i comment numbers, you can understand what nummber u need:


					"%",                       //1
					count playableUnits,       //2
					_damage,                  //3
					_wallet,                  //4
					_hunger,                 //5
					_thirst,                 //6
					_serverFPS,               //7
					_energyPercent,          //8
					_stamina,               //9
					_colourDefault,          //10
					_colourDamage,           //11
					_colourHunger,           //12
					_colourThirst,           //13
					_colourEnergy,           //14
					_colourStamina,          //15
					format["%1/%2",_xx,_yy], //16
					_dir,                   //17
					_hours,                 //18
					_minutes,              //19
                    _lockers,              //20
					_bodyTemperature,      //21
					_environmentTemperature//22

and also this FPS line must to be defined somewhere in first lines in script, looks like this so we have


_serverFPS,			     //7

and its defined like this:


			_serverFPS = round diag_fps;

 

 

Edited by SadBoy1981

Share this post


Link to post
Share on other sites
On 28/10/2016 at 11:36 AM, SadBoy1981 said:

As example: server fps

 

  Reveal hidden contents

 

this line 



<t shadow='1' shadowColor='#000000' color='%15'><img size='1.0'  shadowColor='#000000' image='addons\statusbar\icons\fps.paa' color='%10'/> %7</t>

where %7</t> end of line show fps.

what number you need you can see few lines downside i comment numbers, you can understand what nummber u need:



					"%",                       //1
					count playableUnits,       //2
					_damage,                  //3
					_wallet,                  //4
					_hunger,                 //5
					_thirst,                 //6
					_serverFPS,               //7
					_energyPercent,          //8
					_stamina,               //9
					_colourDefault,          //10
					_colourDamage,           //11
					_colourHunger,           //12
					_colourThirst,           //13
					_colourEnergy,           //14
					_colourStamina,          //15
					format["%1/%2",_xx,_yy], //16
					_dir,                   //17
					_hours,                 //18
					_minutes,              //19
                    _lockers,              //20
					_bodyTemperature,      //21
					_environmentTemperature//22

and also this FPS line must to be defined somewhere in first lines in script, looks like this so we have



_serverFPS,			     //7

and its defined like this:



			_serverFPS = round diag_fps;

 

 

Awesome status bar man. I'm using RZ_Infection on my server and I was wondering if someone had the infection icon and code for the status bar?

Share this post


Link to post
Share on other sites
1 hour ago, HAM said:

Awesome status bar man. I'm using RZ_Infection on my server and I was wondering if someone had the infection icon and code for the status bar?

Same here as well, would love to add that to my status bar. Hmm...

Share this post


Link to post
Share on other sites
On 30.10.2016 at 4:22 AM, Heavy said:

Same here as well, would love to add that to my status bar. Hmm...

Not tested but you can try it as i dont have server to test it with infection icon.

Here ya go with infection icon:

StatusBar with infection, temp, locker etc... =)

With same icon for wallet and locker + infection

StatusBar with one icon for Wallet and Locker + infection icon

and same icon for wallet and locker without infection

StatusBar with one icon for Wallet and Locker without infection

Part of script for infection i take from here.

 

Let me know if one of version not working, cant test it so try them out! =)

Edited by SadBoy1981
  • Like 3
  • Thanks 1

Share this post


Link to post
Share on other sites
3 hours ago, SadBoy1981 said:

Not tested but you can try it as i dont have server to test it with infection icon.

Here ya go with infection icon:

StatusBar with infection, temp, locker etc... =)

With same icon for wallet and locker + infection

StatusBar with one icon for Wallet and Locker + infection icon

and same icon for wallet and locker without infection

StatusBar with one icon for Wallet and Locker without infection

Part of script for infection i take from here.

 

Let me know if one of version not working, cant test it so try them out! =)

Sweet SB! I'll give it a test and let you know, thanks again.

Share this post


Link to post
Share on other sites
18 hours ago, SadBoy1981 said:

Glad to help, hope its working! =)

Works perfect SB, thanks again for the assistance, you rock! 

  • Like 1

Share this post


Link to post
Share on other sites
On 31/10/2016 at 11:19 AM, SadBoy1981 said:

Not tested but you can try it as i dont have server to test it with infection icon.

Here ya go with infection icon:

StatusBar with infection, temp, locker etc... =)

With same icon for wallet and locker + infection

StatusBar with one icon for Wallet and Locker + infection icon

and same icon for wallet and locker without infection

StatusBar with one icon for Wallet and Locker without infection

Part of script for infection i take from here.

 

Let me know if one of version not working, cant test it so try them out! =)

Tested the first one and it works perfect with RZ infection! Thank you very much for taking time to share this with us! =)

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

  • Recently Browsing   0 members

    No registered users viewing this page.