kidesh

Status Background bar

8 posts in this topic

Hi,

So I added in a status bar but I had too many icons, so I took them out.

But it left a gap at the  end.

Does anyone know how to reduce the size of it?

I tried to open the icon its-self with text.veiw 2 but keep getting an error.

This is what am trying to reduce the size of.

 

Statusbar.PNG 

As you can see there is a gap at the end. 

 

Cheers

Kidesh

  • Like 1

Share this post


Link to post
Share on other sites

Here you see a model how you can set your status bar.

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'/> Wallet: $%4</t>
            <t shadow='1' shadowColor='#000000' color='%10'><img size='1.0'  shadowColor='#000000' image='addons\statusbar\icons\poptab_ca.paa' color='%10'/> Locker: $%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'/>Restart in %18 hr %19 min</t>",
            
                    "%",
                    count playableUnits,
                    _damage,
                    _wallet,
                    _hunger,
                    _thirst,
                    _serverFPS,
                    _energyPercent,
                    _stamina,
                    _colourDefault,
                    _colourDamage,
                    _colourHunger,
                    _colourThirst,
                    _colourEnergy,
                    _colourStamina,
                    format["%1/%2",_xx,_yy],
                    _dir,
                    _hours,
                    _minutes,
                    _locker                    
                ];
        
        };
};

 

 

Edited by Antraciet

Share this post


Link to post
Share on other sites
Advertisement
10 hours ago, Antraciet said:

Here you see a model how you can set your status bar.

  Hide 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'/> Wallet: $%4</t>
            <t shadow='1' shadowColor='#000000' color='%10'><img size='1.0'  shadowColor='#000000' image='addons\statusbar\icons\poptab_ca.paa' color='%10'/> Locker: $%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'/>Restart in %18 hr %19 min</t>",
            
                    "%",
                    count playableUnits,
                    _damage,
                    _wallet,
                    _hunger,
                    _thirst,
                    _serverFPS,
                    _energyPercent,
                    _stamina,
                    _colourDefault,
                    _colourDamage,
                    _colourHunger,
                    _colourThirst,
                    _colourEnergy,
                    _colourStamina,
                    format["%1/%2",_xx,_yy],
                    _dir,
                    _hours,
                    _minutes,
                    _locker                    
                ];
        
        };
};

 

 

I am familur with this and this is not what I am talking about. 

I am looking to change the size of the background bar. 

Share this post


Link to post
Share on other sites
57 minutes ago, kidesh said:

I am familur with this and this is not what I am talking about. 

I am looking to change the size of the background bar. 

I dont even know that this status-bar is still in the forums.

Well you can create a new image that fits to your needs or try to change the size in the statusbar dialog file, but that will simply change the complete sice with height and width...

Share this post


Link to post
Share on other sites
On 05/02/2017 at 3:03 PM, kidesh said:

I tried to open the icon its-self with text.veiw 2 but keep getting an error.

I have tried but its not letting me do anything. Just keeps coming up with an error.

Share this post


Link to post
Share on other sites
On 14/02/2017 at 11:11 AM, LePasi [superturds] said:

As far as I can tell, the background is a fixed image. Resizing it would result in wrong scaling, stretching, blurriness and so on.

What error message do you get, when you try to open the *.paa file with TexView ?

 

Cheers

Hi, 

 

I got it sorted thanks

  • Like 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

  • Recently Browsing   0 members

    No registered users viewing this page.