Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

переделки?) #274

Merged
merged 18 commits into from
Oct 18, 2024
Merged
Show file tree
Hide file tree
Changes from 16 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/test-secrets4.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
validate_rsis:
name: Validate RSIs
if: github.actor != 'PJBot' && github.event.pull_request.draft == false && github.actor != 'DeltaV-Bot' && github.actor != 'SimpleStation14' && github.actor != 'Lost-Paradise-Bot' && github.repository == 'Lost-Paradise-Project/Lost-Paradise'
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
Evgencheg marked this conversation as resolved.
Show resolved Hide resolved
steps:
- uses: actions/[email protected]
- name: Download parts
Expand All @@ -27,7 +27,7 @@ jobs:
uses: space-wizards/[email protected]
- name: Install Python dependencies
run: |
pip3 install --ignore-installed --user pillow jsonschema --break-system-packages
pip3 install --ignore-installed --user pillow jsonschema
- name: Validate RSIs
run: |
python3 RobustToolbox/Schemas/validate_rsis.py Resources/
4 changes: 2 additions & 2 deletions .github/workflows/validate-rsis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:
jobs:
validate_rsis:
name: Validate RSIs
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
Evgencheg marked this conversation as resolved.
Show resolved Hide resolved
steps:
- uses: actions/[email protected]
- name: Setup Submodule
Expand All @@ -22,7 +22,7 @@ jobs:
uses: space-wizards/[email protected]
- name: Install Python dependencies
run: |
pip3 install --ignore-installed --user pillow jsonschema --break-system-packages
pip3 install --ignore-installed --user pillow jsonschema
- name: Validate RSIs
run: |
python3 RobustToolbox/Schemas/validate_rsis.py Resources/
10 changes: 0 additions & 10 deletions Content.Client/Preferences/UI/HumanoidProfileEditor.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -213,16 +213,6 @@

<ui:NeoTabContainer Name="CLoadoutsTabs" VerticalExpand="True" SeparatorMargin="0" />
</BoxContainer>
<!-- Lost Paradise Donate Preferences Begin -->
<BoxContainer Orientation="Vertical" Margin="10" Name="LPPDonateTab">
<!-- Donate -->
<ScrollContainer HorizontalExpand="True" HScrollEnabled="True" VerticalExpand="True" VScrollEnabled="True">
<BoxContainer Name="DonateList" Orientation="Vertical">
<CheckBox></CheckBox>
</BoxContainer>
</ScrollContainer>
</BoxContainer>
<!-- Lost Paradise Donate Preferences End -->
<BoxContainer Name="CMarkingsTab" HorizontalExpand="True" Orientation="Vertical" Margin="10">
<ScrollContainer HorizontalExpand="True" HScrollEnabled="True" VerticalExpand="True" VScrollEnabled="True">
<!-- Markings -->
Expand Down
58 changes: 0 additions & 58 deletions Content.Client/Preferences/UI/HumanoidProfileEditor.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,6 @@ public sealed partial class HumanoidProfileEditor : BoxContainer
private Button _loadoutsShowUnusableButton => LoadoutsShowUnusableButton;
private Button _loadoutsRemoveUnusableButton => LoadoutsRemoveUnusableButton;
private NeoTabContainer _loadoutsTabs => CLoadoutsTabs;

private BoxContainer _donateList => LPPDonateTab; // Lost Paradise Donate Preferences
#if LPP_Sponsors
private List<_LostParadise.Donate.DonatePreferenceSelector> _donatePreferences; // Lost Paradise Donate Preferences
#endif
private readonly List<JobPrioritySelector> _jobPriorities;
private OptionButton _preferenceUnavailableButton => CPreferenceUnavailableButton;
private readonly Dictionary<string, BoxContainer> _jobCategories;
Expand Down Expand Up @@ -588,45 +583,6 @@ public HumanoidProfileEditor(IClientPreferencesManager preferencesManager, IProt
};

#endregion Dummy

#if LPP_Sponsors // Lost Paradise Donate Preferences
#region Donate
LPPDonateTab.Orphan();
_tabContainer.AddTab(LPPDonateTab, Loc.GetString("lost-donate-editor"));
var donate = prototypeManager.EnumeratePrototypes<Shared._LostParadise.Donate.DonatePrototype>().OrderBy(t => Loc.GetString(t.Name)).ToList();
_donatePreferences = new List<_LostParadise.Donate.DonatePreferenceSelector>();
var granted = false;
_donateList.DisposeAllChildren();
if (donate.Count > 0)
{
foreach (var donatet in donate)
{
var selector = new _LostParadise.Donate.DonatePreferenceSelector(donatet);
selector.PreferenceChanged += preference =>
{
Profile = Profile?.WithDonatePreference(donatet.ID, preference);
};
if (selector.Gave)
granted = true;

_donateList.AddChild(selector);
_donatePreferences.Add(selector);
}
}
if (!granted)
{
_donateList.AddChild(new Label
{
Text = Loc.GetString("lost-nodonate"),
FontColorOverride = Color.Gray,
});
}
// Lost Paradise Donate Preferences End
#endregion

#else
LPPDonateTab.Dispose();
#endif
#endregion Left

if (preferencesManager.ServerDataLoaded)
Expand All @@ -641,20 +597,6 @@ public HumanoidProfileEditor(IClientPreferencesManager preferencesManager, IProt
IsDirty = false;
}

#if LPP_Sponsors // Lost Paradise Donate Preferences
private void RefreshDonatePreferences()
{
_donatePreferences = new List<_LostParadise.Donate.DonatePreferenceSelector>();
foreach (var preferenceSelector in _donatePreferences)
{
var donateId = preferenceSelector.Donate.ID;
var preference = Profile?.DonatePreferences.Contains(donateId) ?? false;

preferenceSelector.Preference = preference;
}
}
#endif

private void LoadoutsChanged(bool enabled)
{
_tabContainer.SetTabVisible(4, enabled);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,6 @@ private static HumanoidCharacterProfile CharlieCharlieson()
antagPreferences: new List<string>(),
traitPreferences: new List<string>(),
loadoutPreferences: new List<string>()
#if LPP_Sponsors
, donatePreferences: new List<string>() // Lost Paradise Donate Preferences
#endif
);
}

Expand Down
Loading
Loading