mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-12 18:27:24 +01:00
Some readonlys.
This commit is contained in:
parent
e02de6de5a
commit
9255f2bb2b
3 changed files with 6 additions and 6 deletions
|
|
@ -28,13 +28,13 @@ public struct CharacterArmor : IEquatable<CharacterArmor>
|
||||||
Stain = stain;
|
Stain = stain;
|
||||||
}
|
}
|
||||||
|
|
||||||
public CharacterArmor With(StainId stain)
|
public readonly CharacterArmor With(StainId stain)
|
||||||
=> new(Set, Variant, stain);
|
=> new(Set, Variant, stain);
|
||||||
|
|
||||||
public CharacterWeapon ToWeapon()
|
public readonly CharacterWeapon ToWeapon()
|
||||||
=> new(Set, 0, Variant, Stain);
|
=> new(Set, 0, Variant, Stain);
|
||||||
|
|
||||||
public CharacterWeapon ToWeapon(StainId stain)
|
public readonly CharacterWeapon ToWeapon(StainId stain)
|
||||||
=> new(Set, 0, Variant, stain);
|
=> new(Set, 0, Variant, stain);
|
||||||
|
|
||||||
public override string ToString()
|
public override string ToString()
|
||||||
|
|
|
||||||
|
|
@ -40,10 +40,10 @@ public struct CharacterWeapon : IEquatable<CharacterWeapon>
|
||||||
Stain = (StainId)(value >> 48);
|
Stain = (StainId)(value >> 48);
|
||||||
}
|
}
|
||||||
|
|
||||||
public CharacterArmor ToArmor()
|
public readonly CharacterArmor ToArmor()
|
||||||
=> new(Set, (byte)Variant, Stain);
|
=> new(Set, (byte)Variant, Stain);
|
||||||
|
|
||||||
public CharacterArmor ToArmor(StainId stain)
|
public readonly CharacterArmor ToArmor(StainId stain)
|
||||||
=> new(Set, (byte)Variant, stain);
|
=> new(Set, (byte)Variant, stain);
|
||||||
|
|
||||||
public static readonly CharacterWeapon Empty = new(0, 0, 0, 0);
|
public static readonly CharacterWeapon Empty = new(0, 0, 0, 0);
|
||||||
|
|
|
||||||
|
|
@ -293,7 +293,7 @@ public partial class ModEditWindow
|
||||||
if (_selectedFiles.Count == 0)
|
if (_selectedFiles.Count == 0)
|
||||||
tt += "\n\nNo files selected.";
|
tt += "\n\nNo files selected.";
|
||||||
else if (!active)
|
else if (!active)
|
||||||
tt += $"\n\nHold {_config.DeleteModModifier.ToString()} to delete.";
|
tt += $"\n\nHold {_config.DeleteModModifier} to delete.";
|
||||||
|
|
||||||
if (ImGuiUtil.DrawDisabledButton("Delete Selected Files", Vector2.Zero, tt, _selectedFiles.Count == 0 || !active))
|
if (ImGuiUtil.DrawDisabledButton("Delete Selected Files", Vector2.Zero, tt, _selectedFiles.Count == 0 || !active))
|
||||||
_editor.FileEditor.DeleteFiles(_editor.Mod!, _editor.Option!, _editor.Files.Available.Where(_selectedFiles.Contains));
|
_editor.FileEditor.DeleteFiles(_editor.Mod!, _editor.Option!, _editor.Files.Available.Where(_selectedFiles.Contains));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue