mirror of
https://github.com/LorisYounger/VPet.ModMaker.git
synced 2024-08-30 18:22:21 +00:00
更新
This commit is contained in:
parent
e7fcbb0050
commit
0122ba8f5e
@ -130,7 +130,7 @@ public class FoodModel : I18nModel<I18nFoodModel>
|
||||
Likability.Value = model.Likability.Value;
|
||||
Price.Value = model.Price.Value;
|
||||
Exp.Value = model.Exp.Value;
|
||||
Image.Value = model.Image.Value;
|
||||
Image.Value = model.Image.Value.Copy();
|
||||
foreach (var item in model.I18nDatas)
|
||||
I18nDatas[item.Key] = item.Value.Copy();
|
||||
CurrentI18nData.Value = I18nDatas[I18nHelper.Current.CultureName.Value];
|
||||
|
@ -170,6 +170,8 @@ public class ModInfoModel : I18nModel<I18nModInfoModel>
|
||||
/// <param name="path">路径</param>
|
||||
static void LoadAnime(PetModel petModel, string path)
|
||||
{
|
||||
if (Directory.Exists(path) is false)
|
||||
return;
|
||||
foreach (var animeDir in Directory.EnumerateDirectories(path))
|
||||
{
|
||||
var dirName = Path.GetFileName(animeDir);
|
||||
|
@ -119,9 +119,12 @@ public class ModMakerWindowVM
|
||||
lps.Add(
|
||||
new Line(nameof(history))
|
||||
{
|
||||
new Sub("PetName", history.Id),
|
||||
new Sub("SourcePath", history.SourcePath),
|
||||
new Sub("LastTime", history.LastTime.ToString("yyyy/MM/dd HH:mm"))
|
||||
new Sub(nameof(ModMakeHistory.Id), history.Id),
|
||||
new Sub(nameof(ModMakeHistory.SourcePath), history.SourcePath),
|
||||
new Sub(
|
||||
nameof(ModMakeHistory.LastTime),
|
||||
history.LastTime.ToString("yyyy/MM/dd HH:mm")
|
||||
)
|
||||
}
|
||||
);
|
||||
}
|
||||
|
@ -14,10 +14,10 @@
|
||||
d:DataContext="{d:DesignInstance Type=vm:ModEditWindowVM}"
|
||||
WindowStartupLocation="CenterScreen"
|
||||
mc:Ignorable="d">
|
||||
<Window.Resources>
|
||||
<ResourceDictionary Source="/VPet-Simulator.Windows.Interface;component/ResourceStyle.xaml" />
|
||||
</Window.Resources>
|
||||
<Grid>
|
||||
<Window.Resources>
|
||||
<ResourceDictionary Source="/VPet-Simulator.Windows.Interface;component/ResourceStyle.xaml" />
|
||||
</Window.Resources>
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
@ -64,7 +64,7 @@
|
||||
Command="{Binding ChangeImageCommand}"
|
||||
Content="{ll:Str 添加图片}">
|
||||
<Button.Style>
|
||||
<Style BasedOn="{StaticResource {x:Type Button}}" TargetType="Button">
|
||||
<Style BasedOn="{StaticResource ThemedButtonStyle}" TargetType="Button">
|
||||
<Setter Property="Visibility" Value="Hidden" />
|
||||
<Style.Triggers>
|
||||
<DataTrigger Binding="{Binding ModInfo.Value.Image.Value}" Value="{x:Null}">
|
||||
@ -271,7 +271,10 @@
|
||||
<RowDefinition />
|
||||
<RowDefinition Height="Auto" />
|
||||
</Grid.RowDefinitions>
|
||||
<Button Command="{Binding AddCultureCommand}" Content="{ll:Str 添加文化}" />
|
||||
<Button
|
||||
Command="{Binding AddCultureCommand}"
|
||||
Content="{ll:Str 添加文化}"
|
||||
Style="{DynamicResource ThemedButtonStyle}" />
|
||||
<ListBox
|
||||
x:Name="ListBox_Cultures"
|
||||
Grid.Row="1"
|
||||
@ -304,11 +307,13 @@
|
||||
<Button
|
||||
x:Name="Button_Save"
|
||||
Command="{Binding SaveCommand}"
|
||||
Content="{ll:Str 保存}" />
|
||||
Content="{ll:Str 保存}"
|
||||
Style="{DynamicResource ThemedButtonStyle}" />
|
||||
<Button
|
||||
x:Name="Button_SaveTo"
|
||||
Command="{Binding SaveToCommand}"
|
||||
Content="{ll:Str 保存至}" />
|
||||
Content="{ll:Str 保存至}"
|
||||
Style="{DynamicResource ThemedButtonStyle}" />
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
</Grid>
|
||||
|
Loading…
Reference in New Issue
Block a user