Skip to content

Commit

Permalink
Хирургия (#607)
Browse files Browse the repository at this point in the history
* Surgery

* translate strings

* ru translate

* second ru translate

* fix

* fix pizza icon

* пу-пу-пу

* fix damageeeee

* fix

* fix x2)
  • Loading branch information
Rinary1 authored Nov 13, 2024
1 parent 8bec8a7 commit ad190f1
Show file tree
Hide file tree
Showing 156 changed files with 5,118 additions and 137 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -306,3 +306,4 @@ Resources/MapImages

# Direnv stuff
.direnv/
.idea/
17 changes: 17 additions & 0 deletions Content.Client/_Sunrise/ChoiceControl.xaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<ui:ChoiceControl
xmlns="https://spacestation14.io"
xmlns:ui="clr-namespace:Content.Client._Sunrise">
<BoxContainer Orientation="Horizontal">
<Button Name="Button" Access="Public"
HorizontalExpand="True" VerticalExpand="False"
StyleClasses="ButtonSquare" Margin="0">
<BoxContainer Orientation="Horizontal" Margin="0">
<TextureRect Name="Texture" Access="Public"
HorizontalExpand="False" VerticalExpand="False"
Margin="1"/>
<Control MinWidth="5"/>
<RichTextLabel Name="NameLabel" Access="Public" VerticalAlignment="Center"/>
</BoxContainer>
</Button>
</BoxContainer>
</ui:ChoiceControl>
27 changes: 27 additions & 0 deletions Content.Client/_Sunrise/ChoiceControl.xaml.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
using Robust.Client.AutoGenerated;
using Robust.Client.Graphics;
using Robust.Client.UserInterface;
using Robust.Client.UserInterface.XAML;
using Robust.Shared.Utility;
// Taken from RMC14 build.
// https://github.com/RMC-14/RMC-14
namespace Content.Client._Sunrise;

[GenerateTypedNameReferences]
[Virtual]
public partial class ChoiceControl : Control
{
public ChoiceControl() => RobustXamlLoader.Load(this);

public void Set(string name, Texture? texture)
{
NameLabel.SetMessage(name);
Texture.Texture = texture;
}

public void Set(FormattedMessage msg, Texture? texture)
{
NameLabel.SetMessage(msg);
Texture.Texture = texture;
}
}
Loading

0 comments on commit ad190f1

Please sign in to comment.