Remove "Show Shellmap" setting.
This commit is contained in:
@@ -533,9 +533,6 @@ namespace OpenRA
|
|||||||
if (world == null)
|
if (world == null)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// Don't tick when the shellmap is disabled
|
|
||||||
if (world.ShouldTick)
|
|
||||||
{
|
|
||||||
var isNetTick = LocalTick % NetTickScale == 0;
|
var isNetTick = LocalTick % NetTickScale == 0;
|
||||||
|
|
||||||
if (!isNetTick || orderManager.IsReadyForNextFrame)
|
if (!isNetTick || orderManager.IsReadyForNextFrame)
|
||||||
@@ -562,9 +559,6 @@ namespace OpenRA
|
|||||||
}
|
}
|
||||||
else if (orderManager.NetFrameNumber == 0)
|
else if (orderManager.NetFrameNumber == 0)
|
||||||
orderManager.LastTickTime = RunTime;
|
orderManager.LastTickTime = RunTime;
|
||||||
}
|
|
||||||
else
|
|
||||||
PerfHistory.Tick();
|
|
||||||
|
|
||||||
// Wait until we have done our first world Tick before TickRendering
|
// Wait until we have done our first world Tick before TickRendering
|
||||||
if (orderManager.LocalFrameNumber > 0)
|
if (orderManager.LocalFrameNumber > 0)
|
||||||
|
|||||||
@@ -132,9 +132,6 @@ namespace OpenRA.Graphics
|
|||||||
|
|
||||||
RefreshPalette();
|
RefreshPalette();
|
||||||
|
|
||||||
if (World.Type == WorldType.Shellmap && !Game.Settings.Game.ShowShellmap)
|
|
||||||
return;
|
|
||||||
|
|
||||||
var renderables = GenerateRenderables();
|
var renderables = GenerateRenderables();
|
||||||
var bounds = Viewport.GetScissorBounds(World.Type != WorldType.Editor);
|
var bounds = Viewport.GetScissorBounds(World.Type != WorldType.Editor);
|
||||||
Game.Renderer.EnableScissor(bounds);
|
Game.Renderer.EnableScissor(bounds);
|
||||||
|
|||||||
@@ -158,8 +158,6 @@ namespace OpenRA
|
|||||||
|
|
||||||
public string Platform = "Default";
|
public string Platform = "Default";
|
||||||
|
|
||||||
public bool ShowShellmap = true;
|
|
||||||
|
|
||||||
public bool ViewportEdgeScroll = true;
|
public bool ViewportEdgeScroll = true;
|
||||||
public bool LockMouseWindow = false;
|
public bool LockMouseWindow = false;
|
||||||
public MouseScrollType MiddleMouseScroll = MouseScrollType.Standard;
|
public MouseScrollType MiddleMouseScroll = MouseScrollType.Standard;
|
||||||
|
|||||||
@@ -307,7 +307,6 @@ namespace OpenRA
|
|||||||
public event Action<Actor> ActorAdded = _ => { };
|
public event Action<Actor> ActorAdded = _ => { };
|
||||||
public event Action<Actor> ActorRemoved = _ => { };
|
public event Action<Actor> ActorRemoved = _ => { };
|
||||||
|
|
||||||
public bool ShouldTick { get { return Type != WorldType.Shellmap || Game.Settings.Game.ShowShellmap; } }
|
|
||||||
public bool Paused { get; internal set; }
|
public bool Paused { get; internal set; }
|
||||||
public bool PredictedPaused { get; internal set; }
|
public bool PredictedPaused { get; internal set; }
|
||||||
public bool PauseStateLocked { get; set; }
|
public bool PauseStateLocked { get; set; }
|
||||||
|
|||||||
@@ -22,11 +22,8 @@ namespace OpenRA.Mods.Cnc.Widgets.Logic
|
|||||||
: base(widget, world, modData)
|
: base(widget, world, modData)
|
||||||
{
|
{
|
||||||
var shellmapDecorations = widget.Get("SHELLMAP_DECORATIONS");
|
var shellmapDecorations = widget.Get("SHELLMAP_DECORATIONS");
|
||||||
shellmapDecorations.IsVisible = () => menuType != MenuType.None && Game.Settings.Game.ShowShellmap;
|
shellmapDecorations.IsVisible = () => menuType != MenuType.None;
|
||||||
shellmapDecorations.Get<ImageWidget>("RECBLOCK").IsVisible = () => world.WorldTick / 25 % 2 == 0;
|
shellmapDecorations.Get<ImageWidget>("RECBLOCK").IsVisible = () => world.WorldTick / 25 % 2 == 0;
|
||||||
|
|
||||||
var shellmapDisabledDecorations = widget.Get("SHELLMAP_DISABLED_DECORATIONS");
|
|
||||||
shellmapDisabledDecorations.IsVisible = () => !Game.Settings.Game.ShowShellmap;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -154,7 +154,6 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
|||||||
BindCheckboxPref(panel, "PIXELDOUBLE_CHECKBOX", ds, "PixelDouble");
|
BindCheckboxPref(panel, "PIXELDOUBLE_CHECKBOX", ds, "PixelDouble");
|
||||||
BindCheckboxPref(panel, "CURSORDOUBLE_CHECKBOX", ds, "CursorDouble");
|
BindCheckboxPref(panel, "CURSORDOUBLE_CHECKBOX", ds, "CursorDouble");
|
||||||
BindCheckboxPref(panel, "FRAME_LIMIT_CHECKBOX", ds, "CapFramerate");
|
BindCheckboxPref(panel, "FRAME_LIMIT_CHECKBOX", ds, "CapFramerate");
|
||||||
BindCheckboxPref(panel, "SHOW_SHELLMAP", gs, "ShowShellmap");
|
|
||||||
BindCheckboxPref(panel, "DISPLAY_TARGET_LINES_CHECKBOX", gs, "DrawTargetLine");
|
BindCheckboxPref(panel, "DISPLAY_TARGET_LINES_CHECKBOX", gs, "DrawTargetLine");
|
||||||
BindCheckboxPref(panel, "PLAYER_STANCE_COLORS_CHECKBOX", gs, "UsePlayerStanceColors");
|
BindCheckboxPref(panel, "PLAYER_STANCE_COLORS_CHECKBOX", gs, "UsePlayerStanceColors");
|
||||||
|
|
||||||
@@ -278,15 +277,11 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
|||||||
Action ResetDisplayPanel(Widget panel)
|
Action ResetDisplayPanel(Widget panel)
|
||||||
{
|
{
|
||||||
var ds = Game.Settings.Graphics;
|
var ds = Game.Settings.Graphics;
|
||||||
var gs = Game.Settings.Game;
|
|
||||||
var ps = Game.Settings.Player;
|
var ps = Game.Settings.Player;
|
||||||
var dds = new GraphicSettings();
|
var dds = new GraphicSettings();
|
||||||
var dgs = new GameSettings();
|
|
||||||
var dps = new PlayerSettings();
|
var dps = new PlayerSettings();
|
||||||
return () =>
|
return () =>
|
||||||
{
|
{
|
||||||
gs.ShowShellmap = dgs.ShowShellmap;
|
|
||||||
|
|
||||||
ds.CapFramerate = dds.CapFramerate;
|
ds.CapFramerate = dds.CapFramerate;
|
||||||
ds.MaxFramerate = dds.MaxFramerate;
|
ds.MaxFramerate = dds.MaxFramerate;
|
||||||
ds.Language = dds.Language;
|
ds.Language = dds.Language;
|
||||||
|
|||||||
@@ -30,6 +30,7 @@ Container@MENU_BACKGROUND:
|
|||||||
ImageCollection: shellmapbits
|
ImageCollection: shellmapbits
|
||||||
ImageName: record
|
ImageName: record
|
||||||
Container@SHELLMAP_DISABLED_DECORATIONS:
|
Container@SHELLMAP_DISABLED_DECORATIONS:
|
||||||
|
Visible: false
|
||||||
Children:
|
Children:
|
||||||
Image@NOD:
|
Image@NOD:
|
||||||
X: WINDOW_RIGHT/2-384
|
X: WINDOW_RIGHT/2-384
|
||||||
|
|||||||
@@ -152,28 +152,21 @@ Container@SETTINGS_PANEL:
|
|||||||
Height: 20
|
Height: 20
|
||||||
Font: Regular
|
Font: Regular
|
||||||
Text: Player Stance Colors
|
Text: Player Stance Colors
|
||||||
Checkbox@SHOW_SHELLMAP:
|
|
||||||
X: 15
|
|
||||||
Y: 185
|
|
||||||
Width: 200
|
|
||||||
Height: 20
|
|
||||||
Font: Regular
|
|
||||||
Text: Show Shellmap
|
|
||||||
Label@PLAYER:
|
Label@PLAYER:
|
||||||
Text: Player:
|
Text: Player:
|
||||||
X: 15
|
X: 15
|
||||||
Y: 225
|
Y: 195
|
||||||
TextField@PLAYERNAME:
|
TextField@PLAYERNAME:
|
||||||
Text: Name
|
Text: Name
|
||||||
X: 65
|
X: 65
|
||||||
Y: 215
|
Y: 185
|
||||||
Width: 145
|
Width: 145
|
||||||
Height: 25
|
Height: 25
|
||||||
MaxLength: 16
|
MaxLength: 16
|
||||||
ColorPreviewManager@COLOR_MANAGER:
|
ColorPreviewManager@COLOR_MANAGER:
|
||||||
DropDownButton@PLAYERCOLOR:
|
DropDownButton@PLAYERCOLOR:
|
||||||
X: 215
|
X: 215
|
||||||
Y: 215
|
Y: 185
|
||||||
Width: 70
|
Width: 70
|
||||||
Height: 25
|
Height: 25
|
||||||
IgnoreChildMouseOver: true
|
IgnoreChildMouseOver: true
|
||||||
|
|||||||
@@ -165,28 +165,21 @@ Background@SETTINGS_PANEL:
|
|||||||
Height: 20
|
Height: 20
|
||||||
Font: Regular
|
Font: Regular
|
||||||
Text: Player Stance Colors
|
Text: Player Stance Colors
|
||||||
Checkbox@SHOW_SHELLMAP:
|
|
||||||
X: 15
|
|
||||||
Y: 195
|
|
||||||
Width: 200
|
|
||||||
Height: 20
|
|
||||||
Font: Regular
|
|
||||||
Text: Show Shellmap
|
|
||||||
Label@PLAYER:
|
Label@PLAYER:
|
||||||
Text: Player:
|
Text: Player:
|
||||||
X: 15
|
X: 15
|
||||||
Y: 240
|
Y: 205
|
||||||
TextField@PLAYERNAME:
|
TextField@PLAYERNAME:
|
||||||
Text: Name
|
Text: Name
|
||||||
X: 65
|
X: 65
|
||||||
Y: 230
|
Y: 195
|
||||||
Width: 145
|
Width: 145
|
||||||
Height: 25
|
Height: 25
|
||||||
MaxLength: 16
|
MaxLength: 16
|
||||||
ColorPreviewManager@COLOR_MANAGER:
|
ColorPreviewManager@COLOR_MANAGER:
|
||||||
DropDownButton@PLAYERCOLOR:
|
DropDownButton@PLAYERCOLOR:
|
||||||
X: 215
|
X: 215
|
||||||
Y: 230
|
Y: 195
|
||||||
Width: 70
|
Width: 70
|
||||||
Height: 25
|
Height: 25
|
||||||
IgnoreChildMouseOver: true
|
IgnoreChildMouseOver: true
|
||||||
|
|||||||
Reference in New Issue
Block a user