Spawner windows now remember their positions (fixes #622)
This commit is contained in:
@@ -287,7 +287,11 @@ namespace Content.Client.Sandbox
|
|||||||
private void ToggleEntitySpawnWindow()
|
private void ToggleEntitySpawnWindow()
|
||||||
{
|
{
|
||||||
if (_spawnWindow == null)
|
if (_spawnWindow == null)
|
||||||
|
{
|
||||||
_spawnWindow = new EntitySpawnWindow(_placementManager, _prototypeManager, _resourceCache);
|
_spawnWindow = new EntitySpawnWindow(_placementManager, _prototypeManager, _resourceCache);
|
||||||
|
_spawnWindow.OpenToLeft();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (_spawnWindow.IsOpen)
|
if (_spawnWindow.IsOpen)
|
||||||
{
|
{
|
||||||
@@ -295,15 +299,18 @@ namespace Content.Client.Sandbox
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
_spawnWindow = new EntitySpawnWindow(_placementManager, _prototypeManager, _resourceCache);
|
_spawnWindow.Open();
|
||||||
_spawnWindow.OpenToLeft();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void ToggleTilesWindow()
|
private void ToggleTilesWindow()
|
||||||
{
|
{
|
||||||
if (_tilesSpawnWindow == null)
|
if (_tilesSpawnWindow == null)
|
||||||
|
{
|
||||||
_tilesSpawnWindow = new TileSpawnWindow(_tileDefinitionManager, _placementManager, _resourceCache);
|
_tilesSpawnWindow = new TileSpawnWindow(_tileDefinitionManager, _placementManager, _resourceCache);
|
||||||
|
_tilesSpawnWindow.OpenToLeft();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (_tilesSpawnWindow.IsOpen)
|
if (_tilesSpawnWindow.IsOpen)
|
||||||
{
|
{
|
||||||
@@ -311,8 +318,7 @@ namespace Content.Client.Sandbox
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
_tilesSpawnWindow = new TileSpawnWindow(_tileDefinitionManager, _placementManager, _resourceCache);
|
_tilesSpawnWindow.Open();
|
||||||
_tilesSpawnWindow.OpenToLeft();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Submodule RobustToolbox updated: 7f540e741c...d890f168c2
Reference in New Issue
Block a user