Jump to content
Toby77

[Improved] Statusbar Epoch-build(1070)

Recommended Posts

I decided to collaborate a couple of different statusbars.

All credits goes to: CreampieOsef - All The Others!

 

Screenshot

 

Download: Github

Installation: Drag the map status_bar into your mission.pbo.

Init.sqf: add the lines in your existing init.sqf file, or drag init.sqf into your mission.pbo:

// Status Bar

[] execVM "status_bar\fn_statusBar.sqf";

Description.ext: open up your existing description.ext and add the lines on the bottom:

class RscTitles
{
	#include "status_bar\dialog\statusBar.hpp"

};

 

BE Problems? Post your kicks.

 

It is possible to add additional status information, for example: Energy status display,

But keep in mind the background space is limited, Note: Toxicity will expand to 4/5 extra digits.

 

Did i forget any other Author? please send me a message i will update the post asap.

 

-Greetings

 

status.jpg

Share this post


Link to post
Share on other sites

great job :)

in

status_bar\dialog\statusBar.hpp

edit ligne 29 by this :

text = "status_bar\StatusBarBackground.paa";

in

status_bar\fn_statusBar.sqf

edit ligne 40 at 47 by this :

         <t shadow='1' shadowColor='#000000'><img size='1.0'  shadowColor='#000000' image='status_bar\icons\fps.paa'/> %1</t>
        <t shadow='1' shadowColor='#000000'><img size='1.6'  shadowColor='#000000' image='status_bar\icons\hunger.paa'/> %2</t>
        <t shadow='1' shadowColor='#000000'><img size='1.6'  shadowColor='#000000' image='status_bar\icons\thirst.paa'/> %3</t>
        <t shadow='1' shadowColor='#000000'><img size='1.0'  shadowColor='#000000' image='status_bar\icons\health.paa'/> %4</t>
        <t shadow='1' shadowColor='#000000'><img size='1.0'  shadowColor='#000000' image='status_bar\icons\biohazard.paa'/> %5</t>
        <t shadow='1' shadowColor='#000000'><img size='1.0'  shadowColor='#000000' image='status_bar\icons\nuclear.paa'/> %6</t>
        <t shadow='1' shadowColor='#000000'><img size='1.0'  shadowColor='#000000' image='status_bar\icons\money.paa'/> %7</t>
        <t shadow='1' shadowColor='#000000'><img size='1.6'  shadowColor='#000000' image='status_bar\icons\restart.paa'/>%8:%9</t>",

 

and All Right :)

Thank You

 

Share this post


Link to post
Share on other sites
4 hours ago, patmac said:

great job :)

in

status_bar\dialog\statusBar.hpp

edit ligne 29 by this :

text = "status_bar\StatusBarBackground.paa";

in

status_bar\fn_statusBar.sqf

edit ligne 40 at 47 by this :

         <t shadow='1' shadowColor='#000000'><img size='1.0'  shadowColor='#000000' image='status_bar\icons\fps.paa'/> %1</t>
        <t shadow='1' shadowColor='#000000'><img size='1.6'  shadowColor='#000000' image='status_bar\icons\hunger.paa'/> %2</t>
        <t shadow='1' shadowColor='#000000'><img size='1.6'  shadowColor='#000000' image='status_bar\icons\thirst.paa'/> %3</t>
        <t shadow='1' shadowColor='#000000'><img size='1.0'  shadowColor='#000000' image='status_bar\icons\health.paa'/> %4</t>
        <t shadow='1' shadowColor='#000000'><img size='1.0'  shadowColor='#000000' image='status_bar\icons\biohazard.paa'/> %5</t>
        <t shadow='1' shadowColor='#000000'><img size='1.0'  shadowColor='#000000' image='status_bar\icons\nuclear.paa'/> %6</t>
        <t shadow='1' shadowColor='#000000'><img size='1.0'  shadowColor='#000000' image='status_bar\icons\money.paa'/> %7</t>
        <t shadow='1' shadowColor='#000000'><img size='1.6'  shadowColor='#000000' image='status_bar\icons\restart.paa'/>%8:%9</t>",

 

and All Right :)

Thank You

 

Done..

Thanks for pointing that out! 

Share this post


Link to post
Share on other sites

Hi, Ive installed this on my server and looks great Im just having a small issue with the countdown timer. I havent edited the 4 hour but it says 5 hours till restart. How is this impacted from server time and can I just edit that line to not include server time? Its not set to start at any particular time at the moment so It would be good if it can just count down the 4 hours from whenever it was started. Thx @Toby77

Current line: _time = (round(300-(serverTime)/60));  //edit the '240' (60*4=240) to change the countdown timer if your server restarts are shorter or longer than 4 hour intervals

Share this post


Link to post
Share on other sites

If I understand you correctly you need to change the (round(300 into (round(240   because 60x5 = 300   and 60x4=240  

 

So:

Current line: _time = (round(300-(serverTime)/60));   Gives you a 5 hour countdown   (60 x 5)

Current line: _time = (round(240-(serverTime)/60));  Gives you a 4 hour countdown   (60 x 4)

Current line: _time = (round(180-(serverTime)/60));  Gives you a 3 hour countdown   (60 x 3)

Once changed, the timer should run out after 4 hours.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Advertisement
  • Supporters
  • Discord

×
×
  • Create New...