(9a7d83a40) Fullscreen bug workarounds
This commit is contained in:
@@ -505,10 +505,7 @@ namespace Barotrauma
|
||||
|
||||
btn.OnClicked += (GUIButton button, object userData) =>
|
||||
{
|
||||
#if CLIENT
|
||||
if (GameMain.Client != null && Character.Controlled == null) { return false; }
|
||||
#endif
|
||||
if (Character.Controlled != null && Character.Controlled.SpeechImpediment >= 100.0f) { return false; }
|
||||
if (Character.Controlled == null || Character.Controlled.SpeechImpediment >= 100.0f) return false;
|
||||
|
||||
if (btn.GetChildByUserData("selected").Visible)
|
||||
{
|
||||
@@ -922,9 +919,7 @@ namespace Barotrauma
|
||||
Font = GUI.SmallFont,
|
||||
OnClicked = (btn, userData) =>
|
||||
{
|
||||
#if CLIENT
|
||||
if (GameMain.Client != null && Character.Controlled == null) { return false; }
|
||||
#endif
|
||||
if (Character.Controlled == null) return false;
|
||||
SetCharacterOrder(character, userData as Order, option, Character.Controlled);
|
||||
orderTargetFrame = null;
|
||||
OrderOptionButtons.Clear();
|
||||
@@ -962,9 +957,7 @@ namespace Barotrauma
|
||||
UserData = item == null ? order : new Order(order, item, item.Components.FirstOrDefault(ic => ic.GetType() == order.ItemComponentType)),
|
||||
OnClicked = (btn, userData) =>
|
||||
{
|
||||
#if CLIENT
|
||||
if (GameMain.Client != null && Character.Controlled == null) { return false; }
|
||||
#endif
|
||||
if (Character.Controlled == null) return false;
|
||||
SetCharacterOrder(character, userData as Order, option, Character.Controlled);
|
||||
orderTargetFrame = null;
|
||||
OrderOptionButtons.Clear();
|
||||
|
||||
Reference in New Issue
Block a user