更新新的工作
@ -46,37 +46,46 @@ namespace VPet_Simulator.Tool
|
||||
{
|
||||
Console.WriteLine("请输入图片位置");
|
||||
DirectoryInfo directoryInfo = new DirectoryInfo(Console.ReadLine());
|
||||
int id = 0;
|
||||
int rpt = 1;
|
||||
string hash = null;
|
||||
FileInfo lastf = null;
|
||||
foreach (FileInfo fileInfo in directoryInfo.GetFiles())
|
||||
{
|
||||
if (lastf == null)
|
||||
if (directoryInfo.GetFiles().Length != 0)
|
||||
AnimationReName(time, directoryInfo);
|
||||
else
|
||||
foreach (var fs in directoryInfo.GetDirectories())
|
||||
{
|
||||
lastf = fileInfo;
|
||||
hash = GetFileHash(fileInfo);
|
||||
continue;
|
||||
AnimationReName(time, fs);
|
||||
}
|
||||
string filehash = GetFileHash(fileInfo);
|
||||
if (hash.Equals(filehash))
|
||||
{
|
||||
//这个文件和上一个文件的hash值相同,这个上个文件
|
||||
lastf.Delete();
|
||||
lastf = fileInfo;
|
||||
rpt++;
|
||||
continue;
|
||||
}
|
||||
hash = filehash;
|
||||
lastf.MoveTo(Path.Combine(directoryInfo.FullName, $"{GetFileName(lastf)}_{id++:D3}_{rpt * time}.png"));
|
||||
rpt = 1;
|
||||
lastf = fileInfo;
|
||||
}
|
||||
lastf.MoveTo(Path.Combine(directoryInfo.FullName, $"{GetFileName(lastf)}_{id++:D3}_{rpt * time}.png"));
|
||||
Console.WriteLine("图片处理已完成");
|
||||
}
|
||||
}
|
||||
|
||||
static void AnimationReName(int time, DirectoryInfo directoryInfo)
|
||||
{
|
||||
int id = 0;
|
||||
int rpt = 1;
|
||||
string hash = null;
|
||||
FileInfo lastf = null;
|
||||
foreach (FileInfo fileInfo in directoryInfo.GetFiles())
|
||||
{
|
||||
if (lastf == null)
|
||||
{
|
||||
lastf = fileInfo;
|
||||
hash = GetFileHash(fileInfo);
|
||||
continue;
|
||||
}
|
||||
string filehash = GetFileHash(fileInfo);
|
||||
if (hash.Equals(filehash))
|
||||
{
|
||||
//这个文件和上一个文件的hash值相同,这个上个文件
|
||||
lastf.Delete();
|
||||
lastf = fileInfo;
|
||||
rpt++;
|
||||
continue;
|
||||
}
|
||||
hash = filehash;
|
||||
lastf.MoveTo(Path.Combine(directoryInfo.FullName, $"{GetFileName(lastf)}_{id++:D3}_{rpt * time}.png"));
|
||||
rpt = 1;
|
||||
lastf = fileInfo;
|
||||
}
|
||||
lastf.MoveTo(Path.Combine(directoryInfo.FullName, $"{GetFileName(lastf)}_{id++:D3}_{rpt * time}.png"));
|
||||
Console.WriteLine("图片处理已完成");
|
||||
}
|
||||
//static void FontPetNew()
|
||||
//{
|
||||
// Console.WriteLine("请输入储存位置");
|
||||
|
@ -3,7 +3,8 @@ touchhead:|px#159:|py#16:|sw#189:|sh#178:|
|
||||
touchraised:|happy_px#0:|happy_py#50:|happy_sw#500:|happy_sh#200:|nomal_px#0:|nomal_py#50:|nomal_sw#500:|nomal_sh#200:|poorcondition_px#0:|poorcondition_py#50:|poorcondition_sw#500:|poorcondition_sh#200:|ill_px#0:|ill_py#200:|ill_sw#500:|ill_sh#300:|
|
||||
raisepoint:|happy_x#290:|happy_y#128:|nomal_x#290:|nomal_y#128:|poorcondition_x#290:|poorcondition_y#128:|ill_x#225:|ill_y#115:|
|
||||
work:|Type#Work:|Name#文案:|MoneyBase#8:|MoneyLevel#0.5:|Graph#workone:|StrengthFood#3.5:|StrengthDrink#2.5:|Feeling#1.5:|Time#60:|FinishBonus#0.1:|BorderBrush#000000:|Background#413d39:|ButtonBackground#322e2b:|ButtonForeground#FFFFFF:|Foreground#ccbdad:|Left#113:|Top#315:|Width#280:|
|
||||
work:|Type#Work:|Name#直播:|MoneyBase#16:|MoneyLevel#1:|Graph#worktwo:|StrengthFood#4.5:|StrengthDrink#7.5:|Feeling#2.5:|Time#180:|FinishBonus#0.25:|LevelLimit#10:|BorderBrush#000000:|Background#413d39:|ButtonBackground#322e2b:|ButtonForeground#FFFFFF:|Foreground#ccbdad:|Left#113:|Top#315:|Width#280:|
|
||||
work:|Type#Work:|Name#清屏:|MoneyBase#16:|MoneyLevel#1:|Graph#workclean:|StrengthFood#7.5:|StrengthDrink#4.5:|Feeling#2.5:|Time#180:|FinishBonus#0.25:|LevelLimit#10:|BorderBrush#000000:|Background#413d39:|ButtonBackground#322e2b:|ButtonForeground#FFFFFF:|Foreground#ccbdad:|Left#113:|Top#315:|Width#280:|
|
||||
work:|Type#Work:|Name#直播:|MoneyBase#30:|MoneyLevel#1.5:|Graph#worktwo:|StrengthFood#4.5:|StrengthDrink#7.5:|Feeling#2.5:|Time#180:|FinishBonus#0.25:|LevelLimit#20:|BorderBrush#000000:|Background#413d39:|ButtonBackground#322e2b:|ButtonForeground#FFFFFF:|Foreground#ccbdad:|Left#113:|Top#315:|Width#280:|
|
||||
work:|Type#Study:|Name#学习:|MoneyBase#16:|MoneyLevel#2:|Graph#study:|StrengthFood#1.5:|StrengthDrink#2:|Feeling#3:|Time#45:|FinishBonus#0.2:|BorderBrush#000000:|Background#413d39:|ButtonBackground#322e2b:|ButtonForeground#FFFFFF:|Foreground#ccbdad:|Left#113:|Top#315:|Width#280:|
|
||||
work:|Type#Study:|Name#研究:|MoneyBase#30:|MoneyLevel#3:|Graph#studytwo:|StrengthFood#2.5:|StrengthDrink#3.5:|Feeling#4.5:|Time#75:|FinishBonus#0.4:|BorderBrush#000000:|Background#413d39:|ButtonBackground#322e2b:|LevelLimit#15:|ButtonForeground#FFFFFF:|Foreground#ccbdad:|Left#113:|Top#315:|Width#280:|
|
||||
work:|Type#Play:|Name#玩游戏:|MoneyBase#10:|MoneyLevel#2:|Graph#playone:|StrengthFood#1.5:|StrengthDrink#1.5:|Feeling#4:|Time#30:|FinishBonus#0.2:|BorderBrush#000000:|Background#413d39:|ButtonBackground#322e2b:|ButtonForeground#FFFFFF:|Foreground#ccbdad:|Left#113:|Top#315:|Width#280:|
|
||||
|
Before Width: | Height: | Size: 141 KiB After Width: | Height: | Size: 141 KiB |
Before Width: | Height: | Size: 148 KiB After Width: | Height: | Size: 149 KiB |
Before Width: | Height: | Size: 166 KiB After Width: | Height: | Size: 166 KiB |
Before Width: | Height: | Size: 168 KiB After Width: | Height: | Size: 169 KiB |
Before Width: | Height: | Size: 166 KiB After Width: | Height: | Size: 166 KiB |
Before Width: | Height: | Size: 141 KiB After Width: | Height: | Size: 141 KiB |
Before Width: | Height: | Size: 157 KiB After Width: | Height: | Size: 157 KiB |
Before Width: | Height: | Size: 165 KiB After Width: | Height: | Size: 165 KiB |
Before Width: | Height: | Size: 170 KiB After Width: | Height: | Size: 170 KiB |
Before Width: | Height: | Size: 166 KiB After Width: | Height: | Size: 166 KiB |
After Width: | Height: | Size: 248 KiB |
After Width: | Height: | Size: 255 KiB |
After Width: | Height: | Size: 238 KiB |
After Width: | Height: | Size: 252 KiB |
After Width: | Height: | Size: 255 KiB |
After Width: | Height: | Size: 238 KiB |
After Width: | Height: | Size: 236 KiB |
After Width: | Height: | Size: 239 KiB |
After Width: | Height: | Size: 239 KiB |
After Width: | Height: | Size: 238 KiB |
After Width: | Height: | Size: 235 KiB |
After Width: | Height: | Size: 239 KiB |
After Width: | Height: | Size: 239 KiB |
After Width: | Height: | Size: 238 KiB |
After Width: | Height: | Size: 235 KiB |
After Width: | Height: | Size: 239 KiB |
After Width: | Height: | Size: 238 KiB |
After Width: | Height: | Size: 238 KiB |
After Width: | Height: | Size: 235 KiB |
After Width: | Height: | Size: 239 KiB |
After Width: | Height: | Size: 238 KiB |
After Width: | Height: | Size: 242 KiB |
After Width: | Height: | Size: 239 KiB |
After Width: | Height: | Size: 242 KiB |
After Width: | Height: | Size: 245 KiB |
After Width: | Height: | Size: 235 KiB |
After Width: | Height: | Size: 239 KiB |
After Width: | Height: | Size: 235 KiB |
After Width: | Height: | Size: 239 KiB |
After Width: | Height: | Size: 242 KiB |
After Width: | Height: | Size: 245 KiB |
After Width: | Height: | Size: 242 KiB |
After Width: | Height: | Size: 245 KiB |
After Width: | Height: | Size: 242 KiB |
After Width: | Height: | Size: 245 KiB |
After Width: | Height: | Size: 242 KiB |
After Width: | Height: | Size: 245 KiB |
After Width: | Height: | Size: 237 KiB |
After Width: | Height: | Size: 234 KiB |
After Width: | Height: | Size: 238 KiB |
After Width: | Height: | Size: 237 KiB |
After Width: | Height: | Size: 244 KiB |
After Width: | Height: | Size: 242 KiB |
After Width: | Height: | Size: 245 KiB |
After Width: | Height: | Size: 245 KiB |
After Width: | Height: | Size: 224 KiB |
After Width: | Height: | Size: 232 KiB |
After Width: | Height: | Size: 232 KiB |
After Width: | Height: | Size: 224 KiB |
After Width: | Height: | Size: 232 KiB |
After Width: | Height: | Size: 232 KiB |
After Width: | Height: | Size: 228 KiB |
After Width: | Height: | Size: 232 KiB |
After Width: | Height: | Size: 232 KiB |
After Width: | Height: | Size: 228 KiB |
After Width: | Height: | Size: 232 KiB |
After Width: | Height: | Size: 232 KiB |
After Width: | Height: | Size: 218 KiB |
After Width: | Height: | Size: 196 KiB |
After Width: | Height: | Size: 189 KiB |
After Width: | Height: | Size: 188 KiB |
After Width: | Height: | Size: 206 KiB |
After Width: | Height: | Size: 188 KiB |
After Width: | Height: | Size: 206 KiB |
After Width: | Height: | Size: 229 KiB |
After Width: | Height: | Size: 253 KiB |
After Width: | Height: | Size: 255 KiB |
After Width: | Height: | Size: 238 KiB |
After Width: | Height: | Size: 252 KiB |
After Width: | Height: | Size: 255 KiB |
After Width: | Height: | Size: 237 KiB |
After Width: | Height: | Size: 242 KiB |
After Width: | Height: | Size: 245 KiB |
After Width: | Height: | Size: 245 KiB |
After Width: | Height: | Size: 242 KiB |
After Width: | Height: | Size: 245 KiB |
After Width: | Height: | Size: 244 KiB |
After Width: | Height: | Size: 234 KiB |
After Width: | Height: | Size: 244 KiB |
After Width: | Height: | Size: 243 KiB |
After Width: | Height: | Size: 244 KiB |
After Width: | Height: | Size: 241 KiB |
After Width: | Height: | Size: 244 KiB |
After Width: | Height: | Size: 243 KiB |
After Width: | Height: | Size: 243 KiB |
After Width: | Height: | Size: 236 KiB |
After Width: | Height: | Size: 243 KiB |
After Width: | Height: | Size: 244 KiB |