gruppe-adler / TvT_HuntingHoppers.fallujah

1 stars 0 forks source link

Balken ist zu Groß. Beißt sich mit DUI. #8

Closed AdlerSalbei closed 4 years ago

AdlerSalbei commented 4 years ago

Balken ist zu Groß. Beißt sich mit DUI.

20200817205851_1

nomisum commented 4 years ago

dein dui is zu groß ^^ #4k

AdlerSalbei commented 4 years ago

Ich glaube die hälft vom Bildschirm sollte dir reichen

diwako commented 4 years ago

https://github.com/gruppe-adler/TvT_HuntingHoppers.fallujah/blob/a40f40486af8c09e618e9d8e5fc9fd46247d7a9e/USER/functions/fn_areaBarCreate.sqf#L3-L8

In general i would say, use pixelGrid for x any y position values.

If you want the progress bar go beneath DUI then you need to create the control before DUI creates its controls. DUI creates it on PostInit for this reason, so it is possible to define yours in PreInit or init scripts by the mission.

Example from the CBRN script

// display gas mask overlay above ace nvg and below DUI
if !(isNil "ace_nightvision") then {
    "ace_nightvision_display" cutFadeOut 0;
};
"cbrn_gasmask_overlay" cutFadeOut 0;
if !(isNil "diwako_dui_radar") then {
    "diwako_dui_compass" cutFadeOut 0;
    "diwako_dui_namebox" cutFadeOut 0;
};