2024-08-31 10:32:38 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8" ?>
|
2024-08-26 09:41:33 +00:00
|
|
|
<UserControl
|
|
|
|
x:Class="RustTools.Themes.PostRwmod"
|
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
2024-08-31 10:32:38 +00:00
|
|
|
xmlns:local="using:RustTools.Themes"
|
2024-08-26 09:41:33 +00:00
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
2024-08-31 10:32:38 +00:00
|
|
|
xmlns:ui="using:CommunityToolkit.WinUI"
|
2024-08-26 09:41:33 +00:00
|
|
|
mc:Ignorable="d">
|
|
|
|
|
2024-08-31 10:32:38 +00:00
|
|
|
<ScrollView Padding="0,0,9,0">
|
|
|
|
|
|
|
|
<Grid>
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<ColumnDefinition Width="*" />
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<StackPanel
|
|
|
|
Grid.Row="0"
|
|
|
|
Padding="9"
|
|
|
|
Background="{StaticResource SystemFillColorSolidAttentionBackgroundBrush}"
|
|
|
|
CornerRadius="9">
|
|
|
|
<TextBlock Text="必填" />
|
|
|
|
<StackPanel>
|
|
|
|
<TextBox
|
|
|
|
Name="TextBoxID"
|
|
|
|
ui:TextBoxExtensions.Regex="^\s*\+?\s*([0-9][\s-]*){9,}$"
|
|
|
|
Header="输入模组的唯一ID" />
|
|
|
|
<TextBlock Foreground="{ThemeResource TextFillColorSecondaryBrush}">
|
|
|
|
<Run Text="只支持英文和数字包括下划线: " />
|
|
|
|
<Run FontWeight="SemiBold" Text="{Binding (ui:TextBoxExtensions.IsValid), ElementName=TextBoxID}" />
|
|
|
|
</TextBlock>
|
|
|
|
</StackPanel>
|
2024-08-26 09:41:33 +00:00
|
|
|
|
2024-08-31 10:32:38 +00:00
|
|
|
<StackPanel>
|
|
|
|
<TextBox Name="TextBoxName" Header="输入模组的名称" />
|
|
|
|
</StackPanel>
|
|
|
|
<StackPanel>
|
|
|
|
<TextBox
|
|
|
|
Name="TextBoxInfo"
|
|
|
|
AcceptsReturn="True"
|
|
|
|
Header="模组的描述"
|
|
|
|
IsSpellCheckEnabled="True"
|
|
|
|
SelectionHighlightColor="Green"
|
|
|
|
TextWrapping="Wrap" />
|
|
|
|
</StackPanel>
|
|
|
|
<StackPanel>
|
|
|
|
<TextBox Name="TextBoxVersion" Header="版本号(0.0.0)" />
|
|
|
|
</StackPanel>
|
|
|
|
<StackPanel>
|
|
|
|
<TextBox Name="TextBoxYouxiVersion" Header="最低支持的游戏版本" />
|
|
|
|
<TextBlock Foreground="{ThemeResource TextFillColorSecondaryBrush}">
|
|
|
|
<Run Text="可留空" />
|
|
|
|
</TextBlock>
|
|
|
|
</StackPanel>
|
|
|
|
<StackPanel>
|
|
|
|
<TextBox Name="TextBoxTab" Header="标签" />
|
|
|
|
<TextBlock Foreground="{ThemeResource TextFillColorSecondaryBrush}">
|
|
|
|
<Run Text="请用,分开" />
|
|
|
|
</TextBlock>
|
|
|
|
</StackPanel>
|
|
|
|
</StackPanel>
|
|
|
|
<StackPanel
|
|
|
|
Grid.Row="1"
|
|
|
|
Margin="0,9,0,0"
|
|
|
|
Padding="9"
|
|
|
|
Background="{StaticResource SystemFillColorSolidAttentionBackgroundBrush}"
|
|
|
|
CornerRadius="9">
|
|
|
|
<TextBlock Text="可选" />
|
|
|
|
<StackPanel Orientation="Horizontal">
|
|
|
|
<TextBlock VerticalAlignment="Center" Text="模组图标" />
|
|
|
|
<Border
|
|
|
|
Width="56"
|
|
|
|
Height="56"
|
|
|
|
Margin="16,0,0,0"
|
|
|
|
Background="{ThemeResource SystemFillColorSolidAttentionBackgroundBrush}"
|
|
|
|
CornerRadius="13">
|
|
|
|
<Image Source="/Assets/tool.png" />
|
|
|
|
</Border>
|
|
|
|
</StackPanel>
|
|
|
|
<StackPanel Margin="0,6,0,0" Orientation="Vertical">
|
|
|
|
<TextBlock VerticalAlignment="Center" Text="截图列表" />
|
|
|
|
<FlipView Height="270" MaxWidth="400">
|
|
|
|
<Image Source="/Assets/tool.png" />
|
|
|
|
<Button
|
|
|
|
Width="56"
|
|
|
|
Height="56"
|
|
|
|
Margin="16,0,0,0"
|
|
|
|
HorizontalAlignment="Center"
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
Background="{ThemeResource SystemFillColorSolidAttentionBackgroundBrush}"
|
|
|
|
CornerRadius="13">
|
|
|
|
<FontIcon Glyph="" />
|
|
|
|
</Button>
|
|
|
|
</FlipView>
|
|
|
|
</StackPanel>
|
|
|
|
</StackPanel>
|
|
|
|
<StackPanel
|
|
|
|
Grid.Row="2"
|
|
|
|
Margin="0,9,0,0"
|
|
|
|
Padding="9"
|
|
|
|
Background="{StaticResource SystemFillColorSolidAttentionBackgroundBrush}"
|
|
|
|
CornerRadius="9">
|
|
|
|
<TextBlock Text="模组" />
|
|
|
|
<StackPanel Orientation="Horizontal">
|
|
|
|
<TextBlock Text="模组文件" Visibility="Collapsed" />
|
|
|
|
<Button Margin="6" Content="打包" />
|
|
|
|
</StackPanel>
|
|
|
|
</StackPanel>
|
|
|
|
<StackPanel
|
|
|
|
Grid.Row="3"
|
|
|
|
Margin="0,9,0,0"
|
|
|
|
Padding="9"
|
|
|
|
Background="{StaticResource SystemFillColorSolidAttentionBackgroundBrush}"
|
|
|
|
CornerRadius="9">
|
|
|
|
<TextBlock Text="动态" />
|
|
|
|
<CheckBox
|
|
|
|
Margin="6"
|
|
|
|
Content="同时进行动态发布"
|
|
|
|
IsChecked="True" />
|
|
|
|
</StackPanel>
|
|
|
|
<StackPanel Grid.Row="4" Margin="0,13,0,0">
|
|
|
|
<CommandBar
|
|
|
|
Background="Transparent"
|
|
|
|
DefaultLabelPosition="Right"
|
|
|
|
IsOpen="False"
|
|
|
|
OverflowButtonVisibility="Collapsed">
|
|
|
|
<AppBarButton
|
|
|
|
Margin="0,0,21,0"
|
|
|
|
HorizontalAlignment="Right"
|
|
|
|
Click="AppBarButton_Click"
|
|
|
|
Icon="Clear"
|
|
|
|
Label="取消"
|
|
|
|
Tag="取消" />
|
|
|
|
<AppBarButton
|
|
|
|
HorizontalAlignment="Right"
|
|
|
|
Background="{StaticResource SystemFillColorAttentionBrush}"
|
|
|
|
Click="AppBarButton_Click"
|
|
|
|
Icon="Send"
|
|
|
|
Label="提交"
|
|
|
|
Tag="提交" />
|
|
|
|
</CommandBar>
|
|
|
|
</StackPanel>
|
|
|
|
</Grid>
|
|
|
|
</ScrollView>
|
2024-08-26 09:41:33 +00:00
|
|
|
</UserControl>
|