mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-10-11 20:49:12 +00:00
Remove unused OverrideVisible flags
They were forgotten to be removed in 5a4e8e1896
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2025 Wildfire Games.
|
||||
/* Copyright (C) 2026 Wildfire Games.
|
||||
* This file is part of 0 A.D.
|
||||
*
|
||||
* 0 A.D. is free software: you can redistribute it and/or modify
|
||||
@@ -54,19 +54,7 @@ public:
|
||||
*/
|
||||
virtual void AddSprite(const VfsPath& textureName, const CFixedVector2D& corner0, const CFixedVector2D& corner1, const CFixedVector3D& offset, const std::string& color = "255 255 255 255") = 0;
|
||||
|
||||
/**
|
||||
* Enables or disables rendering of all sprites.
|
||||
* @param visible Whether the selectable should be visible.
|
||||
*/
|
||||
static void SetOverrideVisibility(bool visible)
|
||||
{
|
||||
ICmpOverlayRenderer::m_OverrideVisible = visible;
|
||||
}
|
||||
|
||||
DECLARE_INTERFACE_TYPE(OverlayRenderer)
|
||||
|
||||
protected:
|
||||
static bool m_OverrideVisible;
|
||||
};
|
||||
|
||||
#endif // INCLUDED_ICMPOVERLAYRENDERER
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2021 Wildfire Games.
|
||||
/* Copyright (C) 2026 Wildfire Games.
|
||||
* This file is part of 0 A.D.
|
||||
*
|
||||
* 0 A.D. is free software: you can redistribute it and/or modify
|
||||
@@ -29,4 +29,3 @@ DEFINE_INTERFACE_METHOD("UpdateColor", ICmpSelectable, UpdateColor)
|
||||
END_INTERFACE_WRAPPER(Selectable)
|
||||
|
||||
bool ICmpSelectable::ms_EnableDebugOverlays = false;
|
||||
bool ICmpSelectable::m_OverrideVisible = true;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2025 Wildfire Games.
|
||||
/* Copyright (C) 2026 Wildfire Games.
|
||||
* This file is part of 0 A.D.
|
||||
*
|
||||
* 0 A.D. is free software: you can redistribute it and/or modify
|
||||
@@ -47,15 +47,6 @@ public:
|
||||
*/
|
||||
virtual void SetVisibility(bool visible) = 0;
|
||||
|
||||
/**
|
||||
* Enables or disables rendering of all entities selectable.
|
||||
* @param visible Whether the selectable should be visible.
|
||||
*/
|
||||
static void SetOverrideVisibility(bool visible)
|
||||
{
|
||||
ICmpSelectable::m_OverrideVisible = visible;
|
||||
}
|
||||
|
||||
/**
|
||||
* Updates the selection color to match the current owner.
|
||||
*/
|
||||
@@ -72,9 +63,6 @@ public:
|
||||
// and methods, where we can keep settings like these. Note that any such data store would need to be per-component-manager
|
||||
// and not entirely global, to support multiple simulation instances.
|
||||
static bool ms_EnableDebugOverlays; // ms for member static
|
||||
|
||||
protected:
|
||||
static bool m_OverrideVisible;
|
||||
};
|
||||
|
||||
#endif // INCLUDED_ICMPSELECTABLE
|
||||
|
||||
Reference in New Issue
Block a user