Admin UI localization (#29340)
admin ui localization Co-authored-by: MetalSage <metalsage.official@gmail.com>
This commit is contained in:
@@ -5,7 +5,7 @@
|
|||||||
<LineEdit Name="FilterLineEdit"
|
<LineEdit Name="FilterLineEdit"
|
||||||
MinSize="100 0"
|
MinSize="100 0"
|
||||||
HorizontalExpand="True"
|
HorizontalExpand="True"
|
||||||
PlaceHolder="{Loc Filter}"/>
|
PlaceHolder="{Loc player-list-filter}"/>
|
||||||
<PanelContainer Name="BackgroundPanel"
|
<PanelContainer Name="BackgroundPanel"
|
||||||
VerticalExpand="True"
|
VerticalExpand="True"
|
||||||
HorizontalExpand="True">
|
HorizontalExpand="True">
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
Title="{Loc admin-player-actions-window-title}" MinSize="425 272">
|
Title="{Loc admin-player-actions-window-title}" MinSize="425 272">
|
||||||
<BoxContainer Orientation="Vertical">
|
<BoxContainer Orientation="Vertical">
|
||||||
<BoxContainer Orientation="Horizontal">
|
<BoxContainer Orientation="Horizontal">
|
||||||
<Label Text="{Loc Reason}" MinWidth="100" />
|
<Label Text="{Loc admin-player-actions-reason}" MinWidth="100" />
|
||||||
<Control MinWidth="50" />
|
<Control MinWidth="50" />
|
||||||
<LineEdit Name="ReasonLine" MinWidth="100" HorizontalExpand="True" />
|
<LineEdit Name="ReasonLine" MinWidth="100" HorizontalExpand="True" />
|
||||||
</BoxContainer>
|
</BoxContainer>
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
<DefaultWindow
|
<DefaultWindow
|
||||||
xmlns="https://spacestation14.io"
|
xmlns="https://spacestation14.io"
|
||||||
xmlns:cc="clr-namespace:Content.Client.Administration.UI.CustomControls"
|
xmlns:cc="clr-namespace:Content.Client.Administration.UI.CustomControls"
|
||||||
Title="{Loc Teleport}" MinSize="425 230">
|
Title="{Loc admin-ui-teleport}" MinSize="425 230">
|
||||||
<BoxContainer Orientation="Vertical">
|
<BoxContainer Orientation="Vertical">
|
||||||
<cc:PlayerListControl Name="PlayerList" />
|
<cc:PlayerListControl Name="PlayerList" />
|
||||||
<Button Name="SubmitButton" Text="{Loc Teleport}" />
|
<Button Name="SubmitButton" Text="{Loc admin-ui-teleport}" />
|
||||||
</BoxContainer>
|
</BoxContainer>
|
||||||
</DefaultWindow>
|
</DefaultWindow>
|
||||||
|
|||||||
@@ -1,33 +1,33 @@
|
|||||||
<DefaultWindow
|
<DefaultWindow
|
||||||
xmlns="https://spacestation14.io" Title="{Loc Load Blueprint}">
|
xmlns="https://spacestation14.io" Title="{Loc admin-ui-blueprint-load}">
|
||||||
<BoxContainer Orientation="Vertical">
|
<BoxContainer Orientation="Vertical">
|
||||||
<BoxContainer Orientation="Horizontal">
|
<BoxContainer Orientation="Horizontal">
|
||||||
<Label Text="{Loc Map}" MinSize="100 0" />
|
<Label Text="{Loc admin-ui-blueprint-map}" MinSize="100 0" />
|
||||||
<Control MinSize="50 0" />
|
<Control MinSize="50 0" />
|
||||||
<OptionButton Name="MapOptions" MinSize="100 0" HorizontalExpand="True" />
|
<OptionButton Name="MapOptions" MinSize="100 0" HorizontalExpand="True" />
|
||||||
</BoxContainer>
|
</BoxContainer>
|
||||||
<BoxContainer Orientation="Horizontal">
|
<BoxContainer Orientation="Horizontal">
|
||||||
<Label Text="{Loc Path}" MinSize="100 0" />
|
<Label Text="{Loc admin-ui-blueprint-path}" MinSize="100 0" />
|
||||||
<Control MinSize="50 0" />
|
<Control MinSize="50 0" />
|
||||||
<LineEdit Name="MapPath" MinSize="200 0" HorizontalExpand="True" Text="/Maps/" />
|
<LineEdit Name="MapPath" MinSize="200 0" HorizontalExpand="True" Text="/Maps/" />
|
||||||
</BoxContainer>
|
</BoxContainer>
|
||||||
<BoxContainer Orientation="Horizontal">
|
<BoxContainer Orientation="Horizontal">
|
||||||
<Label Text="{Loc X}" MinSize="100 0" />
|
<Label Text="{Loc admin-ui-blueprint-x}" MinSize="100 0" />
|
||||||
<Control MinSize="50 0" />
|
<Control MinSize="50 0" />
|
||||||
<SpinBox Name="XCoordinate" MinSize="100 0" HorizontalExpand="True" />
|
<SpinBox Name="XCoordinate" MinSize="100 0" HorizontalExpand="True" />
|
||||||
</BoxContainer>
|
</BoxContainer>
|
||||||
<BoxContainer Orientation="Horizontal">
|
<BoxContainer Orientation="Horizontal">
|
||||||
<Label Text="{Loc Y}" MinSize="100 0" />
|
<Label Text="{Loc admin-ui-blueprint-y}" MinSize="100 0" />
|
||||||
<Control MinSize="50 0" />
|
<Control MinSize="50 0" />
|
||||||
<SpinBox Name="YCoordinate" MinSize="100 0" HorizontalExpand="True" />
|
<SpinBox Name="YCoordinate" MinSize="100 0" HorizontalExpand="True" />
|
||||||
</BoxContainer>
|
</BoxContainer>
|
||||||
<BoxContainer Orientation="Horizontal">
|
<BoxContainer Orientation="Horizontal">
|
||||||
<Label Text="{Loc Rotation}" MinSize="100 0" />
|
<Label Text="{Loc admin-ui-blueprint-rotation}" MinSize="100 0" />
|
||||||
<Control MinSize="50 0" />
|
<Control MinSize="50 0" />
|
||||||
<SpinBox Name="RotationSpin" MinSize="100 0" HorizontalExpand="True" />
|
<SpinBox Name="RotationSpin" MinSize="100 0" HorizontalExpand="True" />
|
||||||
</BoxContainer>
|
</BoxContainer>
|
||||||
<Button Name="SubmitButton" Text="{Loc Load Blueprint}" />
|
<Button Name="SubmitButton" Text="{Loc admin-ui-blueprint-load}" />
|
||||||
<Button Name="TeleportButton" Text="{Loc Teleport to}" />
|
<Button Name="TeleportButton" Text="{Loc admin-ui-blueprint-teleport}" />
|
||||||
<Button Name="ResetButton" Text="{Loc Reset to default}"></Button>
|
<Button Name="ResetButton" Text="{Loc admin-ui-blueprint-reset}"></Button>
|
||||||
</BoxContainer>
|
</BoxContainer>
|
||||||
</DefaultWindow>
|
</DefaultWindow>
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
<DefaultWindow
|
<DefaultWindow
|
||||||
xmlns="https://spacestation14.io" Title="{Loc Add Atmos}">
|
xmlns="https://spacestation14.io" Title="{Loc admin-ui-atmos-add}">
|
||||||
<BoxContainer Orientation="Vertical">
|
<BoxContainer Orientation="Vertical">
|
||||||
<BoxContainer Orientation="Horizontal">
|
<BoxContainer Orientation="Horizontal">
|
||||||
<Label Text="{Loc Grid}" MinSize="100 0" />
|
<Label Text="{Loc admin-ui-atmos-grid}" MinSize="100 0" />
|
||||||
<Control MinSize="50 0" />
|
<Control MinSize="50 0" />
|
||||||
<OptionButton Name="GridOptions" MinSize="100 0" HorizontalExpand="True" />
|
<OptionButton Name="GridOptions" MinSize="100 0" HorizontalExpand="True" />
|
||||||
</BoxContainer>
|
</BoxContainer>
|
||||||
<Button Name="SubmitButton" Text="{Loc Add Atmos}" />
|
<Button Name="SubmitButton" Text="{Loc admin-ui-atmos-add}" />
|
||||||
</BoxContainer>
|
</BoxContainer>
|
||||||
</DefaultWindow>
|
</DefaultWindow>
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ namespace Content.Client.Administration.UI.Tabs.AtmosTab
|
|||||||
while (query.MoveNext(out var uid, out var grid))
|
while (query.MoveNext(out var uid, out var grid))
|
||||||
{
|
{
|
||||||
_data.Add((uid, grid));
|
_data.Add((uid, grid));
|
||||||
GridOptions.AddItem($"{uid} {(playerGrid == uid ? " (Current)" : "")}");
|
GridOptions.AddItem($"{uid} {(playerGrid == uid ? Loc.GetString($"admin-ui-atmos-grid-current") : "")}");
|
||||||
}
|
}
|
||||||
|
|
||||||
GridOptions.OnItemSelected += eventArgs => GridOptions.SelectId(eventArgs.Id);
|
GridOptions.OnItemSelected += eventArgs => GridOptions.SelectId(eventArgs.Id);
|
||||||
|
|||||||
@@ -1,31 +1,31 @@
|
|||||||
<DefaultWindow
|
<DefaultWindow
|
||||||
xmlns="https://spacestation14.io" Title="{Loc Add Gas}">
|
xmlns="https://spacestation14.io" Title="{Loc admin-ui-atmos-add-gas}">
|
||||||
<BoxContainer Orientation="Vertical">
|
<BoxContainer Orientation="Vertical">
|
||||||
<BoxContainer Orientation="Horizontal">
|
<BoxContainer Orientation="Horizontal">
|
||||||
<Label Text="{Loc Grid}" MinSize="100 0" />
|
<Label Text="{Loc admin-ui-atmos-grid}" MinSize="100 0" />
|
||||||
<Control MinSize="50 0" />
|
<Control MinSize="50 0" />
|
||||||
<OptionButton Name="GridOptions" MinSize="100 0" HorizontalExpand="True" />
|
<OptionButton Name="GridOptions" MinSize="100 0" HorizontalExpand="True" />
|
||||||
</BoxContainer>
|
</BoxContainer>
|
||||||
<BoxContainer Orientation="Horizontal">
|
<BoxContainer Orientation="Horizontal">
|
||||||
<Label Text="{Loc TileX}" MinSize="100 0" />
|
<Label Text="{Loc admin-ui-atmos-tile-x}" MinSize="100 0" />
|
||||||
<Control MinSize="50 0" />
|
<Control MinSize="50 0" />
|
||||||
<SpinBox Name="TileXSpin" MinSize="100 0" HorizontalExpand="True" />
|
<SpinBox Name="TileXSpin" MinSize="100 0" HorizontalExpand="True" />
|
||||||
</BoxContainer>
|
</BoxContainer>
|
||||||
<BoxContainer Orientation="Horizontal">
|
<BoxContainer Orientation="Horizontal">
|
||||||
<Label Text="{Loc TileY}" MinSize="100 0" />
|
<Label Text="{Loc admin-ui-atmos-tile-y}" MinSize="100 0" />
|
||||||
<Control MinSize="50 0" />
|
<Control MinSize="50 0" />
|
||||||
<SpinBox Name="TileYSpin" MinSize="100 0" HorizontalExpand="True" />
|
<SpinBox Name="TileYSpin" MinSize="100 0" HorizontalExpand="True" />
|
||||||
</BoxContainer>
|
</BoxContainer>
|
||||||
<BoxContainer Orientation="Horizontal">
|
<BoxContainer Orientation="Horizontal">
|
||||||
<Label Text="{Loc Gas}" MinSize="100 0" />
|
<Label Text="{Loc admin-ui-atmos-gas}" MinSize="100 0" />
|
||||||
<Control MinSize="50 0" />
|
<Control MinSize="50 0" />
|
||||||
<OptionButton Name="GasOptions" MinSize="100 0" HorizontalExpand="True" />
|
<OptionButton Name="GasOptions" MinSize="100 0" HorizontalExpand="True" />
|
||||||
</BoxContainer>
|
</BoxContainer>
|
||||||
<BoxContainer Orientation="Horizontal">
|
<BoxContainer Orientation="Horizontal">
|
||||||
<Label Text="{Loc Amount}" MinSize="100 0" />
|
<Label Text="{Loc admin-ui-atmos-gas-amount}" MinSize="100 0" />
|
||||||
<Control MinSize="50 0" />
|
<Control MinSize="50 0" />
|
||||||
<SpinBox Name="AmountSpin" MinSize="100 0" HorizontalExpand="True" />
|
<SpinBox Name="AmountSpin" MinSize="100 0" HorizontalExpand="True" />
|
||||||
</BoxContainer>
|
</BoxContainer>
|
||||||
<Button Name="SubmitButton" Text="{Loc Add Gas}" />
|
<Button Name="SubmitButton" Text="{Loc admin-ui-atmos-add-gas}" />
|
||||||
</BoxContainer>
|
</BoxContainer>
|
||||||
</DefaultWindow>
|
</DefaultWindow>
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ namespace Content.Client.Administration.UI.Tabs.AtmosTab
|
|||||||
_gridData.Add(entManager.GetNetEntity(uid));
|
_gridData.Add(entManager.GetNetEntity(uid));
|
||||||
var player = playerManager.LocalEntity;
|
var player = playerManager.LocalEntity;
|
||||||
var playerGrid = entManager.GetComponentOrNull<TransformComponent>(player)?.GridUid;
|
var playerGrid = entManager.GetComponentOrNull<TransformComponent>(player)?.GridUid;
|
||||||
GridOptions.AddItem($"{uid} {(playerGrid == uid ? " (Current)" : "")}");
|
GridOptions.AddItem($"{uid} {(playerGrid == uid ? Loc.GetString("admin-ui-atmos-grid-current") : "")}");
|
||||||
}
|
}
|
||||||
|
|
||||||
GridOptions.OnItemSelected += eventArgs => GridOptions.SelectId(eventArgs.Id);
|
GridOptions.OnItemSelected += eventArgs => GridOptions.SelectId(eventArgs.Id);
|
||||||
|
|||||||
@@ -6,10 +6,10 @@
|
|||||||
Margin="4"
|
Margin="4"
|
||||||
MinSize="50 50">
|
MinSize="50 50">
|
||||||
<GridContainer Columns="4">
|
<GridContainer Columns="4">
|
||||||
<cc:UICommandButton Text="{Loc Add Atmos}" Command="addatmos" WindowType="{x:Type at:AddAtmosWindow}" />
|
<cc:UICommandButton Text="{Loc admin-ui-atmos-add}" Command="addatmos" WindowType="{x:Type at:AddAtmosWindow}" />
|
||||||
<cc:UICommandButton Text="{Loc Add Gas}" Command="addgas" WindowType="{x:Type at:AddGasWindow}" />
|
<cc:UICommandButton Text="{Loc admin-ui-atmos-add-gas}" Command="addgas" WindowType="{x:Type at:AddGasWindow}" />
|
||||||
<cc:UICommandButton Text="{Loc Fill Gas}" Command="fillgas" WindowType="{x:Type at:FillGasWindow}" />
|
<cc:UICommandButton Text="{Loc admin-ui-atmos-fill-gas}" Command="fillgas" WindowType="{x:Type at:FillGasWindow}" />
|
||||||
<cc:UICommandButton Text="{Loc Set Temperature}" Command="settemp"
|
<cc:UICommandButton Text="{Loc admin-ui-atmos-set-temperature}" Command="settemp"
|
||||||
WindowType="{x:Type at:SetTemperatureWindow}" />
|
WindowType="{x:Type at:SetTemperatureWindow}" />
|
||||||
</GridContainer>
|
</GridContainer>
|
||||||
</Control>
|
</Control>
|
||||||
|
|||||||
@@ -1,21 +1,21 @@
|
|||||||
<DefaultWindow
|
<DefaultWindow
|
||||||
xmlns="https://spacestation14.io" Title="{Loc Fill Gas}">
|
xmlns="https://spacestation14.io" Title="{Loc admin-ui-atmos-fill-gas}">
|
||||||
<BoxContainer Orientation="Vertical">
|
<BoxContainer Orientation="Vertical">
|
||||||
<BoxContainer Orientation="Horizontal">
|
<BoxContainer Orientation="Horizontal">
|
||||||
<Label Text="{Loc Grid}" MinSize="100 0" />
|
<Label Text="{Loc admin-ui-atmos-grid}" MinSize="100 0" />
|
||||||
<Control MinSize="50 0" />
|
<Control MinSize="50 0" />
|
||||||
<OptionButton Name="GridOptions" MinSize="100 0" HorizontalExpand="True" />
|
<OptionButton Name="GridOptions" MinSize="100 0" HorizontalExpand="True" />
|
||||||
</BoxContainer>
|
</BoxContainer>
|
||||||
<BoxContainer Orientation="Horizontal">
|
<BoxContainer Orientation="Horizontal">
|
||||||
<Label Text="{Loc Gas}" MinSize="100 0" />
|
<Label Text="{Loc admin-ui-atmos-gas}" MinSize="100 0" />
|
||||||
<Control MinSize="50 0" />
|
<Control MinSize="50 0" />
|
||||||
<OptionButton Name="GasOptions" MinSize="100 0" HorizontalExpand="True" />
|
<OptionButton Name="GasOptions" MinSize="100 0" HorizontalExpand="True" />
|
||||||
</BoxContainer>
|
</BoxContainer>
|
||||||
<BoxContainer Orientation="Horizontal">
|
<BoxContainer Orientation="Horizontal">
|
||||||
<Label Text="{Loc Amount}" MinSize="100 0" />
|
<Label Text="{Loc admin-ui-atmos-gas-amount}" MinSize="100 0" />
|
||||||
<Control MinSize="50 0" />
|
<Control MinSize="50 0" />
|
||||||
<SpinBox Name="AmountSpin" MinSize="100 0" HorizontalExpand="True" />
|
<SpinBox Name="AmountSpin" MinSize="100 0" HorizontalExpand="True" />
|
||||||
</BoxContainer>
|
</BoxContainer>
|
||||||
<Button Name="SubmitButton" Text="{Loc Fill Gas}" />
|
<Button Name="SubmitButton" Text="{Loc admin-ui-atmos-fill-gas}" />
|
||||||
</BoxContainer>
|
</BoxContainer>
|
||||||
</DefaultWindow>
|
</DefaultWindow>
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ namespace Content.Client.Administration.UI.Tabs.AtmosTab
|
|||||||
{
|
{
|
||||||
var player = playerManager.LocalEntity;
|
var player = playerManager.LocalEntity;
|
||||||
var playerGrid = entManager.GetComponentOrNull<TransformComponent>(player)?.GridUid;
|
var playerGrid = entManager.GetComponentOrNull<TransformComponent>(player)?.GridUid;
|
||||||
GridOptions.AddItem($"{uid} {(playerGrid == uid ? " (Current)" : "")}");
|
GridOptions.AddItem($"{uid} {(playerGrid == uid ? Loc.GetString($"admin-ui-atmos-grid-current") : "")}");
|
||||||
_gridData.Add(entManager.GetNetEntity(uid));
|
_gridData.Add(entManager.GetNetEntity(uid));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,26 +1,26 @@
|
|||||||
<DefaultWindow
|
<DefaultWindow
|
||||||
xmlns="https://spacestation14.io" Title="{Loc Set Temperature}">
|
xmlns="https://spacestation14.io" Title="{Loc admin-ui-atmos-set-temperature}">
|
||||||
<BoxContainer Orientation="Vertical">
|
<BoxContainer Orientation="Vertical">
|
||||||
<BoxContainer Orientation="Horizontal">
|
<BoxContainer Orientation="Horizontal">
|
||||||
<Label Text="{Loc Grid}" MinSize="100 0" />
|
<Label Text="{Loc admin-ui-atmos-grid}" MinSize="100 0" />
|
||||||
<Control MinSize="50 0" />
|
<Control MinSize="50 0" />
|
||||||
<OptionButton Name="GridOptions" MinSize="100 0" HorizontalExpand="True" />
|
<OptionButton Name="GridOptions" MinSize="100 0" HorizontalExpand="True" />
|
||||||
</BoxContainer>
|
</BoxContainer>
|
||||||
<BoxContainer Orientation="Horizontal">
|
<BoxContainer Orientation="Horizontal">
|
||||||
<Label Text="{Loc TileX}" MinSize="100 0" />
|
<Label Text="{Loc admin-ui-atmos-tile-x}" MinSize="100 0" />
|
||||||
<Control MinSize="50 0" />
|
<Control MinSize="50 0" />
|
||||||
<SpinBox Name="TileXSpin" MinSize="100 0" HorizontalExpand="True" />
|
<SpinBox Name="TileXSpin" MinSize="100 0" HorizontalExpand="True" />
|
||||||
</BoxContainer>
|
</BoxContainer>
|
||||||
<BoxContainer Orientation="Horizontal">
|
<BoxContainer Orientation="Horizontal">
|
||||||
<Label Text="{Loc TileY}" MinSize="100 0" />
|
<Label Text="{Loc admin-ui-atmos-tile-y}" MinSize="100 0" />
|
||||||
<Control MinSize="50 0" />
|
<Control MinSize="50 0" />
|
||||||
<SpinBox Name="TileYSpin" MinSize="100 0" HorizontalExpand="True" />
|
<SpinBox Name="TileYSpin" MinSize="100 0" HorizontalExpand="True" />
|
||||||
</BoxContainer>
|
</BoxContainer>
|
||||||
<BoxContainer Orientation="Horizontal">
|
<BoxContainer Orientation="Horizontal">
|
||||||
<Label Text="{Loc Temperature}" MinSize="100 0" />
|
<Label Text="{Loc admin-ui-atmos-temperature}" MinSize="100 0" />
|
||||||
<Control MinSize="50 0" />
|
<Control MinSize="50 0" />
|
||||||
<SpinBox Name="TemperatureSpin" MinSize="100 0" HorizontalExpand="True" />
|
<SpinBox Name="TemperatureSpin" MinSize="100 0" HorizontalExpand="True" />
|
||||||
</BoxContainer>
|
</BoxContainer>
|
||||||
<Button Name="SubmitButton" Text="{Loc Set Temperature}" />
|
<Button Name="SubmitButton" Text="{Loc admin-ui-atmos-set-temperature}" />
|
||||||
</BoxContainer>
|
</BoxContainer>
|
||||||
</DefaultWindow>
|
</DefaultWindow>
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ namespace Content.Client.Administration.UI.Tabs.AtmosTab
|
|||||||
{
|
{
|
||||||
var player = playerManager.LocalEntity;
|
var player = playerManager.LocalEntity;
|
||||||
var playerGrid = entManager.GetComponentOrNull<TransformComponent>(player)?.GridUid;
|
var playerGrid = entManager.GetComponentOrNull<TransformComponent>(player)?.GridUid;
|
||||||
GridOptions.AddItem($"{uid} {(playerGrid == uid ? " (Current)" : "")}");
|
GridOptions.AddItem($"{uid} {(playerGrid == uid ? Loc.GetString($"admin-ui-atmos-grid-current") : "")}");
|
||||||
_data.Add(entManager.GetNetEntity(uid));
|
_data.Add(entManager.GetNetEntity(uid));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -5,8 +5,8 @@
|
|||||||
<BoxContainer Orientation="Vertical">
|
<BoxContainer Orientation="Vertical">
|
||||||
<BoxContainer Orientation="Horizontal">
|
<BoxContainer Orientation="Horizontal">
|
||||||
<Label HorizontalExpand="True" SizeFlagsStretchRatio="0.50"
|
<Label HorizontalExpand="True" SizeFlagsStretchRatio="0.50"
|
||||||
Text="{Loc Object type:}" />
|
Text="{Loc object-tab-object-type}" />
|
||||||
<LineEdit Name="SearchLineEdit" PlaceHolder="{Loc Search...}" HorizontalExpand="True" SizeFlagsStretchRatio="1"/>
|
<LineEdit Name="SearchLineEdit" PlaceHolder="{Loc object-tab-object-search}" HorizontalExpand="True" SizeFlagsStretchRatio="1"/>
|
||||||
<OptionButton Name="ObjectTypeOptions" HorizontalExpand="True" SizeFlagsStretchRatio="0.25"/>
|
<OptionButton Name="ObjectTypeOptions" HorizontalExpand="True" SizeFlagsStretchRatio="0.25"/>
|
||||||
</BoxContainer>
|
</BoxContainer>
|
||||||
<BoxContainer Orientation="Horizontal" HorizontalExpand="True">
|
<BoxContainer Orientation="Horizontal" HorizontalExpand="True">
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ public sealed partial class ObjectsTab : Control
|
|||||||
foreach (var type in Enum.GetValues(typeof(ObjectsTabSelection)))
|
foreach (var type in Enum.GetValues(typeof(ObjectsTabSelection)))
|
||||||
{
|
{
|
||||||
_selections.Add((ObjectsTabSelection)type!);
|
_selections.Add((ObjectsTabSelection)type!);
|
||||||
ObjectTypeOptions.AddItem(Enum.GetName((ObjectsTabSelection)type)!);
|
ObjectTypeOptions.AddItem(Loc.GetString($"object-tab-object-type-{((Enum.GetName((ObjectsTabSelection)type))!.ToString().ToLower())}"));
|
||||||
}
|
}
|
||||||
|
|
||||||
ListHeader.OnHeaderClicked += HeaderClicked;
|
ListHeader.OnHeaderClicked += HeaderClicked;
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
xmlns:co="clr-namespace:Content.Client.UserInterface.Controls">
|
xmlns:co="clr-namespace:Content.Client.UserInterface.Controls">
|
||||||
<BoxContainer Orientation="Vertical">
|
<BoxContainer Orientation="Vertical">
|
||||||
<BoxContainer Orientation="Horizontal">
|
<BoxContainer Orientation="Horizontal">
|
||||||
<Label Name="PlayerCount" HorizontalExpand="True" Text="{Loc Player Count}" />
|
<Label Name="PlayerCount" HorizontalExpand="True" Text="{Loc player-tab-player-count}" />
|
||||||
<LineEdit Name="SearchLineEdit" HorizontalExpand="True"
|
<LineEdit Name="SearchLineEdit" HorizontalExpand="True"
|
||||||
PlaceHolder="{Loc player-tab-filter-line-edit-placeholder}" />
|
PlaceHolder="{Loc player-tab-filter-line-edit-placeholder}" />
|
||||||
<Button Name="ShowDisconnectedButton" HorizontalExpand="True"
|
<Button Name="ShowDisconnectedButton" HorizontalExpand="True"
|
||||||
|
|||||||
@@ -109,7 +109,7 @@ namespace Content.Client.Administration.UI.Tabs.PlayerTab
|
|||||||
private void RefreshPlayerList(IReadOnlyList<PlayerInfo> players)
|
private void RefreshPlayerList(IReadOnlyList<PlayerInfo> players)
|
||||||
{
|
{
|
||||||
_players = players;
|
_players = players;
|
||||||
PlayerCount.Text = $"Players: {_playerMan.PlayerCount}";
|
PlayerCount.Text = Loc.GetString("player-tab-player-count", ("count", _playerMan.PlayerCount));
|
||||||
|
|
||||||
var filteredPlayers = players.Where(info => _showDisconnected || info.Connected).ToList();
|
var filteredPlayers = players.Where(info => _showDisconnected || info.Connected).ToList();
|
||||||
|
|
||||||
|
|||||||
@@ -5,9 +5,9 @@
|
|||||||
MinSize="50 50">
|
MinSize="50 50">
|
||||||
<GridContainer
|
<GridContainer
|
||||||
Columns="3">
|
Columns="3">
|
||||||
<cc:CommandButton Command="startround" Text="{Loc Start Round}" />
|
<cc:CommandButton Command="startround" Text="{Loc administration-ui-round-tab-start-round}" />
|
||||||
<cc:CommandButton Command="endround" Text="{Loc End Round}" />
|
<cc:CommandButton Command="endround" Text="{Loc administration-ui-round-tab-end-round}" />
|
||||||
<cc:CommandButton Command="restartround" Text="{Loc Restart Round}" />
|
<cc:CommandButton Command="restartround" Text="{Loc administration-ui-round-tab-restart-round}" />
|
||||||
<cc:CommandButton Command="restartroundnow" Text="{Loc administration-ui-round-tab-restart-round-now}" />
|
<cc:CommandButton Command="restartroundnow" Text="{Loc administration-ui-round-tab-restart-round-now}" />
|
||||||
</GridContainer>
|
</GridContainer>
|
||||||
</Control>
|
</Control>
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
admin-player-actions-reason = Reason
|
||||||
admin-player-actions-bans = Ban List
|
admin-player-actions-bans = Ban List
|
||||||
admin-player-actions-notes = Notes
|
admin-player-actions-notes = Notes
|
||||||
admin-player-actions-kick = Kick
|
admin-player-actions-kick = Kick
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
player-list-filter = Filter
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
admin-ui-teleport = Teleport
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
admin-ui-blueprint-map = Map
|
||||||
|
admin-ui-blueprint-path = Path
|
||||||
|
admin-ui-blueprint-x = X
|
||||||
|
admin-ui-blueprint-y = Y
|
||||||
|
admin-ui-blueprint-rotation = Rotation
|
||||||
|
|
||||||
|
admin-ui-blueprint-teleport = Teleport to
|
||||||
|
admin-ui-blueprint-reset = Reset to default
|
||||||
|
admin-ui-blueprint-load = Load Blueprint
|
||||||
12
Resources/Locale/en-US/administration/ui/tabs/atmos-tab.ftl
Normal file
12
Resources/Locale/en-US/administration/ui/tabs/atmos-tab.ftl
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
admin-ui-atmos-add = Add Atmos
|
||||||
|
admin-ui-atmos-add-gas = Add Gas
|
||||||
|
admin-ui-atmos-fill-gas = Fill Gas
|
||||||
|
admin-ui-atmos-set-temperature = Set Temperature
|
||||||
|
|
||||||
|
admin-ui-atmos-grid = Grid
|
||||||
|
admin-ui-atmos-grid-current = Current
|
||||||
|
admin-ui-atmos-tile-x = TileX
|
||||||
|
admin-ui-atmos-tile-y = TileY
|
||||||
|
admin-ui-atmos-gas = Gas
|
||||||
|
admin-ui-atmos-gas-amount = Amount
|
||||||
|
admin-ui-atmos-temperature = Temperature
|
||||||
@@ -1,2 +1,9 @@
|
|||||||
object-tab-entity-id = Entity ID
|
object-tab-entity-id = Entity ID
|
||||||
object-tab-object-name = Object name
|
object-tab-object-name = Object name
|
||||||
|
|
||||||
|
object-tab-object-type = Object type:
|
||||||
|
object-tab-object-search = Search...
|
||||||
|
|
||||||
|
object-tab-object-type-grids = Grids
|
||||||
|
object-tab-object-type-maps = Maps
|
||||||
|
object-tab-object-type-stations = Stations
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
player-tab-username = Username
|
player-tab-player-count = Players: { $count }
|
||||||
|
player-tab-username = Username
|
||||||
player-tab-character = Character
|
player-tab-character = Character
|
||||||
player-tab-job = Job
|
player-tab-job = Job
|
||||||
player-tab-antagonist = Antagonist
|
player-tab-antagonist = Antagonist
|
||||||
|
|||||||
@@ -1,2 +1,5 @@
|
|||||||
|
administration-ui-round-tab-start-round = Start Round
|
||||||
|
administration-ui-round-tab-end-round = End Round
|
||||||
|
administration-ui-round-tab-restart-round = Restart Round
|
||||||
administration-ui-round-tab-restart-round-now = Restart NOW
|
administration-ui-round-tab-restart-round-now = Restart NOW
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user