Skip to content

Commit

Permalink
popukai
Browse files Browse the repository at this point in the history
  • Loading branch information
KidzAra committed Oct 24, 2024
1 parent b8fddba commit 791c309
Show file tree
Hide file tree
Showing 44,306 changed files with 4,476,682 additions and 73,041 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
11 changes: 0 additions & 11 deletions Content.Client/Administration/UI/DepartmentWhitelistPanel.xaml

This file was deleted.

49 changes: 0 additions & 49 deletions Content.Client/Administration/UI/DepartmentWhitelistPanel.xaml.cs

This file was deleted.

40 changes: 0 additions & 40 deletions Content.Client/Administration/UI/JobWhitelistsEui.cs

This file was deleted.

11 changes: 0 additions & 11 deletions Content.Client/Administration/UI/JobWhitelistsWindow.xaml

This file was deleted.

46 changes: 0 additions & 46 deletions Content.Client/Administration/UI/JobWhitelistsWindow.xaml.cs

This file was deleted.

5 changes: 0 additions & 5 deletions Content.Client/Chapel/SacrificialAltarSystem.cs

This file was deleted.

33 changes: 0 additions & 33 deletions Content.Client/Cocoon/CocoonSystem.cs

This file was deleted.

2 changes: 1 addition & 1 deletion Content.Client/FlavorText/FlavorText.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public FlavorText()

var loc = IoCManager.Resolve<ILocalizationManager>();
CFlavorTextInput.Placeholder = new Rope.Leaf(loc.GetString("flavor-text-placeholder"));
CFlavorTextInput.OnTextChanged += _ => FlavorTextChanged();
CFlavorTextInput.OnKeyBindDown += _ => FlavorTextChanged();
}

public void FlavorTextChanged()
Expand Down
19 changes: 1 addition & 18 deletions Content.Client/LateJoin/LateJoinGui.cs
Original file line number Diff line number Diff line change
Expand Up @@ -261,24 +261,7 @@ private void RebuildUI()

jobButton.OnPressed += _ => SelectedId.Invoke((id, jobButton.JobId));

if (!_jobRequirements.CheckJobWhitelist(prototype, out var reason))
{
jobButton.Disabled = true;

var tooltip = new Tooltip();
tooltip.SetMessage(reason);
jobButton.TooltipSupplier = _ => tooltip;

jobSelector.AddChild(new TextureRect
{
TextureScale = new Vector2(0.4f, 0.4f),
Stretch = TextureRect.StretchMode.KeepCentered,
Texture = _sprites.Frame0(new SpriteSpecifier.Texture(new ("/Textures/Interface/Nano/lock.svg.192dpi.png"))),
HorizontalExpand = true,
HorizontalAlignment = HAlignment.Right,
});
}
else if (!_characterRequirements.CheckRequirementsValid(
if (!_characterRequirements.CheckRequirementsValid(
prototype.Requirements ?? new(),
prototype,
(HumanoidCharacterProfile) (_prefs.Preferences?.SelectedCharacter
Expand Down
14 changes: 6 additions & 8 deletions Content.Client/Lobby/LobbyUIController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,12 @@ public override void Initialize()
_requirements.Updated += OnRequirementsUpdated;

_configurationManager.OnValueChanged(CCVars.FlavorText, _ => _profileEditor?.RefreshFlavorText());
_configurationManager.OnValueChanged(CCVars.GameRoleTimers, _ => RefreshProfileEditor());
_configurationManager.OnValueChanged(CCVars.GameRoleWhitelist, _ => RefreshProfileEditor());
_configurationManager.OnValueChanged(CCVars.GameRoleTimers,
_ =>
{
_profileEditor?.RefreshAntags();
_profileEditor?.RefreshJobs();
});

_preferencesManager.OnServerDataLoaded += PreferencesDataLoaded;
}
Expand Down Expand Up @@ -164,12 +168,6 @@ private void RefreshLobbyPreview()
PreviewPanel.SetSummaryText(humanoid.Summary);
}

private void RefreshProfileEditor()
{
_profileEditor?.RefreshAntags();
_profileEditor?.RefreshJobs();
}

private void SaveProfile()
{
DebugTools.Assert(EditedProfile != null);
Expand Down
Loading

0 comments on commit 791c309

Please sign in to comment.