Skip to content

Commit

Permalink
updatelauncher
Browse files Browse the repository at this point in the history
  • Loading branch information
jacques-tony committed Nov 6, 2023
1 parent 6f25592 commit 133b24e
Show file tree
Hide file tree
Showing 5 changed files with 129 additions and 137 deletions.
Binary file modified Assets/bg_hints.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Assets/launcher_ico.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Assets/logo_company.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified icon.ico
Binary file not shown.
266 changes: 129 additions & 137 deletions src/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,80 +19,79 @@
WindowStartupLocation="CenterScreen"
Title="Tibia Launcher"
Loaded="TibiaLauncher_Load">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>

<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="100"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="100"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>

<Grid.Resources>
<BitmapImage x:Key="BackGroundKey" UriSource="pack://application:,,,/Assets/background.png"/>
<BitmapImage x:Key="LogoKey" UriSource="pack://application:,,,/Assets/logo.png"/>
<BitmapImage x:Key="LogoCompanyKey" UriSource="pack://application:,,,/Assets/logo_company.png"/>
<BitmapImage x:Key="BGButtonUpdateKey" UriSource="pack://application:,,,/Assets/bg_button_update.png"/>
<BitmapImage x:Key="ButtonPlayKey" UriSource="pack://application:,,,/Assets/button_play.png"/>
<BitmapImage x:Key="IconPlayKey" UriSource="pack://application:,,,/Assets/icon_play.png"/>
<BitmapImage x:Key="BgHintsKey" UriSource="pack://application:,,,/Assets/bg_hints.png"/>
<BitmapImage x:Key="RhLoreKey" UriSource="pack://application:,,,/Assets/rh_lore.png"/>
</Grid.Resources>
<Grid.Background>
<ImageBrush ImageSource="{StaticResource BackGroundKey}" Stretch="UniformToFill" Opacity="100"></ImageBrush>
</Grid.Background>
<StackPanel
<Grid.Resources>
<BitmapImage x:Key="BackGroundKey" UriSource="pack://application:,,,/Assets/background.png"/>
<BitmapImage x:Key="LogoKey" UriSource="pack://application:,,,/Assets/logo.png"/>
<BitmapImage x:Key="LogoCompanyKey" UriSource="pack://application:,,,/Assets/logo_company.png"/>
<BitmapImage x:Key="BGButtonUpdateKey" UriSource="pack://application:,,,/Assets/bg_button_update.png"/>
<BitmapImage x:Key="ButtonPlayKey" UriSource="pack://application:,,,/Assets/button_play.png"/>
<BitmapImage x:Key="IconPlayKey" UriSource="pack://application:,,,/Assets/icon_play.png"/>
<BitmapImage x:Key="BgHintsKey" UriSource="pack://application:,,,/Assets/bg_hints.png"/>
<BitmapImage x:Key="RhLoreKey" UriSource="pack://application:,,,/Assets/rh_lore.png"/>
</Grid.Resources>
<Grid.Background>
<ImageBrush ImageSource="{StaticResource BackGroundKey}" Stretch="UniformToFill" Opacity="100"></ImageBrush>
</Grid.Background>
<StackPanel
Grid.Column="1"
HorizontalAlignment="Right"
VerticalAlignment="Top"
Margin="0"
Orientation="Horizontal"
FlowDirection="RightToLeft">
<Button
<Button
x:Name="CloseButton"
Style="{StaticResource WindowButtonStyle}"
Content="{StaticResource close_ico}"
Click="CloseButton_Click"
Tag="IsCloseButton"
Cursor="Hand"/>
<Button
<Button
x:Name="MinimizeButton"
Style="{StaticResource WindowButtonStyle}"
Content="{StaticResource minimize_ico}"
Click="MinimizeButton_Click"
Cursor="Hand"/>
</StackPanel>
Cursor="Hand" BorderThickness="1,1,1,1" VerticalAlignment="Top" HorizontalAlignment="Left"/>
</StackPanel>

<StackPanel
<StackPanel
Grid.Row="0"
VerticalAlignment="Bottom"
HorizontalAlignment="Center"
Margin="0, 15">
<Image
<Image
x:Name="ImageLogoServer"
Height="150"
Source="{StaticResource LogoKey}"
Stretch="Uniform"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Visibility="Visible">
</Image>
</StackPanel>
<StackPanel
Grid.Row="1"
Width="132"
Height="85"
</Image>
</StackPanel>
<StackPanel
Width="227"
Height="86"
VerticalAlignment="Top"
HorizontalAlignment="Center">
<StackPanel.Background>
<ImageBrush ImageSource="{StaticResource BGButtonUpdateKey}" Stretch="Fill"></ImageBrush>
</StackPanel.Background>
<StackPanel>
<Button
HorizontalAlignment="Center" Margin="0,156,0,0" Grid.RowSpan="2">
<StackPanel.Background>
<ImageBrush ImageSource="{StaticResource BGButtonUpdateKey}" Stretch="Fill"></ImageBrush>
</StackPanel.Background>
<StackPanel>
<Button
x:Name="buttonPlay"
Width="100"
Width="172"
Height="42"
Margin="0, 8, 0, 0"
BorderThickness="0"
Expand All @@ -103,62 +102,62 @@
MouseLeave="buttonPlay_MouseLeave"
MouseEnter="buttonPlay_MouseEnter">

<Button.Background>
<ImageBrush ImageSource="{StaticResource ButtonPlayKey}"></ImageBrush>
</Button.Background>
<Button.Background>
<ImageBrush ImageSource="{StaticResource ButtonPlayKey}"></ImageBrush>
</Button.Background>

<Button.ToolTip>
<ToolTip>
<TextBlock
<Button.ToolTip>
<ToolTip>
<TextBlock
x:Name="buttonPlay_tooltip"
Foreground="#404348"
FontWeight="Bold"
Text="Play Game">
</TextBlock>
</ToolTip>
</Button.ToolTip>
</TextBlock>
</ToolTip>
</Button.ToolTip>

<Button.Content>
<Image
<Button.Content>
<Image
x:Name="buttonPlayIcon"
Source="{StaticResource IconPlayKey}"
Stretch="Uniform"
Height="32"></Image>
</Button.Content>
<Button.Style>
<Style TargetType="{x:Type Button}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Button}">
<Border Background="{TemplateBinding Background}">
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True"></Trigger>
</Style.Triggers>
</Style>
</Button.Style>
</Button>
<ProgressBar
</Button.Content>
<Button.Style>
<Style TargetType="{x:Type Button}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Button}">
<Border Background="{TemplateBinding Background}">
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True"></Trigger>
</Style.Triggers>
</Style>
</Button.Style>
</Button>
<ProgressBar
x:Name="progressbarDownload"
Width="100"
Height="40"
Margin="0, 25, 0, 0"
Value="100"
Visibility="Collapsed">
<ProgressBar.Foreground>
<LinearGradientBrush
<ProgressBar.Foreground>
<LinearGradientBrush
StartPoint="0.5, 1.5"
EndPoint="0.5, 0">
<GradientStop Color="#dd9323" Offset="0.4" />
<GradientStop Color="#6b4711" Offset="0.8" />
</LinearGradientBrush>
</ProgressBar.Foreground>
</ProgressBar>
<Label
<GradientStop Color="#dd9323" Offset="0.4" />
<GradientStop Color="#6b4711" Offset="0.8" />
</LinearGradientBrush>
</ProgressBar.Foreground>
</ProgressBar>
<Label
x:Name="labelClientVersion"
FontFamily="Verdana"
FontSize="13"
Expand All @@ -167,7 +166,7 @@
HorizontalAlignment="Center"
Margin="0, 2, 0, 0"
Visibility="Visible">Client Version</Label>
<Label
<Label
x:Name="labelDownloadPercent"
FontFamily="Verdana"
FontSize="10"
Expand All @@ -176,80 +175,73 @@
HorizontalAlignment="Center"
Margin="0, 2, 0, 0"
Visibility="Collapsed">Download</Label>
</StackPanel>
</StackPanel>
<StackPanel
</StackPanel>
</StackPanel>
<StackPanel
Grid.Row="2"
Width="550"
Height="86"
VerticalAlignment="Top"
HorizontalAlignment="Center">
<StackPanel.Background>
<ImageBrush ImageSource="{StaticResource BgHintsKey}" Stretch="Uniform" AlignmentY="Top" AlignmentX="Center"></ImageBrush>
</StackPanel.Background>
HorizontalAlignment="Center" Margin="0,-15,0,0">
<StackPanel.Background>
<ImageBrush ImageSource="{StaticResource BgHintsKey}" Stretch="Uniform" AlignmentY="Top" AlignmentX="Center"></ImageBrush>
</StackPanel.Background>

<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>

<Grid.RowDefinitions>
<RowDefinition Height="18"/>
<RowDefinition Height="65"/>
</Grid.RowDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="18"/>
<RowDefinition Height="65"/>
</Grid.RowDefinitions>

<TextBlock
<TextBlock
Grid.Row="0"
VerticalAlignment="Center"
HorizontalAlignment="Center"
FontFamily="Verdana"
FontSize="12"
FontWeight="Bold"
Foreground="#909090">Genesis</TextBlock>
<Grid
FontSize="16"
Foreground="#c65232" IsEnabled="False" FontWeight="Bold">Welcome to Closed Beta!</TextBlock>
<Grid
Grid.Row="1"
Margin="10, 3, 10, 3">

<Grid.ColumnDefinitions>
<ColumnDefinition Width="65"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="0"/>
<ColumnDefinition Width="0*"/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>

<Image
Grid.Column="0"
Source="{StaticResource RhLoreKey}"
Width="60"
Stretch="Uniform"></Image>
<TextBlock
Grid.Column="1"
<TextBlock
Grid.Column="2"
x:Name="hintsBox"
Margin="5, 0, 0, 0"
Foreground="#bfbfbf"
FontFamily="Verdana"
FontSize="12">A new goddess stepped out of the void like a new-born mermaid from<LineBreak/> her shell.
The amazed elder gods watched her divine beauty in awed<LineBreak/> admiration,
for everything in her was perfect harmony. They agreed<LineBreak/> to call her Tibiasula.</TextBlock>
</Grid>
FontSize="12" Width="437" TextAlignment="Center" VerticalAlignment="Center" HorizontalAlignment="Center" TextWrapping="WrapWithOverflow">It is with great enthusiasm that we invite you to be one of the first to explore this world of adventures and challenges.<LineBreak/>
Be part of creating this new chapter in the Phoenix OT story.</TextBlock>
</Grid>

</Grid>
</StackPanel>

</Grid>
</StackPanel>

<StackPanel
<StackPanel
Grid.Row="2"
VerticalAlignment="Bottom">
<Grid>

<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Grid>

<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>

<Grid.RowDefinitions>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>

<Grid.RowDefinitions>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>

<TextBlock
<TextBlock
Grid.Column="0"
x:Name="labelVersion"
HorizontalAlignment="Left"
Expand All @@ -259,7 +251,7 @@
FontWeight="Bold"
Foreground="#747474"
Margin="10">Version</TextBlock>
<Image
<Image
x:Name="ImageLogoCompany"
Grid.Column="1"
Source="{StaticResource LogoCompanyKey}"
Expand All @@ -268,7 +260,7 @@
VerticalAlignment="Top"
HorizontalAlignment="Center"
Margin="0, 0, 0, 20"/>
</Grid>
</StackPanel>
</Grid>
</Grid>
</StackPanel>
</Grid>
</Window>

0 comments on commit 133b24e

Please sign in to comment.