Toby77 Posted October 28, 2017 Report Share Posted October 28, 2017 I decided to collaborate a couple of different statusbars. All credits goes to: Creampie - Osef - 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 lesvieuxcrevards, Helion4, natoed and 1 other 4 Link to comment Share on other sites More sharing options...
Sneer Posted November 2, 2017 Report Share Posted November 2, 2017 Nice, looks great. Thanks Link to comment Share on other sites More sharing options...
patmac Posted November 5, 2017 Report Share Posted November 5, 2017 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 Toby77 1 Link to comment Share on other sites More sharing options...
Toby77 Posted November 5, 2017 Author Report Share Posted November 5, 2017 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! Link to comment Share on other sites More sharing options...
webbie Posted March 25, 2018 Report Share Posted March 25, 2018 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 Link to comment Share on other sites More sharing options...
Helion4 Posted March 25, 2018 Report Share Posted March 25, 2018 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. He-Man 1 Link to comment Share on other sites More sharing options...
webbie Posted March 26, 2018 Report Share Posted March 26, 2018 Omg I can't believe I didn't just change the 300 #facepalm. Too many hours staring at script I think. Thank you for pointing that out @Helion4. Link to comment Share on other sites More sharing options...
Helion4 Posted March 26, 2018 Report Share Posted March 26, 2018 ha, we've all been there mate a fresh pair of eyes can sometimes see better than yours. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now