示例#1
0
 public HatSettings WithOverride(HatSettings over)
 => new HatSettings
 {
     HorizontalSize = over?.HorizontalSize ?? HorizontalSize,
     HatPosition    = over?.HatPosition ?? HatPosition,
     ImageName      = over?.ImageName ?? ImageName
 };
示例#2
0
 private static Hat ReadFromHatfile(string path, HatSettings overrides, TomlSettings tomlSettings)
 {
     try
     {
         using (var zf = HatfileReader.Create(path))
         {
             var entry = zf.GetEntry(HatfileMeta);
             if (entry == null)
             {
                 MessageBox.Show($"Custom hat at '{path}' is invalid. It does not have '{HatfileMeta}'.",
                                 Name, MessageBoxButtons.OK, MessageBoxIcon.Error);
                 return(default);
示例#3
0
文件: Hat.cs 项目: noskol/GoosMods.3
 public Hat(Bitmap bm, HatSettings settings)
 {
     Image    = bm;
     Settings = settings;
 }