Debug Monitor: Weird text alignment bug

xSINIQ

New Member
Hey guys, ive got an annoying problem with my debug monitor.

When i set align to center, it does center the text in de hint box, but it doesnt set the center on the string itself. So ita centeres but it sticks out to the right too much

Maybe someone else had this problem as well.

Im currently at work and will post a screen when i get home

Thanks in advance!

Send from my GT-I9100 using Tapatalk
 
so this is the screenshot:

debugmon.png


i have no idea what went wrong but this the code i have used, its basicly a copy paste of Matt L.'s code.

Code:
dayz_spaceInterrupt = {
    private ["_dikCode", "_handled"];
    _dikCode = _this select 1;
    _handled = false;
 
    if (_dikCode == 0x43) then {
        if (debugMonitor) then {
            debugMonitor = false;
            hintSilent "";
        } else {[] spawn fnc_debug;};
    };
    _handled
};
 
fnc_debug = {
    debugMonitor = true;
    while {debugMonitor} do
    {
 
        hintSilent parseText format ["
            <t size='1' font='Bitstream' align='center' color='#00CC00'>%1</t><br/>
            <t size='1' font='Bitstream' align='center' >[%2]</t><br/>
            <br/>
            <t size='1' font='Bitstream' align='left' color='#CC0000'>Blood: </t><t size='1' font='Bitstream' align='right'>%3</t><br/>
            <t size='1' font='Bitstream' align='left' color='#0066CC'>Humanity: </t><t size='1' font='Bitstream' align='right'>%4</t><br/>
            <br/>
            <t size='1' font='Bitstream' align='left' color='#FFBF00'>Zombies Killed: </t><t size='1' font='Bitstream' align='right'>%5</t><br/>
            <t size='1' font='Bitstream' align='left' color='#FFBF00'>Headshots: </t><t size='1' font='Bitstream' align='right'>%6</t><br/>
            <t size='1' font='Bitstream' align='left' color='#FFBF00'>Murders: </t><t size='1' font='Bitstream' align='right'>%7</t><br/>
            <t size='1' font='Bitstream' align='left' color='#FFBF00'>Bandits Killed: </t><t size='1' font='Bitstream' align='right'>%8</t><br/>
            <br/>
            <t size='1' font='Bitstream' align='left' color='#FFBF00'>Zombies: </t><t size='1' font='Bitstream' align='right'>%9 [%8]</t><br/>
            ",
            (name player),
            (gettext (configFile >> 'CfgVehicles' >> (typeof vehicle player) >> 'displayName')),
 
            (r_player_blood),
            round (player getVariable['humanity', 0]),
 
            (player getVariable['zombieKills', 0]),
            (player getVariable['headShots', 0]),
            (player getVariable['humanKills', 0]),
            (player getVariable['banditKills', 0]),
            (count entities "zZombie_Base"),
            ({alive _x} count entities "zZombie_Base")
        ];
        sleep 1;
 
    };
};
 
[] spawn fnc_debug;

Anyone has an idea? i see those awesome looking debug monitors everywhere, but mine keeps screwing up
 
Looks fine to me, and center works perfectly on my version. The only thing different about ours is how you list your options. Which really shouldn't cause a defunct center. Personally, I always thought it was neater to define at the top then at the bottom
Code:
",dayz_playerName,r_player_blood,round _humanity,_killsH,_killsB,_kills,_headShots,count entities "zZombie_Base",{alive _x} count entities "zZombie_Base",diag_fps,_banditCount,_heroCount,_pic];
 
Yeah, didnt think the code would be the problem, but i thought to let it be checked by one of you guys just in case.
so what could the problem be? missing files on server? client/server out of date?
 
Back
Top