mirror of
https://github.com/Blinue/Magpie.git
synced 2026-06-24 02:04:10 +00:00
完成关于页面
This commit is contained in:
parent
c122ab37e6
commit
ba1ca2b29f
7 changed files with 228 additions and 20 deletions
|
|
@ -5,7 +5,7 @@
|
|||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:local="clr-namespace:Magpie"
|
||||
mc:Ignorable="d"
|
||||
d:DesignHeight="200" d:DesignWidth="400"
|
||||
d:DesignHeight="300" d:DesignWidth="400"
|
||||
Title="AboutOptionsPage">
|
||||
<Page.Resources>
|
||||
<ResourceDictionary>
|
||||
|
|
@ -14,13 +14,99 @@
|
|||
</ResourceDictionary.MergedDictionaries>
|
||||
</ResourceDictionary>
|
||||
</Page.Resources>
|
||||
|
||||
<StackPanel>
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<Image Height="50" Source="{StaticResource Logo}" HorizontalAlignment="Left" VerticalAlignment="Top"/>
|
||||
<Label Content="MAGPIE" Margin="5,0,0,0" VerticalAlignment="Center" FontSize="20"/>
|
||||
</StackPanel>
|
||||
|
||||
<StackPanel Margin="0">
|
||||
<Grid>
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<Image Height="28" Source="{StaticResource Logo}" HorizontalAlignment="Left" VerticalAlignment="Top"/>
|
||||
<StackPanel Orientation="Horizontal" VerticalAlignment="Center">
|
||||
<Label Content="MAGPIE" Margin="5,0,0,-3" VerticalAlignment="Top" FontSize="20" Padding="0" HorizontalAlignment="Left"/>
|
||||
<Label Content="版本 0.6.0" Padding="0" Margin="10,0,0,0" VerticalAlignment="Bottom" FontSize="11" />
|
||||
</StackPanel>
|
||||
</StackPanel>
|
||||
<Button Content="开源许可" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" HorizontalAlignment="Right" VerticalAlignment="Center" />
|
||||
</Grid>
|
||||
|
||||
<Grid Margin="0,20,0,0">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
<ColumnDefinition />
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<Label Content="支持" Padding="0" FontWeight="Bold" />
|
||||
<Separator Margin="5,0,0,0" VerticalAlignment="Center" Grid.Column="1"/>
|
||||
</Grid>
|
||||
<Grid Margin="5,5,0,0">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto" />
|
||||
<ColumnDefinition />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition />
|
||||
<RowDefinition />
|
||||
<RowDefinition />
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<Label Content="项目地址" Padding="5" HorizontalAlignment="Left" VerticalAlignment="Center" />
|
||||
<TextBlock Grid.Column="1" Padding="5">
|
||||
<Hyperlink NavigateUri="https://github.com/Blinue/Magpie" RequestNavigate="Hyperlink_RequestNavigate">
|
||||
https://github.com/Blinue/Magpie
|
||||
</Hyperlink>
|
||||
</TextBlock>
|
||||
<Label Content="反馈" Grid.Row="1" Padding="5" Grid.RowSpan="2" HorizontalAlignment="Left" VerticalAlignment="Center" />
|
||||
<TextBlock Grid.Column="1" Grid.Row="1" Padding="5">
|
||||
<Hyperlink NavigateUri="https://github.com/Blinue/Magpie/issues" RequestNavigate="Hyperlink_RequestNavigate">
|
||||
https://github.com/Blinue/Magpie/issues
|
||||
</Hyperlink>
|
||||
</TextBlock>
|
||||
<TextBlock Grid.Column="1" Grid.Row="2" Padding="5,0">
|
||||
<Hyperlink NavigateUri="mailto:blinue@outlook.com" RequestNavigate="Hyperlink_RequestNavigate">
|
||||
mailto:blinue@outlook.com
|
||||
</Hyperlink>
|
||||
</TextBlock>
|
||||
</Grid>
|
||||
<!-- Margin为20会使分隔线模糊 -->
|
||||
<Grid Margin="0,19.8,0,0">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
<ColumnDefinition />
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<Label Content="鸣谢" Padding="0" FontWeight="Bold" />
|
||||
<Separator Margin="5,0,0,0" VerticalAlignment="Center" Grid.Column="1"/>
|
||||
</Grid>
|
||||
<Grid Margin="5,5,0,0">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto" />
|
||||
<ColumnDefinition />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition />
|
||||
<RowDefinition />
|
||||
<RowDefinition />
|
||||
<RowDefinition />
|
||||
<RowDefinition />
|
||||
</Grid.RowDefinitions>
|
||||
<Label Content="Visual Studio" Padding="5" />
|
||||
<TextBlock Grid.Column="1" Padding="5">
|
||||
<Hyperlink NavigateUri="https://visualstudio.microsoft.com/" RequestNavigate="Hyperlink_RequestNavigate">
|
||||
https://visualstudio.microsoft.com/
|
||||
</Hyperlink>
|
||||
</TextBlock>
|
||||
<Label Content="EasyHook" Padding="5" Grid.Row="1" />
|
||||
<TextBlock Grid.Column="1" Padding="5" Grid.Row="1">
|
||||
<Hyperlink NavigateUri="https://github.com/EasyHook/EasyHook" RequestNavigate="Hyperlink_RequestNavigate">
|
||||
https://github.com/EasyHook/EasyHook
|
||||
</Hyperlink>
|
||||
</TextBlock>
|
||||
<Label Content="C++/WinRT" Padding="5" Grid.Row="2" />
|
||||
<TextBlock Grid.Column="1" Padding="5" Grid.Row="2">
|
||||
<Hyperlink NavigateUri="https://github.com/microsoft/cppwinrt" RequestNavigate="Hyperlink_RequestNavigate">
|
||||
https://github.com/microsoft/cppwinrt
|
||||
</Hyperlink>
|
||||
</TextBlock>
|
||||
<TextBlock Text="Magpie移植的所有优秀着色器项目" Grid.Row="3" Grid.ColumnSpan="2" Padding="5" />
|
||||
<TextBlock Text="所有为Magpie提供给反馈与支持的人" Grid.Row="4" Grid.ColumnSpan="2" Padding="5" />
|
||||
</Grid>
|
||||
</StackPanel>
|
||||
</Page>
|
||||
|
|
|
|||
|
|
@ -1,17 +1,7 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
using System.Diagnostics;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Navigation;
|
||||
using System.Windows.Shapes;
|
||||
|
||||
|
||||
namespace Magpie {
|
||||
/// <summary>
|
||||
|
|
@ -21,5 +11,10 @@ namespace Magpie {
|
|||
public AboutOptionsPage() {
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void Hyperlink_RequestNavigate(object sender, RequestNavigateEventArgs e) {
|
||||
_ = Process.Start(new ProcessStartInfo(e.Uri.AbsoluteUri));
|
||||
e.Handled = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||
<Style TargetType="Button">
|
||||
<Setter Property="Padding" Value="5" />
|
||||
<Setter Property="Padding" Value="10,5" />
|
||||
</Style>
|
||||
</ResourceDictionary>
|
||||
|
|
@ -219,6 +219,7 @@
|
|||
<ClInclude Include="pch.h" />
|
||||
<ClInclude Include="Renderable.h" />
|
||||
<ClInclude Include="RenderManager.h" />
|
||||
<ClInclude Include="resource.h" />
|
||||
<ClInclude Include="targetver.h" />
|
||||
<ClInclude Include="Utils.h" />
|
||||
<ClInclude Include="WICBitmapEffectRenderer.h" />
|
||||
|
|
@ -254,6 +255,9 @@
|
|||
<Project>{95c6c401-ae29-4b29-b1a7-20782f0937d1}</Project>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ResourceCompile Include="version.rc" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
<ImportGroup Label="ExtensionTargets">
|
||||
<Import Project="..\packages\nlohmann.json.3.9.1\build\native\nlohmann.json.targets" Condition="Exists('..\packages\nlohmann.json.3.9.1\build\native\nlohmann.json.targets')" />
|
||||
|
|
|
|||
|
|
@ -90,6 +90,9 @@
|
|||
<ClInclude Include="MonochromeCursorTransform.h">
|
||||
<Filter>头文件\Effect</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="resource.h">
|
||||
<Filter>资源文件</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="cpp.hint" />
|
||||
|
|
@ -117,10 +120,18 @@
|
|||
<Filter Include="头文件\Render">
|
||||
<UniqueIdentifier>{45015676-99ea-4ea3-9c14-3bc0e0130a34}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="资源文件">
|
||||
<UniqueIdentifier>{f3740afe-3a7c-49d0-84ea-04d66feace50}</UniqueIdentifier>
|
||||
</Filter>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<FxCompile Include="MonochromeCursorShader.hlsl">
|
||||
<Filter>着色器</Filter>
|
||||
</FxCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ResourceCompile Include="version.rc">
|
||||
<Filter>资源文件</Filter>
|
||||
</ResourceCompile>
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
14
Runtime/resource.h
Normal file
14
Runtime/resource.h
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
//{{NO_DEPENDENCIES}}
|
||||
// Microsoft Visual C++ generated include file.
|
||||
// Used by version.rc
|
||||
|
||||
// 新对象的下一组默认值
|
||||
//
|
||||
#ifdef APSTUDIO_INVOKED
|
||||
#ifndef APSTUDIO_READONLY_SYMBOLS
|
||||
#define _APS_NEXT_RESOURCE_VALUE 101
|
||||
#define _APS_NEXT_COMMAND_VALUE 40001
|
||||
#define _APS_NEXT_CONTROL_VALUE 1001
|
||||
#define _APS_NEXT_SYMED_VALUE 101
|
||||
#endif
|
||||
#endif
|
||||
98
Runtime/version.rc
Normal file
98
Runtime/version.rc
Normal file
|
|
@ -0,0 +1,98 @@
|
|||
// Microsoft Visual C++ generated resource script.
|
||||
//
|
||||
#include "resource.h"
|
||||
|
||||
#define APSTUDIO_READONLY_SYMBOLS
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Generated from the TEXTINCLUDE 2 resource.
|
||||
//
|
||||
#include "winres.h"
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
#undef APSTUDIO_READONLY_SYMBOLS
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// 中文(简体,中国) resources
|
||||
|
||||
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_CHS)
|
||||
LANGUAGE LANG_CHINESE, SUBLANG_CHINESE_SIMPLIFIED
|
||||
#pragma code_page(936)
|
||||
|
||||
#ifdef APSTUDIO_INVOKED
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// TEXTINCLUDE
|
||||
//
|
||||
|
||||
1 TEXTINCLUDE
|
||||
BEGIN
|
||||
"resource.h\0"
|
||||
END
|
||||
|
||||
2 TEXTINCLUDE
|
||||
BEGIN
|
||||
"#include ""winres.h""\r\n"
|
||||
"\0"
|
||||
END
|
||||
|
||||
3 TEXTINCLUDE
|
||||
BEGIN
|
||||
"\r\n"
|
||||
"\0"
|
||||
END
|
||||
|
||||
#endif // APSTUDIO_INVOKED
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Version
|
||||
//
|
||||
|
||||
VS_VERSION_INFO VERSIONINFO
|
||||
FILEVERSION 1,0,0,1
|
||||
PRODUCTVERSION 1,0,0,1
|
||||
FILEFLAGSMASK 0x3fL
|
||||
#ifdef _DEBUG
|
||||
FILEFLAGS 0x1L
|
||||
#else
|
||||
FILEFLAGS 0x0L
|
||||
#endif
|
||||
FILEOS 0x40004L
|
||||
FILETYPE 0x2L
|
||||
FILESUBTYPE 0x0L
|
||||
BEGIN
|
||||
BLOCK "StringFileInfo"
|
||||
BEGIN
|
||||
BLOCK "080404b0"
|
||||
BEGIN
|
||||
VALUE "FileVersion", "1.0.0.1"
|
||||
VALUE "InternalName", "Runtime.dll"
|
||||
VALUE "LegalCopyright", "Copyright (C) 2021"
|
||||
VALUE "OriginalFilename", "Runtime.dll"
|
||||
VALUE "ProductName", "Magpie"
|
||||
VALUE "ProductVersion", "1.0.0.1"
|
||||
END
|
||||
END
|
||||
BLOCK "VarFileInfo"
|
||||
BEGIN
|
||||
VALUE "Translation", 0x804, 1200
|
||||
END
|
||||
END
|
||||
|
||||
#endif // 中文(简体,中国) resources
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
|
||||
#ifndef APSTUDIO_INVOKED
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Generated from the TEXTINCLUDE 3 resource.
|
||||
//
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
#endif // not APSTUDIO_INVOKED
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue