-
Notifications
You must be signed in to change notification settings - Fork 38
/
ServerWindow.xaml
164 lines (162 loc) · 10.1 KB
/
ServerWindow.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
<Window x:Class="SapphireBootWPF.ServerWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:ctrl="clr-namespace:SapphireBootWPF.Control"
xmlns:shell="http://schemas.microsoft.com/winfx/2006/xaml/presentation/shell"
xmlns:local="clr-namespace:SapphireBootWPF"
Title="FINAL FANTASY XIV: Online (Sapphire) Launcher Settings" Height="581" Width="1024"
ResizeMode="CanMinimize" WindowStyle="None">
<Window.Style>
<Style TargetType="Window">
<Setter Property="shell:WindowChrome.WindowChrome">
<Setter.Value>
<shell:WindowChrome ResizeBorderThickness="0"
CaptionHeight="28"
CornerRadius="0 0 0 0"
GlassFrameThickness="0"/>
</Setter.Value>
</Setter>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Window">
<Border>
<Border.Background>
<ImageBrush ImageSource="MainImg/window_background.png"/>
</Border.Background>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="28"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<DockPanel x:Name="CaptionBar"
Grid.Row="0"
shell:WindowChrome.IsHitTestVisibleInChrome="False">
<Image Source="icon.bmp" Height="20" Margin="13,0,0,0"/>
<!-- TODO: Use the Window's actual Title property here. -->
<Label Content="{Binding Title, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type local:ServerWindow}}}" Foreground="White"/>
<ctrl:CaptionButtons Margin="0,0,8,0" HorizontalAlignment="Right"/>
</DockPanel>
<ContentPresenter Grid.Row="1" Content="{TemplateBinding Content}"/>
</Grid>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</Window.Style>
<!-- Server Panel -->
<StackPanel x:Name="ServerPanel">
<StackPanel.Background>
<ImageBrush ImageSource="AccountImg/background.png" Stretch="None"/>
</StackPanel.Background>
<StackPanel Orientation="Horizontal" Margin="29,145,-7,17" HorizontalAlignment="Center" Width="652">
<Image x:Name="textMarkerImage" Height="21" Width="25" Source="AccountImg/text_marker.png" Margin="0,-1,0,0"/>
<Label x:Name="infoLabel" Content="Please enter the URL of the server login site and set your FFXIV installation path and launch options." Foreground="White" Width="626" FontFamily="Meiryo" TextOptions.TextFormattingMode="Display"/>
</StackPanel>
<StackPanel Orientation="Horizontal" Margin="271,4,128,0" HorizontalAlignment="Center" Width="523">
<Label x:Name="lobbyLabel" Content="Server URL" Foreground="White" Width="101" FontFamily="Meiryo" TextOptions.TextFormattingMode="Display"/>
<TextBox x:Name="lobbyTextBox" Height="22" Width="234" Margin="21,0,0,0"/>
<Button x:Name="checkDataButton" VerticalAlignment="Center" Width="156" Margin="10,0,0,0" Click="checkDataButton_Click">
<Button.Template>
<ControlTemplate>
<Border>
<Image>
<Image.Style>
<Style>
<Setter Property="Image.Source" Value="AccountImg/btn_validity_check_i.png" />
<Style.Triggers>
<Trigger Property="Image.IsMouseOver" Value="True">
<Setter Property="Image.Source" Value="AccountImg/btn_validity_check_a.png" />
</Trigger>
</Style.Triggers>
</Style>
</Image.Style>
</Image>
</Border>
</ControlTemplate>
</Button.Template>
</Button>
</StackPanel>
<StackPanel Orientation="Horizontal" Margin="260,4,211,0" HorizontalAlignment="Center" Width="429">
<Label x:Name="gamePathLabel" Content="Game Path" Foreground="White" Width="101" FontFamily="Meiryo" TextOptions.TextFormattingMode="Display"/>
<TextBox x:Name="gamePathTextBox" Height="22" Width="234" Margin="21,0,0,0" IsEnabled="False"/>
<Button x:Name="selectPathButton" VerticalAlignment="Center" Width="36" Margin="9,5,0,0" Height="18" Click="selectPathButton_Click">
<Button.Template>
<ControlTemplate>
<Border>
<Image>
<Image.Style>
<Style>
<Setter Property="Image.Source" Value="SettingsImg/btn_dots_i.png" />
<Style.Triggers>
<Trigger Property="Image.IsMouseOver" Value="True">
<Setter Property="Image.Source" Value="SettingsImg/btn_dots_a.png" />
</Trigger>
</Style.Triggers>
</Style>
</Image.Style>
</Image>
</Border>
</ControlTemplate>
</Button.Template>
</Button>
</StackPanel>
<StackPanel Orientation="Horizontal" Margin="260,4,241,0" HorizontalAlignment="Center" Width="397">
<Label x:Name="launchParamsLabel" Content="Launch params" Foreground="White" Width="99" FontFamily="Meiryo" TextOptions.TextFormattingMode="Display"/>
<TextBox x:Name="launchParamsTextBox" Height="22" Width="234" Margin="22,0,0,0"/>
</StackPanel>
<StackPanel Orientation="Horizontal" Margin="260,4,241,0" HorizontalAlignment="Center" Width="397">
<Label x:Name="expansionLevelLabel" Content="Expansion" Foreground="White" Width="99" FontFamily="Meiryo" TextOptions.TextFormattingMode="Display"/>
<ComboBox x:Name="expansionLevelComboBox" Height="22" Width="234" Margin="22,0,0,0" IsReadOnly="True" SelectedIndex="1">
<ComboBoxItem Content="A Realm Reborn"/>
<ComboBoxItem Content="Heavensward"/>
<ComboBoxItem Content="Stormblood"/>
<ComboBoxItem Content="Shadowbringers"/>
<ComboBoxItem Content="Endwalker" />
</ComboBox>
</StackPanel>
<StackPanel Orientation="Horizontal" Margin="260,4,241,0" HorizontalAlignment="Center" Width="397">
<Label x:Name="languageLabel" Content="Language" Foreground="White" Width="99" FontFamily="Meiryo" TextOptions.TextFormattingMode="Display"/>
<ComboBox x:Name="languageComboBox" Height="22" Width="234" Margin="22,0,0,0" SelectedIndex="1">
<ComboBoxItem Content="日本語"/>
<ComboBoxItem Content="English"/>
<ComboBoxItem Content="Deutsch"/>
<ComboBoxItem Content="Français"/>
</ComboBox>
</StackPanel>
<StackPanel Orientation="Horizontal" Margin="260,4,241,0" HorizontalAlignment="Center" Width="397">
<Label Content="Close On Launch" Foreground="White" Width="110" FontFamily="Meiryo" TextOptions.TextFormattingMode="Display"/>
<CheckBox x:Name="launcherCloseOnLaunch" Margin="22,5,0,0"></CheckBox>
</StackPanel>
<Button x:Name="saveDataButton" HorizontalAlignment="Center" VerticalAlignment="Center" Width="206" Margin="409,18,409,0" Height="26" Click="saveDataButton_Click">
<Button.Template>
<ControlTemplate>
<Border>
<Image>
<!-- TODO: Do some button graphic that says "save", next is a bit confusing -->
<Image.Style>
<Style>
<Setter Property="Image.Source" Value="AccountImg/btn_next_i.png" />
<Style.Triggers>
<Trigger Property="UIElement.IsMouseOver" Value="True">
<Setter Property="Image.Source" Value="AccountImg/btn_next_a.png" />
</Trigger>
</Style.Triggers>
</Style>
</Image.Style>
</Image>
</Border>
</ControlTemplate>
</Button.Template>
</Button>
<Label x:Name="errorLabel" Content="" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="0,12,0,0" FontFamily="Meiryo" Foreground="#FFDC0000"/>
<Button x:Name="backButton" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="0,12,0,0" FontFamily="Meiryo" Foreground="White" Cursor="Hand" FontSize="10.667" Click="backButton_Click">
<TextBlock TextDecorations="Underline" TextOptions.TextFormattingMode="Display">back</TextBlock>
<Button.Template>
<ControlTemplate TargetType="{x:Type Button}">
<ContentPresenter />
</ControlTemplate>
</Button.Template>
</Button>
</StackPanel>
</Window>