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

Fix game HUD too low on narrow (<16:9) resolutions #2689

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Revert use LargeHUD.Rectangle.height
LargeHUD.ScreenHeight can be 0 right after you enable the large HUD,
so use LargeHUD.Rectangle.height instead, as before.
petchema committed Dec 26, 2024
commit 6e0b204887b33f8c93a72f90c94dc6dc4a2b2556
2 changes: 1 addition & 1 deletion Assets/Scripts/Game/UserInterface/HUDActiveSpells.cs
Original file line number Diff line number Diff line change
@@ -330,7 +330,7 @@ void AlignIcons(List<ActiveSpellIcon> icons, IconsPositioning iconsPositioning)
float effectiveScreenBottomY = Screen.height;
if (DaggerfallUI.Instance.DaggerfallHUD != null && DaggerfallUI.Instance.DaggerfallHUD.LargeHUD.Enabled)
{
effectiveScreenBottomY -= (int)DaggerfallUI.Instance.DaggerfallHUD.LargeHUD.ScreenHeight;
effectiveScreenBottomY -= (int)DaggerfallUI.Instance.DaggerfallHUD.LargeHUD.Rectangle.height;
}
effectiveScreenBottomY = effectiveScreenBottomY / LocalScale.y + 1; // + 1 so that -1 means bottom margin
int column = 0;