(4c3f5c691) Changed default radio keybind to R and creature attack keybind to 3rd mouse button. Radio key is used much more frequently than the attack key, so it makes sense for it to be closer to WASD (+ R for radio is more intuitive).
This commit is contained in:
@@ -773,6 +773,66 @@ namespace Barotrauma
|
||||
}
|
||||
};
|
||||
|
||||
var resetControlsHolder = new GUILayoutGroup(new RectTransform(new Vector2(1.0f, 0.07f), controlsLayoutGroup.RectTransform), isHorizontal: true)
|
||||
{
|
||||
RelativeSpacing = 0.02f
|
||||
};
|
||||
|
||||
new GUIButton(new RectTransform(new Vector2(0.3f, 1.0f), resetControlsHolder.RectTransform), TextManager.Get("SetDefaultBindings"))
|
||||
{
|
||||
ToolTip = TextManager.Get("SetDefaultBindingsToolTip"),
|
||||
OnClicked = (button, data) =>
|
||||
{
|
||||
ResetControls(legacy: false);
|
||||
return true;
|
||||
}
|
||||
};
|
||||
|
||||
new GUIButton(new RectTransform(new Vector2(0.3f, 1.0f), resetControlsHolder.RectTransform), TextManager.Get("SetLegacyBindings"))
|
||||
{
|
||||
ToolTip = TextManager.Get("SetLegacyBindingsToolTip"),
|
||||
OnClicked = (button, data) =>
|
||||
{
|
||||
ResetControls(legacy: true);
|
||||
return true;
|
||||
}
|
||||
};
|
||||
|
||||
//spacing
|
||||
new GUIFrame(new RectTransform(new Vector2(1.0f, 0.02f), generalLayoutGroup.RectTransform), style: null);
|
||||
|
||||
new GUIButton(new RectTransform(new Vector2(0.3f, 1.0f), buttonArea.RectTransform, Anchor.BottomLeft),
|
||||
TextManager.Get("Cancel"), style: "GUIButtonLarge")
|
||||
{
|
||||
IgnoreLayoutGroups = true,
|
||||
OnClicked = (x, y) =>
|
||||
{
|
||||
if (UnsavedSettings)
|
||||
{
|
||||
LoadPlayerConfig();
|
||||
}
|
||||
if (Screen.Selected == GameMain.MainMenuScreen) GameMain.MainMenuScreen.ReturnToMainMenu(null, null);
|
||||
GUI.SettingsMenuOpen = false;
|
||||
return true;
|
||||
}
|
||||
};
|
||||
|
||||
new GUIButton(new RectTransform(new Vector2(0.3f, 1.0f), buttonArea.RectTransform, Anchor.BottomCenter),
|
||||
TextManager.Get("Reset"), style: "GUIButtonLarge")
|
||||
{
|
||||
IgnoreLayoutGroups = true,
|
||||
OnClicked = (button, data) =>
|
||||
{
|
||||
// TODO: add a prompt
|
||||
LoadDefaultConfig();
|
||||
CheckBindings(true);
|
||||
ApplySettings();
|
||||
ResetSettingsFrame();
|
||||
CreateSettingsFrame();
|
||||
return true;
|
||||
}
|
||||
};
|
||||
|
||||
applyButton = new GUIButton(new RectTransform(new Vector2(0.3f, 1.0f), buttonArea.RectTransform, Anchor.BottomRight),
|
||||
TextManager.Get("ApplySettingsButton"), style: "GUIButtonLarge")
|
||||
{
|
||||
|
||||
@@ -305,7 +305,7 @@ namespace Barotrauma
|
||||
keyMapping[(int)InputType.Left] = new KeyOrMouse(Keys.A);
|
||||
keyMapping[(int)InputType.Right] = new KeyOrMouse(Keys.D);
|
||||
keyMapping[(int)InputType.Run] = new KeyOrMouse(Keys.LeftShift);
|
||||
keyMapping[(int)InputType.Attack] = new KeyOrMouse(Keys.R);
|
||||
keyMapping[(int)InputType.Attack] = new KeyOrMouse(2);
|
||||
keyMapping[(int)InputType.Crouch] = new KeyOrMouse(Keys.LeftControl);
|
||||
keyMapping[(int)InputType.Grab] = new KeyOrMouse(Keys.G);
|
||||
keyMapping[(int)InputType.Health] = new KeyOrMouse(Keys.H);
|
||||
@@ -314,7 +314,7 @@ namespace Barotrauma
|
||||
|
||||
keyMapping[(int)InputType.InfoTab] = new KeyOrMouse(Keys.Tab);
|
||||
keyMapping[(int)InputType.Chat] = new KeyOrMouse(Keys.T);
|
||||
keyMapping[(int)InputType.RadioChat] = new KeyOrMouse(Keys.Y);
|
||||
keyMapping[(int)InputType.RadioChat] = new KeyOrMouse(Keys.R);
|
||||
keyMapping[(int)InputType.CrewOrders] = new KeyOrMouse(Keys.C);
|
||||
|
||||
keyMapping[(int)InputType.SelectNextCharacter] = new KeyOrMouse(Keys.Z);
|
||||
|
||||
@@ -26,6 +26,10 @@ namespace Barotrauma.Items.Components
|
||||
|
||||
private float blinkTimer;
|
||||
|
||||
private bool itemLoaded;
|
||||
|
||||
private float blinkTimer;
|
||||
|
||||
public PhysicsBody ParentBody;
|
||||
|
||||
[Editable(MinValueFloat = 0.0f, MaxValueFloat = 2048.0f), Serialize(100.0f, true)]
|
||||
|
||||
@@ -30,12 +30,12 @@
|
||||
Down="S"
|
||||
Left="A"
|
||||
Right="D"
|
||||
Attack="R"
|
||||
Attack="2"
|
||||
Run="LeftShift"
|
||||
Crouch="LeftControl"
|
||||
InfoTab="Tab"
|
||||
Chat="T"
|
||||
RadioChat="Y"
|
||||
RadioChat="R"
|
||||
CrewOrders="C"
|
||||
Ragdoll="Space"
|
||||
Health="H"
|
||||
|
||||
Reference in New Issue
Block a user