Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HP bars misaligned with HUD while inside vehicles #51

Open
taelspinner opened this issue Aug 19, 2021 · 5 comments · May be fixed by #52
Open

HP bars misaligned with HUD while inside vehicles #51

taelspinner opened this issue Aug 19, 2021 · 5 comments · May be fixed by #52
Labels
bug Something isn't working

Comments

@taelspinner
Copy link
Contributor

taelspinner commented Aug 19, 2021

Description:

Lack of stance indicator on vehicle HUD leaves the plate/HP bars misaligned.

Steps to reproduce:

  • Enter a vehicle with APS on.
  • Look at the top right.
  • Plate/HP bars will not be aligned with the HUD.

Expected behavior:

HP and plate indicators should be aligned with the HUD in the top right under all circumstances.

Where did the issue occur?

  • Dedicated Multiplayer

Screenshots:

image
image

Compare normal infantry HUD:

image

@taelspinner taelspinner added the bug Something isn't working label Aug 19, 2021
@diwako
Copy link
Owner

diwako commented Aug 19, 2021

Happens as they align to the stamina bar and the vehicles control group is a different thing

@taelspinner
Copy link
Contributor Author

Possible to change the group of the control when you get into/out of a vehicle?

@diwako
Copy link
Owner

diwako commented Aug 19, 2021

you can change the position of it, iirc the control group for the ui elements is saved somewhere in uinamesapce

@diwako
Copy link
Owner

diwako commented Aug 19, 2021

Here is how you can get the main control group, it might be null in before and during post init

private _ctrlGroup = uiNamespace getVariable [QGVAR(mainControl), controlNull];

@taelspinner taelspinner linked a pull request Aug 23, 2021 that will close this issue
@topden
Copy link

topden commented Oct 31, 2022

I think it's better to just make a hood separately at the bottom right of the screen and not bind it to anything. how regular progress bars are made in different mods
http://joxi.ru/4Aklg1qTjwOwXr
these are just examples

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants