-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from Schrodinger71/blue_sheald
Blue sheald
- Loading branch information
Showing
897 changed files
with
452,402 additions
and
56,496 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,7 +36,7 @@ jobs: | |
- name: Setup .NET Core | ||
uses: actions/[email protected] | ||
with: | ||
dotnet-version: 8.0.x | ||
dotnet-version: 8.0.203 | ||
|
||
- name: Install dependencies | ||
run: dotnet restore | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,7 +51,7 @@ jobs: | |
- name: Setup .NET Core | ||
uses: actions/[email protected] | ||
with: | ||
dotnet-version: 8.0.x | ||
dotnet-version: 8.0.203 | ||
|
||
- name: Install dependencies | ||
run: dotnet restore | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,7 +26,7 @@ jobs: | |
- name: Setup .NET Core | ||
uses: actions/[email protected] | ||
with: | ||
dotnet-version: 8.0.x | ||
dotnet-version: 8.0.203 | ||
- name: Install dependencies | ||
run: dotnet restore | ||
- name: Build | ||
|
Submodule ADT_STATION
updated
from efd984 to 97bff0
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
/// Made for Adventure Time Project by ModerN. https://github.com/modern-nm mailto:[email protected] | ||
/// see also https://github.com/DocNITE/liebendorf-station/tree/feature/emote-radial-panel | ||
using Content.Client.Humanoid; | ||
using Content.Client.UserInterface.Systems.Radial; | ||
using Content.Client.UserInterface.Systems.Radial.Controls; | ||
using Content.Shared.Changeling; | ||
using Content.Shared.Humanoid.Prototypes; | ||
using Robust.Client.GameObjects; | ||
using Robust.Client.Player; | ||
using Robust.Client.UserInterface; | ||
using Robust.Client.UserInterface.Controls; | ||
using Robust.Shared.Map; | ||
using Robust.Shared.Player; | ||
using Robust.Shared.Prototypes; | ||
using Robust.Shared.Random; | ||
using Robust.Shared.Utility; | ||
using System.Numerics; | ||
|
||
namespace Content.Client.ADT.Language; | ||
|
||
public sealed class ChangelingPanelSystem : EntitySystem | ||
{ | ||
[Dependency] private readonly IPrototypeManager _proto = default!; | ||
[Dependency] private readonly IRobustRandom _random = default!; | ||
[Dependency] private readonly IUserInterfaceManager _userInterfaceManager = default!; | ||
[Dependency] private readonly IPlayerManager _playerMan = default!; | ||
[Dependency] private readonly SpriteSystem _spriteSystem = default!; | ||
[Dependency] private readonly IEntityManager _entManager = default!; | ||
[Dependency] private readonly HumanoidAppearanceSystem _appearanceSystem = default!; | ||
|
||
/// <summary> | ||
/// We should enable radial for single target | ||
/// </summary> | ||
private RadialContainer? _openedMenu; | ||
|
||
private const string DefaultIcon = "/Textures/Interface/AdminActions/play.png"; | ||
|
||
private const string EmptyIcon = "/Textures/Interface/AdminActions/emptyIcon.png"; | ||
|
||
public override void Initialize() | ||
{ | ||
base.Initialize(); | ||
|
||
SubscribeLocalEvent<PlayerAttachedEvent>(OnPlayerAttached); | ||
SubscribeLocalEvent<PlayerDetachedEvent>(OnPlayerDetached); | ||
|
||
SubscribeNetworkEvent<RequestChangelingFormsMenuEvent>(HandleChangelingFormsMenuEvent); | ||
} | ||
|
||
private void HandleChangelingFormsMenuEvent(RequestChangelingFormsMenuEvent args) | ||
{ | ||
if (_openedMenu != null) | ||
return; | ||
if (_playerMan.LocalEntity == null) | ||
{ | ||
return; | ||
} | ||
|
||
//if (!TryComp<ChangelingComponent>(_playerMan.LocalEntity.Value, out var changelingComponent)) // нет на клиенте | ||
// return; | ||
|
||
_openedMenu = _userInterfaceManager.GetUIController<RadialUiController>() | ||
.CreateRadialContainer(); | ||
|
||
foreach (var humanoid in args.HumanoidData) | ||
{ | ||
var dummy = _entManager.SpawnEntity(_proto.Index<SpeciesPrototype>(humanoid.Species).DollPrototype, MapCoordinates.Nullspace); | ||
//var humanoidEntityUid = GetEntity(humanoid); // Entities on the client outside of the FOV are nonexistant. You can see that if you zoom out. //So it'll give you UID 0 which is EntityUid.Invalid. | ||
_appearanceSystem.LoadProfile(dummy, humanoid.Profile); | ||
var face = new SpriteView(); | ||
face.SetEntity(dummy); | ||
|
||
var actionName = humanoid.Name; | ||
var texturePath = _spriteSystem.Frame0(new SpriteSpecifier.Texture(new ResPath(EmptyIcon))); | ||
|
||
var emoteButton = _openedMenu.AddButton(actionName, texturePath, face); | ||
emoteButton.Opacity = 210; | ||
emoteButton.Tooltip = null; | ||
emoteButton.Controller.OnPressed += (_) => | ||
{ | ||
var ev = new SelectChangelingFormEvent(args.Target, entitySelected: humanoid.NetEntity); | ||
RaiseNetworkEvent(ev); | ||
_openedMenu.Dispose(); | ||
}; | ||
} | ||
_openedMenu.OnClose += (_) => | ||
{ | ||
_openedMenu = null; | ||
}; | ||
if (_playerMan.LocalEntity != null) | ||
_openedMenu.OpenAttached(_playerMan.LocalEntity.Value); | ||
|
||
} | ||
|
||
private void OnPlayerAttached(PlayerAttachedEvent args) | ||
{ | ||
_openedMenu?.Dispose(); | ||
} | ||
|
||
private void OnPlayerDetached(PlayerDetachedEvent args) | ||
{ | ||
_openedMenu?.Dispose(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
Copyright (c) 2024 Adventure Station | ||
|
||
1. The provided software code in this and nested directories (hereinafter referred to as the "Adventure Station" project code) is intended solely for use within the "Adventure Station" project. | ||
|
||
2. Any use, copying, distribution, or modification of the "Adventure Station" project code outside of "Adventure Station" project is prohibited. | ||
|
||
3. This license does not grant any rights to own, use, or distribute the "Adventure Station" project code outside of the "Adventure Station" project. | ||
|
||
4. This license is valid indefinitely, or until a decision is made by the copyright holder of the "Adventure Station" project to revoke/modify it. | ||
|
||
Copyright (c) 2024 Adventure Station | ||
|
||
1. Представленный программный код в данном и вложенных директориях (далее - код проекта "Adventure Station") предназначен исключительно для использования в рамках проекта "Adventure Station" | ||
|
||
2. Любое использование, копирование, распространение и изменение кода проекта "Adventure Station" за пределами данного проекта запрещены. | ||
|
||
3. Настоящая лицензия не предоставляет никаких прав на владение, использование или распространение кода проекта "Adventure Station" вне проекта "Adventure Station". | ||
|
||
4. Настоящая лицензия действительна бессрочно, или до решения об упразднении/изменении правообладателем проекта "Adventure Station". |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
Content.Client/UserInterface/Systems/Radial/Controls/RadialItem.xaml.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.