Skip to content

Commit

Permalink
start game button
Browse files Browse the repository at this point in the history
  • Loading branch information
Scighost committed Dec 19, 2024
1 parent aa7776b commit e0d1c40
Show file tree
Hide file tree
Showing 14 changed files with 1,277 additions and 38 deletions.
27 changes: 27 additions & 0 deletions src/Starward.Language/Lang.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions src/Starward.Language/Lang.resx
Original file line number Diff line number Diff line change
Expand Up @@ -1609,4 +1609,13 @@ Do you accept the risk and continue to use it?</value>
<data name="InterKnotMonthlyReportPage_OtherRewards" xml:space="preserve">
<value>Other Rewards</value>
</data>
<data name="StartGameButton_ResumeDownload" xml:space="preserve">
<value>Resume Download</value>
</data>
<data name="StartGameButton_Waiting" xml:space="preserve">
<value>Waiting</value>
</data>
<data name="GameLauncherPage_Relocate" xml:space="preserve">
<value>Relocate</value>
</data>
</root>
45 changes: 27 additions & 18 deletions src/Starward.Language/Lang.zh-CN.resx
Original file line number Diff line number Diff line change
Expand Up @@ -59,46 +59,46 @@
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" id="root">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace"/>
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0"/>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string"/>
<xsd:attribute name="type" type="xsd:string"/>
<xsd:attribute name="mimetype" type="xsd:string"/>
<xsd:attribute ref="xml:space"/>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string"/>
<xsd:attribute name="name" type="xsd:string"/>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1"/>
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2"/>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1"/>
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3"/>
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4"/>
<xsd:attribute ref="xml:space"/>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1"/>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required"/>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
Expand Down Expand Up @@ -1580,7 +1580,7 @@
<value>辉彩祝福</value>
</data>
<data name="GameLauncherPage_RemovableStorageDeviceNotConnected" xml:space="preserve">
<value>可移动存储设备未连接</value>
<value>可移动存储设备未连接</value>
</data>
<data name="InterKnotMonthlyReportPage_PolychromeRevenueStreams" xml:space="preserve">
<value>菲林收入组成</value>
Expand Down Expand Up @@ -1609,4 +1609,13 @@
<data name="InterKnotMonthlyReportPage_OtherRewards" xml:space="preserve">
<value>其他奖励</value>
</data>
<data name="StartGameButton_ResumeDownload" xml:space="preserve">
<value>继续下载</value>
</data>
<data name="StartGameButton_Waiting" xml:space="preserve">
<value>等待中</value>
</data>
<data name="GameLauncherPage_Relocate" xml:space="preserve">
<value>重新定位</value>
</data>
</root>
34 changes: 17 additions & 17 deletions src/Starward.Language/Lang.zh-TW.resx
Original file line number Diff line number Diff line change
Expand Up @@ -60,45 +60,45 @@
: and then encoded with base64 encoding.
-->
<xsd:schema xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" id="root">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace"/>
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0"/>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string"/>
<xsd:attribute name="type" type="xsd:string"/>
<xsd:attribute name="mimetype" type="xsd:string"/>
<xsd:attribute ref="xml:space"/>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string"/>
<xsd:attribute name="name" type="xsd:string"/>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1"/>
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2"/>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1"/>
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3"/>
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4"/>
<xsd:attribute ref="xml:space"/>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1"/>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required"/>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
Expand Down Expand Up @@ -1580,7 +1580,7 @@
<value>輝彩祝福</value>
</data>
<data name="GameLauncherPage_RemovableStorageDeviceNotConnected" xml:space="preserve">
<value>可移動存儲設備未連接</value>
<value>可移動存儲設備未連接</value>
</data>
<data name="InterKnotMonthlyReportPage_PolychromeRevenueStreams" xml:space="preserve">
<value>Polychrome Revenue Streams</value>
Expand Down
13 changes: 13 additions & 0 deletions src/Starward/Features/Background/AppBackground.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,19 @@
</Rectangle.Fill>
</Rectangle>

<Rectangle Width="400"
Height="400"
HorizontalAlignment="Right"
VerticalAlignment="Bottom"
IsHitTestVisible="False">
<Rectangle.Fill>
<LinearGradientBrush StartPoint="0,0" EndPoint="1,1">
<GradientStop Offset="0.5" Color="#00000000" />
<GradientStop Offset="1" Color="#60000000" />
</LinearGradientBrush>
</Rectangle.Fill>
</Rectangle>


<Rectangle Width="100"
HorizontalAlignment="Right"
Expand Down
52 changes: 52 additions & 0 deletions src/Starward/Features/GameLauncher/GameLauncherPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<sf:PageBase x:Class="Starward.Features.GameLauncher.GameLauncherPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:cu="using:CommunityToolkit.WinUI"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:lang="using:Starward.Language"
xmlns:local="using:Starward.Features.GameLauncher"
Expand All @@ -19,6 +20,57 @@
CurrentGameId="{x:Bind CurrentGameId}" />



<Grid Margin="0,0,40,0"
HorizontalAlignment="Right"
VerticalAlignment="Bottom">
<Grid.Resources>
<cu:AttachedDropShadow x:Key="TextShadow"
CastTo="{x:Bind Border_TextShadowTarget}"
Offset="2" />
</Grid.Resources>
<Grid.RowDefinitions>
<RowDefinition Height="44" />
<RowDefinition Height="40" />
</Grid.RowDefinitions>

<local:StartGameButton HorizontalAlignment="Right"
CanExecute="{x:Bind StartGameButtonCanExecute}"
Command="{x:Bind ClickStartGameButtonCommand}"
State="{x:Bind GameState}" />

<Border x:Name="Border_TextShadowTarget" Grid.Row="1" />

<!-- 可移动存储设备未连接 -->
<TextBlock Grid.Row="1"
HorizontalAlignment="Center"
VerticalAlignment="Center"
cu:Effects.Shadow="{StaticResource TextShadow}"
FontSize="12"
Visibility="{x:Bind IsInstallPathRemovableTipEnabled}">
<Run Foreground="{ThemeResource TextFillColorSecondaryBrush}" Text="{x:Bind lang:Lang.GameLauncherPage_RemovableStorageDeviceNotConnected}" />
<Hyperlink UnderlineStyle="None">
<Run Foreground="{ThemeResource AccentTextFillColorPrimaryBrush}" Text="{x:Bind lang:Lang.GameLauncherPage_Relocate}" />
</Hyperlink>
</TextBlock>

<!-- 定位游戏 -->
<TextBlock Grid.Row="1"
HorizontalAlignment="Center"
VerticalAlignment="Center"
cu:Effects.Shadow="{StaticResource TextShadow}"
FontSize="12"
Visibility="{x:Bind InstalledLocateGameEnabled}">
<Run Foreground="{ThemeResource TextFillColorSecondaryBrush}" Text="{x:Bind lang:Lang.InstallGameDialog_Installed}" />
<Hyperlink UnderlineStyle="None">
<Run Foreground="{ThemeResource AccentTextFillColorPrimaryBrush}" Text="{x:Bind lang:Lang.InstallGameDialog_LocateGame}" />
</Hyperlink>
</TextBlock>

</Grid>



</Grid>


Expand Down
Loading

0 comments on commit e0d1c40

Please sign in to comment.