featL add skill component
This commit is contained in:
@@ -5,9 +5,9 @@
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:local="clr-namespace:Client"
|
||||
xmlns:scm="clr-namespace:System.ComponentModel;assembly=WindowsBase"
|
||||
xmlns:ctrls="clr-namespace:System.Windows.Controls;assembly=PresentationFramework"
|
||||
xmlns:converters="clr-namespace:Client.Application.Converters"
|
||||
xmlns:components="clr-namespace:Client.Application.Components"
|
||||
xmlns:views="clr-namespace:Client.Application.Views"
|
||||
mc:Ignorable="d"
|
||||
Title="L2Bot 2.0 Client" Height="600" Width="1024">
|
||||
<Window.Resources>
|
||||
@@ -22,7 +22,6 @@
|
||||
</CollectionViewSource.SortDescriptions>
|
||||
</CollectionViewSource>
|
||||
<converters:NullToVisibilityConverter x:Key="NullToVisibilityConverter"/>
|
||||
<ctrls:BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter"/>
|
||||
</Window.Resources>
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
@@ -105,74 +104,13 @@
|
||||
<TabItem>
|
||||
<TabItem.Header>Active</TabItem.Header>
|
||||
<TabItem.Content>
|
||||
<ItemsControl ItemsSource="{Binding ActiveSkills,Mode=OneWay}">
|
||||
<ItemsControl.ItemTemplate>
|
||||
<DataTemplate>
|
||||
<Button IsEnabled="{Binding Path=IsReadyToUse,Mode=OneWay}">
|
||||
<Button.Content>
|
||||
<Grid>
|
||||
<Image Source="{Binding Path=IconName}" Height="32" Width="32" />
|
||||
<Rectangle Fill="Black" Opacity=".5" Visibility="{Binding Path=IsBusy,Converter={StaticResource BooleanToVisibilityConverter},Mode=OneWay}"/>
|
||||
</Grid>
|
||||
</Button.Content>
|
||||
<Button.ToolTip>
|
||||
<StackPanel MaxWidth="300">
|
||||
<TextBlock TextWrapping="Wrap" FontWeight="Bold" FontSize="14" Margin="0,0,0,5">
|
||||
<TextBlock.Text>
|
||||
<MultiBinding StringFormat="{}{0} Lv {1}">
|
||||
<Binding Path="Name" Mode="OneWay"/>
|
||||
<Binding Path="Level" Mode="OneWay"/>
|
||||
</MultiBinding>
|
||||
</TextBlock.Text>
|
||||
</TextBlock>
|
||||
<TextBlock TextWrapping="Wrap" Text="{Binding Path=Cost,Mode=OneWay,StringFormat='MP Cost {0}'}" />
|
||||
<TextBlock TextWrapping="Wrap" Text="{Binding Path=Range,Mode=OneWay,StringFormat='Range {0}'}" />
|
||||
<TextBlock TextWrapping="Wrap" Text="{Binding Path=Description,Mode=OneWay}" />
|
||||
</StackPanel>
|
||||
</Button.ToolTip>
|
||||
</Button>
|
||||
</DataTemplate>
|
||||
</ItemsControl.ItemTemplate>
|
||||
<ItemsControl.ItemsPanel>
|
||||
<ItemsPanelTemplate>
|
||||
<WrapPanel/>
|
||||
</ItemsPanelTemplate>
|
||||
</ItemsControl.ItemsPanel>
|
||||
</ItemsControl>
|
||||
<views:SkillPanel ItemsSource="{Binding ActiveSkills,Mode=OneWay}" />
|
||||
</TabItem.Content>
|
||||
</TabItem>
|
||||
<TabItem>
|
||||
<TabItem.Header>Passive</TabItem.Header>
|
||||
<TabItem.Content>
|
||||
<ItemsControl ItemsSource="{Binding PassiveSkills,Mode=OneWay}">
|
||||
<ItemsControl.ItemTemplate>
|
||||
<DataTemplate>
|
||||
<Button IsEnabled="False" ToolTipService.ShowOnDisabled="True">
|
||||
<Button.Content>
|
||||
<Image Source="{Binding Path=IconName}" Height="32" Width="32" />
|
||||
</Button.Content>
|
||||
<Button.ToolTip>
|
||||
<StackPanel MaxWidth="300">
|
||||
<TextBlock TextWrapping="Wrap" FontWeight="Bold" FontSize="14" Margin="0,0,0,5">
|
||||
<TextBlock.Text>
|
||||
<MultiBinding StringFormat="{}{0} Lv {1}">
|
||||
<Binding Path="Name" Mode="OneWay"/>
|
||||
<Binding Path="Level" Mode="OneWay"/>
|
||||
</MultiBinding>
|
||||
</TextBlock.Text>
|
||||
</TextBlock>
|
||||
<TextBlock TextWrapping="Wrap" Text="{Binding Path=Description,Mode=OneWay}" />
|
||||
</StackPanel>
|
||||
</Button.ToolTip>
|
||||
</Button>
|
||||
</DataTemplate>
|
||||
</ItemsControl.ItemTemplate>
|
||||
<ItemsControl.ItemsPanel>
|
||||
<ItemsPanelTemplate>
|
||||
<WrapPanel/>
|
||||
</ItemsPanelTemplate>
|
||||
</ItemsControl.ItemsPanel>
|
||||
</ItemsControl>
|
||||
<views:SkillPanel ItemsSource="{Binding PassiveSkills,Mode=OneWay}" />
|
||||
</TabItem.Content>
|
||||
</TabItem>
|
||||
</TabControl>
|
||||
@@ -201,7 +139,7 @@
|
||||
</TextBlock.Text>
|
||||
</TextBlock>
|
||||
</StackPanel>
|
||||
<components:StatsPanel DataContext="{Binding ., Mode=OneWay}" Margin="4" Grid.Row="1" />
|
||||
<views:StatsPanel DataContext="{Binding ., Mode=OneWay}" Margin="4" Grid.Row="1" />
|
||||
<DockPanel Grid.Row="2" Margin="4">
|
||||
<StackPanel DockPanel.Dock="Left" Margin="0 0 5 0">
|
||||
<TextBlock Padding="0 0 0 3">Position:</TextBlock>
|
||||
|
Reference in New Issue
Block a user