П - Провода
This commit is contained in:
@@ -40,7 +40,7 @@ namespace Content.Client.Wires.UI
|
|||||||
IoCManager.InjectDependencies(this);
|
IoCManager.InjectDependencies(this);
|
||||||
|
|
||||||
Owner = owner;
|
Owner = owner;
|
||||||
var rootContainer = new LayoutContainer {Name = "WireRoot"};
|
var rootContainer = new LayoutContainer { Name = "WireRoot" };
|
||||||
AddChild(rootContainer);
|
AddChild(rootContainer);
|
||||||
|
|
||||||
MouseFilter = MouseFilterMode.Stop;
|
MouseFilter = MouseFilterMode.Stop;
|
||||||
@@ -104,9 +104,9 @@ namespace Content.Client.Wires.UI
|
|||||||
VerticalAlignment = VAlignment.Bottom
|
VerticalAlignment = VAlignment.Bottom
|
||||||
};
|
};
|
||||||
|
|
||||||
wrappingHBox.AddChild(new Control {MinSize = new Vector2(20, 0)});
|
wrappingHBox.AddChild(new Control { MinSize = new Vector2(20, 0) });
|
||||||
wrappingHBox.AddChild(_wiresHBox);
|
wrappingHBox.AddChild(_wiresHBox);
|
||||||
wrappingHBox.AddChild(new Control {MinSize = new Vector2(20, 0)});
|
wrappingHBox.AddChild(new Control { MinSize = new Vector2(20, 0) });
|
||||||
|
|
||||||
bottomWrap.AddChild(bottomPanel);
|
bottomWrap.AddChild(bottomPanel);
|
||||||
|
|
||||||
@@ -201,7 +201,7 @@ namespace Content.Client.Wires.UI
|
|||||||
|
|
||||||
var middle = new PanelContainer
|
var middle = new PanelContainer
|
||||||
{
|
{
|
||||||
PanelOverride = new StyleBoxFlat {BackgroundColor = Color.FromHex("#3C4841")},
|
PanelOverride = new StyleBoxFlat { BackgroundColor = Color.FromHex("#3C4841") },
|
||||||
Children =
|
Children =
|
||||||
{
|
{
|
||||||
new BoxContainer
|
new BoxContainer
|
||||||
@@ -224,13 +224,13 @@ namespace Content.Client.Wires.UI
|
|||||||
_topContainer.AddChild(new PanelContainer
|
_topContainer.AddChild(new PanelContainer
|
||||||
{
|
{
|
||||||
MinSize = new Vector2(0, 2),
|
MinSize = new Vector2(0, 2),
|
||||||
PanelOverride = new StyleBoxFlat {BackgroundColor = Color.FromHex("#525252ff")}
|
PanelOverride = new StyleBoxFlat { BackgroundColor = Color.FromHex("#525252ff") }
|
||||||
});
|
});
|
||||||
_topContainer.AddChild(middle);
|
_topContainer.AddChild(middle);
|
||||||
_topContainer.AddChild(new PanelContainer
|
_topContainer.AddChild(new PanelContainer
|
||||||
{
|
{
|
||||||
MinSize = new Vector2(0, 2),
|
MinSize = new Vector2(0, 2),
|
||||||
PanelOverride = new StyleBoxFlat {BackgroundColor = Color.FromHex("#525252ff")}
|
PanelOverride = new StyleBoxFlat { BackgroundColor = Color.FromHex("#525252ff") }
|
||||||
});
|
});
|
||||||
CloseButton.OnPressed += _ => Close();
|
CloseButton.OnPressed += _ => Close();
|
||||||
SetSize = new Vector2(320, 200);
|
SetSize = new Vector2(320, 200);
|
||||||
@@ -583,28 +583,21 @@ namespace Content.Client.Wires.UI
|
|||||||
VerticalAlignment = VAlignment.Center,
|
VerticalAlignment = VAlignment.Center,
|
||||||
});
|
});
|
||||||
hBox.AddChild(lightContainer);
|
hBox.AddChild(lightContainer);
|
||||||
hBox.AddChild(new Control {MinSize = new Vector2(6, 0)});
|
hBox.AddChild(new Control { MinSize = new Vector2(6, 0) });
|
||||||
AddChild(hBox);
|
AddChild(hBox);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private sealed class HelpPopup : Popup
|
private sealed class HelpPopup : Popup
|
||||||
{
|
{
|
||||||
private const string Text = "Click on the gold contacts with a multitool in hand to pulse their wire.\n" +
|
|
||||||
"Click on the wires with a pair of wirecutters in hand to cut/mend them.\n\n" +
|
|
||||||
"The lights at the top show the state of the machine, " +
|
|
||||||
"messing with wires will probably do stuff to them.\n" +
|
|
||||||
"Wire layouts are different each round, " +
|
|
||||||
"but consistent between machines of the same type.";
|
|
||||||
|
|
||||||
public HelpPopup()
|
public HelpPopup()
|
||||||
{
|
{
|
||||||
var label = new RichTextLabel();
|
var label = new RichTextLabel();
|
||||||
label.SetMessage(Text);
|
label.SetMessage(Loc.GetString("wires-menu-help-popup"));
|
||||||
AddChild(new PanelContainer
|
AddChild(new PanelContainer
|
||||||
{
|
{
|
||||||
StyleClasses = {ExamineSystem.StyleClassEntityTooltip},
|
StyleClasses = { ExamineSystem.StyleClassEntityTooltip },
|
||||||
Children = {label}
|
Children = { label }
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,3 +12,9 @@ wires-component-on-examine-panel-closed = [color=lightgray]Техническа
|
|||||||
|
|
||||||
wires-menu-name-label = Провода
|
wires-menu-name-label = Провода
|
||||||
wires-menu-dead-beef-text = DEAD-BEEF
|
wires-menu-dead-beef-text = DEAD-BEEF
|
||||||
|
wires-menu-help-popup =
|
||||||
|
Кликайте на позолоченные контакты рукой с мультитулом чтобы подавать импульсы на соответствующие провода.
|
||||||
|
Кликайте на провода рукой с кусачками чтобы перерезать или соединять их.
|
||||||
|
|
||||||
|
Индикаторы в верхней части показывают состояние устройства, и вмешательство в провода, наверняка, что-то с устройством сделает.
|
||||||
|
Расположение проводов в каждом раунде разное, но при этом одинаковое для устройств одного типа.
|
||||||
|
|||||||
Reference in New Issue
Block a user