ANIM Editor - use '|=' instead when applying template anim

This commit is contained in:
miku-666
2023-05-25 14:21:53 +02:00
parent be69240fea
commit c86cec1a1e
3 changed files with 2 additions and 4 deletions

View File

@@ -341,7 +341,7 @@ namespace PckStudio.Forms.Editor
var templateANIM = new SkinANIM(Templates[diag.SelectedItem]);
DialogResult prompt = MessageBox.Show(this, "Would you like to add this preset's effects to your current ANIM? Otherwise all of your effects will be cleared. Either choice can be undone by pressing \"Restore ANIM\".", "", MessageBoxButtons.YesNo);
if (prompt == DialogResult.Yes)
templateANIM = ruleset.Value | templateANIM;
templateANIM |= ruleset.Value;
ruleset.ApplyAnim(templateANIM);
}

View File

@@ -120,7 +120,4 @@
<metadata name="SettingToolTip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<metadata name="SettingToolTip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
</root>

View File

@@ -589,6 +589,7 @@
</EmbeddedResource>
<EmbeddedResource Include="Forms\Utilities\AppBehaviorSettingsForm.resx">
<DependentUpon>AppBehaviorSettingsForm.cs</DependentUpon>
<SubType>Designer</SubType>
</EmbeddedResource>
<EmbeddedResource Include="MainForm.ja.resx">
<DependentUpon>MainForm.cs</DependentUpon>