Page MenuHomeFeedback Tracker

drawIcon3d is broken [list of problems]
Feedback, WishlistPublic

Description

  1. Text align param does nothing, the text is always drawn under the icon and in the middle
  1. Side arrows are screwed up if the angle set on the icon is not 0, the arrows also turn and it looks funny.
  1. With showhud false, drawIcon3d doesn't show at all. Would be nice to have it drawn as showhud false is pretty valuable and is the only way to override Arma's default UI interaction.

Details

Legacy ID
3548882127
Severity
None
Resolution
Open
Reproducibility
Always
Operating System
Windows 7
Category
Engine

Event Timeline

Killzone_Kid set Category to Engine.Apr 11 2015, 9:16 AM
Killzone_Kid set Reproducibility to Always.
Killzone_Kid set Severity to None.
Killzone_Kid set Resolution to Open.
Killzone_Kid set Legacy ID to 3548882127.May 8 2016, 11:54 AM
Killzone_Kid edited a custom field.

Hi KK's. I have done an addon MGI_TG_V2 on Steam, thanks for some of your fabulous blog. http://steamcommunity.com/sharedfiles/filedetails/?id=324784118

My Arma 3 config is ver 1.42 + helo + Marksmen and every HUD's, tags, mines, stance are off, of course, to avoid any redundancy or overlay with my displays.
I just kept extended map info, useful for my auto-zooming GPS.

I'm French and I probably don't understand all fine details, but be sure my addon displays all drawIcon3D I want (and there are numerous!) in several cutRsc contexts. (As said in you blog "onEachFrame" overload memory stacks when game is paused, i prefered MEH).

So i write here this comment, because you add a note in BIKI which leads me to some questions.
Is it a dev version problem? In this case, I hope the next stable version will be issued without this "bug". Sorry for my English and thanks again for all your blog works.

Thanks for the report. We will look at it.

Another minor issue, that possibly needs to be addressed. The text alignment does not affect text on left and right arrows but does so on top and bottom one. Should probably ignore textAlign on arrows entirely.

Also when the font is larger than icon, the calculation of font positioning is wrong. Here left layout makes font go to the right, right makes it go to the right even more

onEachFrame {

    private "_private";
    _playerPos = getPosATL player;
    drawIcon3D [
        "\a3\ui_f\data\IGUI\Cfg\Radar\radar_ca.paa",
        [0,0,1,0.5],
        [_playerPos select 0,_playerPos select 1,2.3],
        5,
        5,
        direction player,
        "COMPASS",
        0,
        0.3,
        "PuristaMedium",
		"left",
		true
    ];

};

//^^^^^^^^^^^ draws to the RIGHT!!!!

onEachFrame {

    private "_private";
    _playerPos = getPosATL player;
    drawIcon3D [
        "\a3\ui_f\data\IGUI\Cfg\Radar\radar_ca.paa",
        [0,0,1,0.5],
        [_playerPos select 0,_playerPos select 1,2.3],
        5,
        5,
        direction player,
        "COMPASS",
        0,
        0.3,
        "PuristaMedium",
		"center",
		true
    ];

};

//^^^^^^^^^^^ center

onEachFrame {

    private "_private";
    _playerPos = getPosATL player;
    drawIcon3D [
        "\a3\ui_f\data\IGUI\Cfg\Radar\radar_ca.paa",
        [0,0,1,0.5],
        [_playerPos select 0,_playerPos select 1,2.3],
        5,
        5,
        direction player,
        "COMPASS",
        0,
        0.3,
        "PuristaMedium",
		"right",
		true
    ];

};

//^^^^^^^^^^^ even more right

The problem with text alignment seems to be connected to how it is calculated. If the icon width is taken as a measurement for text placement then when "left" align is selected the beginning of text should match the left limit of the icon. If "right" align is chosen, the *end* for text should match the right limit of the icon. At the moment it is the beginning of text that is matched, which results in wrong alignment.

sh4dow added a subscriber: sh4dow.May 21 2016, 7:09 PM
BIS_fnc_KK updated the task description. (Show Details)
BIS_fnc_KK set Operating System to Windows 7.
BIS_fnc_KK added a subscriber: Iceman.
BIS_fnc_KK added a comment.EditedFeb 11 2021, 11:19 PM

Revision: 147260, alignment fix
Revision: 147265, optional param to force drawing when HUD is hidden

BIS_fnc_KK changed the task status from Assigned to Feedback.Feb 11 2021, 11:19 PM
BIS_fnc_KK removed BIS_fnc_KK as the assignee of this task.Feb 15 2021, 12:01 AM
BIS_fnc_KK added a subscriber: BIS_fnc_KK.