mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-04-28 13:17:58 +03:00
Fix C-Down Position with Anchor Left (#5423)
This commit is contained in:
parent
3d3d9c5226
commit
fec676bbf8
1 changed files with 2 additions and 1 deletions
|
@ -4112,7 +4112,8 @@ void Interface_DrawItemButtons(PlayState* play) {
|
|||
if (CVarGetInteger(CVAR_COSMETIC("HUD.CDownButton.UseMargins"), 0) != 0) {
|
||||
X_Margins_CD = Left_HUD_Margin;
|
||||
};
|
||||
C_Down_BTN_Pos[0] = (CVarGetInteger(CVAR_COSMETIC("HUD.CDownButton.PosX"), 0) + X_Margins_CD);
|
||||
C_Down_BTN_Pos[0] =
|
||||
OTRGetDimensionFromLeftEdge(CVarGetInteger(CVAR_COSMETIC("HUD.CDownButton.PosX"), 0) + X_Margins_CD);
|
||||
} else if (CVarGetInteger(CVAR_COSMETIC("HUD.CDownButton.PosType"), 0) == ANCHOR_RIGHT) {
|
||||
if (CVarGetInteger(CVAR_COSMETIC("HUD.CDownButton.UseMargins"), 0) != 0) {
|
||||
X_Margins_CD = Right_HUD_Margin;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue