显示设置功能

This commit is contained in:
ZouJin 2022-12-28 18:24:38 +08:00
parent d67c591e00
commit 7639a4b55a
4 changed files with 12 additions and 3 deletions

View File

@ -12,7 +12,7 @@
VerticalAlignment="Bottom" Padding="10" Margin="5" CornerRadius="5"> VerticalAlignment="Bottom" Padding="10" Margin="5" CornerRadius="5">
<StackPanel> <StackPanel>
<Label Content="虚拟桌宠名字:" Foreground="{DynamicResource PrimaryText}" HorizontalAlignment="Left" Padding="0" <Label Content="虚拟桌宠名字:" Foreground="{DynamicResource PrimaryText}" HorizontalAlignment="Left" Padding="0"
FontWeight="Bold" Margin="0,0,0,6" FontSize="22" /> FontWeight="Bold" Margin="0,0,0,6" FontSize="22" Background="{x:Null}" />
<TextBlock Text="我说话长这样,这是我说的话巴拉巴拉巴拉巴拉巴拉巴拉巴拉巴拉巴拉巴拉巴拉巴拉巴拉巴拉" TextWrapping="WrapWithOverflow" FontSize="16" /> <TextBlock Text="我说话长这样,这是我说的话巴拉巴拉巴拉巴拉巴拉巴拉巴拉巴拉巴拉巴拉巴拉巴拉巴拉巴拉" TextWrapping="WrapWithOverflow" FontSize="16" />
</StackPanel> </StackPanel>
</Border> </Border>

View File

@ -70,7 +70,7 @@ namespace VPet_Simulator.Core
private void MenuSetting_Click(object sender, RoutedEventArgs e) private void MenuSetting_Click(object sender, RoutedEventArgs e)
{ {
m.Core.Controller.ShowSetting();
} }
} }
} }

View File

@ -47,6 +47,9 @@ namespace VPet_Simulator.Core
/// 缩放比例 /// 缩放比例
/// </summary> /// </summary>
double ZoomRatio { get; } double ZoomRatio { get; }
/// <summary>
/// 显示设置窗体
/// </summary>
void ShowSetting();
} }
} }

View File

@ -49,6 +49,12 @@ namespace VPet_Simulator.Windows
mw.Top += Y * ZoomRatio; mw.Top += Y * ZoomRatio;
}); });
} }
public void ShowSetting()
{//TODO
throw new NotImplementedException();
}
public double ZoomRatio => 0.5; public double ZoomRatio => 0.5;
} }
} }