forked from rstarkov/TankIconMaker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPathTemplateWindow.xaml
More file actions
79 lines (79 loc) · 8.02 KB
/
Copy pathPathTemplateWindow.xaml
File metadata and controls
79 lines (79 loc) · 8.02 KB
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
<rtf:ManagedWindow x:Class="TankIconMaker.PathTemplateWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:rtf="clr-namespace:RT.Util.Forms;assembly=RT.Util"
xmlns:src="clr-namespace:TankIconMaker"
x:ClassModifier="internal"
ShowInTaskbar="False"
SizeToContent="Height" ResizeMode="CanResize" Width="900"
TextOptions.TextFormattingMode="Display"
Background="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"
Icon="/TankIconMaker;component/Resources/Graphics/icon.ico">
<Window.Resources>
<ScaleTransform x:Key="UiZoomer" CenterX="0" CenterY="0" ScaleX="1" ScaleY="1" />
</Window.Resources>
<StackPanel Margin="10" LayoutTransform="{StaticResource UiZoomer}">
<TextBlock Name="ctHelp" Padding="3,0" TextWrapping="Wrap">This template specifies which path the icons are to be saved to. It is relative to the selected game installation directory. Leave blank to save the icons to the standard location, which works in an unmodified World of Tanks client and requires no mods. Any non-standard paths will only have an effect if you have the appropriate mods installed.</TextBlock>
<TextBox Name="ctValue" Margin="0,16,0,5" TextChanged="ctValue_TextChanged" />
<DockPanel>
<TextBlock Name="ctExpandsToLbl" FontWeight="Bold" Margin="3,0,8,0">Preview:</TextBlock>
<TextBlock Name="ctExpandsTo" TextWrapping="NoWrap" TextTrimming="CharacterEllipsis" />
</DockPanel>
<TextBlock Name="ctTemplateElements" Margin="3,25,3,0" TextWrapping="Wrap">Use the following template elements to construct the path:</TextBlock>
<Grid Margin="20,15,0,10" Name="ctHelpGrid">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="auto" />
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition />
<RowDefinition />
<RowDefinition />
<RowDefinition />
<RowDefinition />
<RowDefinition />
<RowDefinition />
<RowDefinition />
<RowDefinition />
<RowDefinition />
<RowDefinition />
<RowDefinition />
<RowDefinition />
</Grid.RowDefinitions>
<TextBox Name="ctIconsPathMacro" Background="Transparent" BorderThickness="0" IsReadOnly="True" Grid.Row="0" Grid.Column="0" MouseDoubleClick="SelectAll">{IconsPath}</TextBox>
<TextBlock Grid.Row="0" Grid.Column="1" Name="ctIconsPathHelp" Margin="16,0,0,4" TextWrapping="Wrap" Text="Relative path to the res_mods\... subfolder from where the unmodified client loads the icons. This is the standard save path, used when the template above is blank.
Current value: “{cur}”"/>
<TextBox Background="Transparent" BorderThickness="0" IsReadOnly="True" Grid.Row="1" Grid.Column="0" MouseDoubleClick="SelectAll">{TimPath}</TextBox>
<TextBlock Grid.Row="1" Grid.Column="1" Name="ctTimPathHelp" Margin="16,0,0,4" TextWrapping="Wrap" Text="Full path to the folder containing Tank Icon Maker.
Current value: “{cur}”"/>
<TextBox Background="Transparent" BorderThickness="0" IsReadOnly="True" Grid.Row="2" Grid.Column="0" MouseDoubleClick="SelectAll">{GamePath}</TextBox>
<TextBlock Grid.Row="2" Grid.Column="1" Name="ctGamePathHelp" Margin="16,0,0,4" TextWrapping="Wrap" Text="Full path to the location where World of Tanks is installed.
Current value: “{cur}”"/>
<TextBox Background="Transparent" BorderThickness="0" IsReadOnly="True" Grid.Row="3" Grid.Column="0" MouseDoubleClick="SelectAll">{GameVersion}</TextBox>
<TextBlock Grid.Row="3" Grid.Column="1" Name="ctGameVersionHelp" Margin="16,0,0,4" TextWrapping="Wrap" Text="Version identifier for the selected WoT folder. Examples: “0.9.5”, “0.9.5 Common Test”.
Current value: “{cur}”"/>
<TextBox Background="Transparent" BorderThickness="0" IsReadOnly="True" Grid.Row="4" Grid.Column="0" MouseDoubleClick="SelectAll">{TankClass}</TextBox>
<TextBlock Grid.Row="4" Grid.Column="1" Name="ctTankClassHelp" Margin="16,0,0,4" TextWrapping="Wrap" Text="Specifies the tank class for a given icon (heavy, medium etc.). Varies for each icon."/>
<TextBox Background="Transparent" BorderThickness="0" IsReadOnly="True" Grid.Row="5" Grid.Column="0" MouseDoubleClick="SelectAll">{TankCountry}</TextBox>
<TextBlock Grid.Row="5" Grid.Column="1" Name="ctTankCountryHelp" Margin="16,0,0,4" TextWrapping="Wrap" Text="Specifies the tank country for a given icon. Varies for each icon."/>
<TextBox Background="Transparent" BorderThickness="0" IsReadOnly="True" Grid.Row="6" Grid.Column="0" MouseDoubleClick="SelectAll">{TankId}</TextBox>
<TextBlock Grid.Row="6" Grid.Column="1" Name="ctTankIdHelp" Margin="16,0,0,4" TextWrapping="Wrap" Text="Specifies the tank Id for a given icon (commonly used as name for icon file). Varies for each icon."/>
<TextBox Background="Transparent" BorderThickness="0" IsReadOnly="True" Grid.Row="7" Grid.Column="0" MouseDoubleClick="SelectAll">{TankFullName}</TextBox>
<TextBlock Grid.Row="7" Grid.Column="1" Name="ctTankFullNameHelp" Margin="16,0,0,4" TextWrapping="Wrap" Text="Specifies the tank full name for a given icon. Varies for each icon."/>
<TextBox Background="Transparent" BorderThickness="0" IsReadOnly="True" Grid.Row="8" Grid.Column="0" MouseDoubleClick="SelectAll">{TankShortName}</TextBox>
<TextBlock Grid.Row="8" Grid.Column="1" Name="ctTankShortNameHelp" Margin="16,0,0,4" TextWrapping="Wrap" Text="Specifies the tank short for a given icon. Varies for each icon."/>
<TextBox Background="Transparent" BorderThickness="0" IsReadOnly="True" Grid.Row="9" Grid.Column="0" MouseDoubleClick="SelectAll">{TankTier}</TextBox>
<TextBlock Grid.Row="9" Grid.Column="1" Name="ctTankTierHelp" Margin="16,0,0,4" TextWrapping="Wrap" Text="Specifies the tank tier for a given icon. Varies for each icon."/>
<TextBox Background="Transparent" BorderThickness="0" IsReadOnly="True" Grid.Row="10" Grid.Column="0" MouseDoubleClick="SelectAll">{StyleName}</TextBox>
<TextBlock Grid.Row="10" Grid.Column="1" Name="ctStyleNameHelp" Margin="16,0,0,4" TextWrapping="Wrap" Text="The name of the selected style. Current value: “{cur}”"/>
<TextBox Background="Transparent" BorderThickness="0" IsReadOnly="True" Grid.Row="11" Grid.Column="0" MouseDoubleClick="SelectAll">{StyleAuthor}</TextBox>
<TextBlock Grid.Row="11" Grid.Column="1" Name="ctStyleAuthorHelp" Margin="16,0,0,4" TextWrapping="Wrap" Text="The author of the selected style. Current value: “{cur}”"/>
<TextBox Background="Transparent" BorderThickness="0" IsReadOnly="True" Grid.Row="12" Grid.Column="0" MouseDoubleClick="SelectAll" Text="%UserProfile%
%AppData%
..."/>
<TextBlock Grid.Row="12" Grid.Column="1" Name="ctEnvVarsHelp" Margin="16,0,0,4" TextWrapping="Wrap" Text="All environment variables are expanded to their values. %UserProfile% expands to the user's profile folder path. %AppData% expands to the primary folder containing application settings. Many other environment variables are documented in online sources."/>
</Grid>
<WrapPanel Grid.Row="2" HorizontalAlignment="Right">
<Button Margin="10,0,0,0" IsDefault="True" Click="ok">
<AccessText Margin="16,2" Name="ctOkBtn">_OK</AccessText>
</Button>
<Button Margin="10,0,0,0" IsCancel="True">
<AccessText Margin="16,2" Name="ctCancelBtn">_Cancel</AccessText>
</Button>
</WrapPanel>
</StackPanel>
</rtf:ManagedWindow>