Skip to content

Commit

Permalink
fix math, valid ui open
Browse files Browse the repository at this point in the history
  • Loading branch information
kanopus952 committed Jan 13, 2025
1 parent 3e3d98a commit 8170b74
Show file tree
Hide file tree
Showing 2 changed files with 237 additions and 202 deletions.
39 changes: 25 additions & 14 deletions Content.Client/_Sunrise/ERP/InteractionWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -351,32 +351,43 @@ public void Populate()
{
//Юзер
UserDescription.AddChild(new Label { Text = "Вы...", StyleClasses = { StyleNano.StyleClassLabelBig } }); ;
if (UserHasClothing) UserDescription.AddChild(new Label { Text = "...Обладаете одеждой" });
else UserDescription.AddChild(new Label { Text = "...Не обладаете одеждой" });
UserDescription.AddChild(new Label { Text = "...Обладаете анусом" });
if (UserSex.Value == Sex.Male) UserDescription.AddChild(new Label { Text = "...Обладаете пенисом" });
if (UserSex.Value == Sex.Female) UserDescription.AddChild(new Label { Text = "...Обладаете вагиной" });
if (UserSex.Value == Sex.Female) UserDescription.AddChild(new Label { Text = "...Обладаете грудью" });

if (UserHasClothing)
UserDescription.AddChild(new Label { Text = "...Обладаете одеждой" });
else UserDescription.AddChild(new Label { Text = "...Не обладаете одеждой" });

if (UserSex.Value == Sex.Male)
UserDescription.AddChild(new Label { Text = "...Обладаете пенисом" });

if (UserSex.Value == Sex.Female)
{
UserDescription.AddChild(new Label { Text = "...Обладаете вагиной" });
UserDescription.AddChild(new Label { Text = "...Обладаете грудью" });
}
//Таргет
if (_entManager.GetEntity(TargetEntityId.Value) != _player.LocalEntity.Value)
{
TargetDescription.AddChild(new Label { Text = Identity.Name(_eui._entManager.GetEntity(TargetEntityId.Value), _eui._entManager, _player.LocalEntity.Value) + "...", StyleClasses = { StyleNano.StyleClassLabelBig } });
if (TargetHasClothing) TargetDescription.AddChild(new Label { Text = "...Обладает одеждой" });
if (TargetHasClothing)
TargetDescription.AddChild(new Label { Text = "...Обладает одеждой" });
else
{
TargetDescription.AddChild(new Label { Text = "...Не обладает одеждой" });
TargetDescription.AddChild(new Label { Text = "...Обладает анусом" });
if (TargetSex.Value == Sex.Male) TargetDescription.AddChild(new Label { Text = "...Обладает пенисом" });
if (TargetSex.Value == Sex.Female) TargetDescription.AddChild(new Label { Text = "...Обладает вагиной" });

if (TargetSex.Value == Sex.Male)
TargetDescription.AddChild(new Label { Text = "...Обладает пенисом" });

if (TargetSex.Value == Sex.Female)
TargetDescription.AddChild(new Label { Text = "...Обладает вагиной" });

}
if (TargetSex.Value == Sex.Female) TargetDescription.AddChild(new Label { Text = "...Обладает грудью" });
if (TargetSex.Value == Sex.Female)
TargetDescription.AddChild(new Label { Text = "...Обладает грудью" });
}

}
else
{
ErpProgress.Dispose();
}
else ErpProgress.Dispose();

if (DescriptionContainer.Visible)
{
Expand Down
Loading

0 comments on commit 8170b74

Please sign in to comment.