(bbd192053) Rebind Select and Use keys. Refactor GameSettings to support legacy bindings, when they are set. That is, if the new "deselect" and "shoot" keys are not defined, but the player config file is found, use the "select" and the "use" keys instead of the defaults.
This commit is contained in:
@@ -20,8 +20,6 @@ namespace Barotrauma
|
||||
public OnButtonDownHandler OnButtonDown;
|
||||
|
||||
public bool CanBeSelected = true;
|
||||
|
||||
private Color? defaultTextColor;
|
||||
|
||||
public override bool Enabled
|
||||
{
|
||||
@@ -32,7 +30,7 @@ namespace Barotrauma
|
||||
|
||||
set
|
||||
{
|
||||
if (value == enabled) { return; }
|
||||
if (value == enabled) return;
|
||||
enabled = value;
|
||||
if (color.A == 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user