Skip to content

Commit

Permalink
Items fully skinned, added zh-CN, V1.9
Browse files Browse the repository at this point in the history
  • Loading branch information
Just2good committed Jul 10, 2019
1 parent 75eab4e commit bf15083
Show file tree
Hide file tree
Showing 30 changed files with 1,871 additions and 892 deletions.
1 change: 1 addition & 0 deletions App.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
<FontFamily x:Key="Cabin">pack://application:,,,/ReferencedAssembly;component/Font/Cabin.ttf</FontFamily>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="Resource\Items.xaml"/>
<ResourceDictionary Source="Resource\ItemsTextless.xaml"/>
<ResourceDictionary Source="Resource\Localization\ItemStrings.xaml"/>
<ResourceDictionary Source="Resource\Charts.xaml"/>
<ResourceDictionary Source="Resource\ClassOrigins.xaml"/>
Expand Down
Binary file added Images/cstyle/items/cursed_blade.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 added Images/cstyle/items/dragons_claw.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 added Images/cstyle/items/frozen_heart.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 added Images/cstyle/items/guinsoos_rageblade.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 added Images/cstyle/items/hush.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 added Images/cstyle/items/ionic_spark.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 added Images/cstyle/items/locket_of_the_iron_solari.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 added Images/cstyle/items/ludens_echo.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 added Images/cstyle/items/morellonomicon.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 added Images/cstyle/items/phantom_dancer.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 added Images/cstyle/items/rabadons_deathcap.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 added Images/cstyle/items/rapid_firecannon.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 added Images/cstyle/items/red_buff.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 added Images/cstyle/items/redemption.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 added Images/cstyle/items/seraphs_embrace.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 added Images/cstyle/items/statikk_shiv.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 added Images/cstyle/items/sword_breaker.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 added Images/cstyle/items/thornmail.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 added Images/cstyle/items/titanic_hydra.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 added Images/cstyle/items/warmogs_armor.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 added Images/cstyle/items/zephyr.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 9 additions & 8 deletions MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,6 @@
<MenuItem x:Name="Lock" Header="Lock" IsChecked="{Binding Source={x:Static p:Settings.Default}, Path=Lock}" Click="MenuItem_Click_Lock" Foreground="Black"/>
<MenuItem x:Name="ResizeLock" Header="Resize" IsChecked="False" IsCheckable="True" Foreground="Black"/>
<MenuItem x:Name="OnTop" Header="Always On Top" IsChecked="True" IsCheckable="True" Click="MenuItem_Click_OnTop" Foreground="Black"/>
<MenuItem x:Name="AutoDim" Header="Auto-Dim" Click="AutoDim_Click" IsChecked="{Binding Source={x:Static p:Settings.Default}, Path=AutoDim}" Foreground="Black"/>
<Separator Width="Auto" Height="2"/>
<MenuItem x:Name="Localization" Header="Language" Foreground="Black">
<MenuItem Header="English">
Expand Down Expand Up @@ -176,6 +175,7 @@
<MenuItem Header="vi-VN" Click="VN_Click"/>
</MenuItem>
<MenuItem Header="中文">
<MenuItem Header="zh-CN" Click="CN_Click"/>
<MenuItem Header="zh-TW" Click="TW_Click"/>
</MenuItem>
<Separator Width="Auto" Height="2"/>
Expand All @@ -185,7 +185,8 @@
<MenuItem Header="About" Click="MenuItem_Click_About" Foreground="Black"/>
<MenuItem Header="Credits" Click="MenuItem_Click_Credits" Foreground="Black"/>
<Separator Width="Auto" Height="2"/>
<MenuItem x:Name="AutoUpdate" Header="Check for Updates (Re-Launch)" IsChecked="False" IsCheckable="True" Click="MenuItem_AutoUpdate" Foreground="Black"/>
<MenuItem x:Name="AutoDim" Header="Auto-Dim" Click="AutoDim_Click" IsChecked="{Binding Source={x:Static p:Settings.Default}, Path=AutoDim}" Foreground="Black"/>
<MenuItem x:Name="AutoUpdate" Header="Auto-Updater" IsChecked="{Binding Source={x:Static p:Settings.Default}, Path=AutoUpdate}" Click="MenuItem_AutoUpdate" Foreground="Black"/>
<Separator Width="Auto" Height="2"/>
<MenuItem Header="Exit" Click="MenuItem_Click" Foreground="Black"/>
</ContextMenu>
Expand Down Expand Up @@ -222,31 +223,31 @@
<!--IsChecked-->
<!--Bar Buttons-->
<DataTrigger Binding="{Binding ElementName=Bow, Path=IsChecked}" Value="True">
<Setter TargetName="Frame" Property="ContentTemplate" Value="{StaticResource Recurve}"/>
<Setter TargetName="Frame" Property="ContentTemplate" Value="{StaticResource Recurve1}"/>
<Setter TargetName="Modifier" Property="IsChecked" Value="True"/>
</DataTrigger>
<DataTrigger Binding="{Binding ElementName=BFS, Path=IsChecked}" Value="True">
<Setter TargetName="Frame" Property="ContentTemplate" Value="{StaticResource BFSword1}"/>
<Setter TargetName="Modifier" Property="IsChecked" Value="True"/>
</DataTrigger>
<DataTrigger Binding="{Binding ElementName=Rod, Path=IsChecked}" Value="True">
<Setter TargetName="Frame" Property="ContentTemplate" Value="{StaticResource NLRod}"/>
<Setter TargetName="Frame" Property="ContentTemplate" Value="{StaticResource NLRod1}"/>
<Setter TargetName="Modifier" Property="IsChecked" Value="True"/>
</DataTrigger>
<DataTrigger Binding="{Binding ElementName=Tear, Path=IsChecked}" Value="True">
<Setter TargetName="Frame" Property="ContentTemplate" Value="{StaticResource Mana}"/>
<Setter TargetName="Frame" Property="ContentTemplate" Value="{StaticResource Mana1}"/>
<Setter TargetName="Modifier" Property="IsChecked" Value="True"/>
</DataTrigger>
<DataTrigger Binding="{Binding ElementName=Vest, Path=IsChecked}" Value="True">
<Setter TargetName="Frame" Property="ContentTemplate" Value="{StaticResource ChainVest}"/>
<Setter TargetName="Frame" Property="ContentTemplate" Value="{StaticResource ChainVest1}"/>
<Setter TargetName="Modifier" Property="IsChecked" Value="True"/>
</DataTrigger>
<DataTrigger Binding="{Binding ElementName=Cape, Path=IsChecked}" Value="True">
<Setter TargetName="Frame" Property="ContentTemplate" Value="{StaticResource Negatron}"/>
<Setter TargetName="Frame" Property="ContentTemplate" Value="{StaticResource Negatron1}"/>
<Setter TargetName="Modifier" Property="IsChecked" Value="True"/>
</DataTrigger>
<DataTrigger Binding="{Binding ElementName=Belt, Path=IsChecked}" Value="True">
<Setter TargetName="Frame" Property="ContentTemplate" Value="{StaticResource Giants}"/>
<Setter TargetName="Frame" Property="ContentTemplate" Value="{StaticResource Giants1}"/>
<Setter TargetName="Modifier" Property="IsChecked" Value="True"/>
</DataTrigger>
<DataTrigger Binding="{Binding ElementName=Spatula, Path=IsChecked}" Value="True">
Expand Down
21 changes: 19 additions & 2 deletions MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ private void MenuItem_Click(object sender, RoutedEventArgs e)

private void MenuItem_Click_About(object sender, RoutedEventArgs e)
{
MessageBox.Show("TFT Information Overlay V" + CurrentVersion + " by J2GKaze/Jinsoku#4019\n\nDM me on Discord if you have any questions\n\nLast Updated: July 4th, 2019 @ 10:47PM PST", "About");
MessageBox.Show("TFT Information Overlay V" + CurrentVersion + " by J2GKaze/Jinsoku#4019\n\nDM me on Discord if you have any questions\n\nLast Updated: July 9th, 2019 @ 9PM PST", "About");
}

private void MenuItem_Click_Credits(object sender, RoutedEventArgs e)
Expand All @@ -67,8 +67,20 @@ private void MenuItem_Click_Lock(object sender, RoutedEventArgs e)

private void MenuItem_AutoUpdate(object sender, RoutedEventArgs e)
{
string state = Properties.Settings.Default.AutoUpdate == true ? "OFF" : "ON";

MessageBoxResult result = MessageBox.Show($"Would you like to turn {state} Auto-Update? This will restart the program.", "Auto-Updater", MessageBoxButton.OKCancel);

if (result != MessageBoxResult.OK)
{
return;
}

Properties.Settings.Default.AutoUpdate = !Properties.Settings.Default.AutoUpdate;
Properties.Settings.Default.Save();

System.Windows.Forms.Application.Restart();
Application.Current.Shutdown();
}

private void MenuItem_Click_OnTop(object sender, RoutedEventArgs e)
Expand Down Expand Up @@ -170,7 +182,7 @@ private void LoadStringResource(string locale)
}
private void Localization_Credits(object sender, RoutedEventArgs e)
{
MessageBox.Show("es-AR: Oscarinom\nes-MX: Jukai#3434\nfr-FR: Darkneight\nit-IT: BlackTYWhite#0943\nJA: つかぽん@PKMotion#8731\nPL: Czapson#9774\nRU: Jeremy Buttson#2586\nvi-VN: GodV759\nzh-TW: noheart#6977\n", "Localization Credits");
MessageBox.Show("es-AR: Oscarinom\nes-MX: Jukai#3434\nfr-FR: Darkneight\nit-IT: BlackTYWhite#0943\nJA: つかぽん@PKMotion#8731\nPL: Czapson#9774\nRU: Jeremy Buttson#2586\nvi-VN: GodV759\nzh-CN: nevex#4441\nzh-TW: noheart#6977\n", "Localization Credits");
}

private void US_Click(object sender, RoutedEventArgs e)
Expand Down Expand Up @@ -218,6 +230,11 @@ private void VN_Click(object sender, RoutedEventArgs e)
LoadStringResource("vi-VN");
}

private void CN_Click(object sender, RoutedEventArgs e)
{
LoadStringResource("zh-CN");
}

private void TW_Click(object sender, RoutedEventArgs e)
{
LoadStringResource("zh-TW");
Expand Down
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,16 @@
- [Click Here for instructions](https://github.com/Just2good/TFT-Overlay/blob/master/Localization.md)

## Version History
- **7.9.2019**
- [1.9](https://github.com/Just2good/TFT-Overlay/releases/tag/V1.9)
- Items are fully skinned.
- Window position, size, and draggable preferences saved on exit. (By ꙅꙅɘᴎTqAbɘbᴎɘld#1175)
- Added Languages: es-AR, es-MX, fr-FR, it-IT, JA, PL, RU, vi-VN, zh-CN, zh-TW
- Custom Cursor has been added to fit LoL theme.
- New additions to Context Menu
`Auto-Dim (Sets Opacity of Program to 20% when League of Legends is not open)`
`Switch Language`

- **7.5.2019**
- [1.8.2](https://github.com/Just2good/TFT-Overlay/releases/tag/V1.8.2)
- Auto-Updater re-added (There is a section in Context Menu as well)
Expand Down
Loading

0 comments on commit bf15083

Please sign in to comment.