mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Move hammer and pistol weapons (fixes #3872)
This commit is contained in:
parent
67bb0c3c07
commit
87ed889747
|
@ -916,7 +916,7 @@ void CMenus::RenderSettingsControls(CUIRect MainView)
|
|||
// movement settings
|
||||
{
|
||||
MovementSettings.VMargin(5.0f, &MovementSettings);
|
||||
MovementSettings.HSplitTop(490.0f, &MovementSettings, &WeaponSettings);
|
||||
MovementSettings.HSplitTop(445.0f, &MovementSettings, &WeaponSettings);
|
||||
RenderTools()->DrawUIRect(&MovementSettings, ColorRGBA(1, 1, 1, 0.25f), CUI::CORNER_ALL, 10.0f);
|
||||
MovementSettings.VMargin(10.0f, &MovementSettings);
|
||||
|
||||
|
@ -950,20 +950,20 @@ void CMenus::RenderSettingsControls(CUIRect MainView)
|
|||
MovementSettings.HSplitTop(20.0f, 0, &MovementSettings);
|
||||
}
|
||||
|
||||
UiDoGetButtons(0, 17, MovementSettings, MainView);
|
||||
UiDoGetButtons(0, 15, MovementSettings, MainView);
|
||||
}
|
||||
|
||||
// weapon settings
|
||||
{
|
||||
WeaponSettings.HSplitTop(10.0f, 0, &WeaponSettings);
|
||||
WeaponSettings.HSplitTop(145.0f, &WeaponSettings, &ResetButton);
|
||||
WeaponSettings.HSplitTop(190.0f, &WeaponSettings, &ResetButton);
|
||||
RenderTools()->DrawUIRect(&WeaponSettings, ColorRGBA(1, 1, 1, 0.25f), CUI::CORNER_ALL, 10.0f);
|
||||
WeaponSettings.VMargin(10.0f, &WeaponSettings);
|
||||
|
||||
TextRender()->Text(0, WeaponSettings.x, WeaponSettings.y + (14.0f + 5.0f + 10.0f - 14.0f * UI()->Scale()) / 2.f, 14.0f * UI()->Scale(), Localize("Weapon"), -1.0f);
|
||||
|
||||
WeaponSettings.HSplitTop(14.0f + 5.0f + 10.0f, 0, &WeaponSettings);
|
||||
UiDoGetButtons(17, 22, WeaponSettings, MainView);
|
||||
UiDoGetButtons(15, 22, WeaponSettings, MainView);
|
||||
}
|
||||
|
||||
// defaults
|
||||
|
|
Loading…
Reference in a new issue