Skip to content

Commit dea6972

Browse files
authored
Resource Icons for Githzerai (#204)
1 parent 4fb5ac9 commit dea6972

File tree

3 files changed

+68
-0
lines changed

3 files changed

+68
-0
lines changed

ImprovedUI/Public/Game/GUI/Library/IUI_ActionResourceIcons.xaml

+40
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,8 @@
179179
<ImageSource x:Key="GZI_KnowledgeUnavailable" >pack://application:,,,/GustavNoesisGUI;component/Assets/FollowersOfZerthimon/Shared/Resources/ico_classRes_GZI_Knowledge_missing.png</ImageSource>
180180
<ImageSource x:Key="Glamour">pack://application:,,,/GustavNoesisGUI;component/Assets/Briarguard/Shared/Resources/ico_classRes_Glamour_d.png</ImageSource>
181181
<ImageSource x:Key="GlamourUnavailable">pack://application:,,,/GustavNoesisGUI;component/Assets/Briarguard/Shared/Resources/ico_classRes_Glamour_missing.png</ImageSource>
182+
<ImageSource x:Key="GZI_Psionic_Focus" >pack://application:,,,/GustavNoesisGUI;component/Assets/FollowersOfZerthimon/Shared/Resources/ico_classRes_GZI_Psionic_Focus_d.png</ImageSource>
183+
<ImageSource x:Key="GZI_Psionic_FocusUnavailable" >pack://application:,,,/GustavNoesisGUI;component/Assets/FollowersOfZerthimon/Shared/Resources/ico_classRes_GZI_Psionic_Focus_missing.png</ImageSource>
182184
<!-- EDIT HERE -->
183185

184186
<!-- This is the icon that appears on the tooltip -->
@@ -304,6 +306,9 @@
304306
<DataTrigger Binding="{Binding TypeId}" Value="Glamour">
305307
<Setter Property="Source" Value="{StaticResource Glamour}"/>
306308
</DataTrigger>
309+
<DataTrigger Binding="{Binding TypeId}" Value="GZI_Psionic_Focus">
310+
<Setter Property="Source" Value="{StaticResource GZI_Psionic_Focus}"/>
311+
</DataTrigger>
307312
<!-- EDIT HERE -->
308313
</Style.Triggers>
309314
</Style>
@@ -1096,6 +1101,16 @@
10961101
<Setter Property="Source" Value="{StaticResource GlamourUnavailable}"/>
10971102
</MultiDataTrigger.Setters>
10981103
</MultiDataTrigger>
1104+
<MultiDataTrigger>
1105+
<MultiDataTrigger.Conditions>
1106+
<Condition Binding="{Binding TypeId}" Value="GZI_Psionic_Focus"/>
1107+
<Condition Binding="{Binding Value}" Value="0"/>
1108+
<Condition Binding="{Binding IgnoreCost}" Value="False"/>
1109+
</MultiDataTrigger.Conditions>
1110+
<MultiDataTrigger.Setters>
1111+
<Setter Property="Source" Value="{StaticResource GZI_Psionic_FocusUnavailable}"/>
1112+
</MultiDataTrigger.Setters>
1113+
</MultiDataTrigger>
10991114
<!-- EDIT HERE -->
11001115
</Style.Triggers>
11011116
</Style>
@@ -1602,6 +1617,16 @@
16021617
</ControlTemplate.Resources>
16031618
<ContentControl ContentTemplate="{StaticResource ActionResources.ActionGroup.ActionPoint}"/>
16041619
</ControlTemplate>
1620+
1621+
<ControlTemplate x:Key="ActionResources.ActionGroup.GZI_Psionic_FocusGroup" TargetType="ls:LSActionPoint">
1622+
<ControlTemplate.Resources>
1623+
<ImageSource x:Key="Highlight">/GustavNoesisGUI;component/Assets/FollowersOfZerthimon/Shared/Resources/ico_classRes_GZI_Psionic_Focus_h.png</ImageSource>
1624+
<ImageSource x:Key="Available">/GustavNoesisGUI;component/Assets/FollowersOfZerthimon/Shared/Resources/ico_classRes_GZI_Psionic_Focus_d.png</ImageSource>
1625+
<ImageSource x:Key="Used">/GustavNoesisGUI;component/Assets/FollowersOfZerthimon/Shared/Resources/ico_classRes_GZI_Psionic_Focus_spent.png</ImageSource>
1626+
<ImageSource x:Key="Missing">/GustavNoesisGUI;component/Assets/FollowersOfZerthimon/Shared/Resources/ico_classRes_GZI_Psionic_Focus_missing.png</ImageSource>
1627+
</ControlTemplate.Resources>
1628+
<ContentPresenter ContentTemplate="{StaticResource ActionResources.ActionGroup.ActionPoint}"/>
1629+
</ControlTemplate>
16051630
<!-- EDIT HERE -->
16061631

16071632
<!-- Setup default styles that are inherited before changes are applied, do not touch these -->
@@ -2421,6 +2446,21 @@
24212446
<Setter Property="Margin" Value="0,-15,0,0"/>
24222447
</MultiDataTrigger.Setters>
24232448
</MultiDataTrigger>
2449+
2450+
<DataTrigger Binding="{Binding TypeId}" Value="GZI_Psionic_Focus">
2451+
<Setter Property="ActionPointTemplate" Value="{DynamicResource ActionResources.ActionGroup.GZI_Psionic_FocusGroup}"/>
2452+
<Setter Property="MaxGroupActionPoints" Value="1"/>
2453+
<Setter Property="ActionPointSize" Value="{DynamicResource ActionResources.ActionPointSize}" />
2454+
</DataTrigger>
2455+
<MultiDataTrigger>
2456+
<MultiDataTrigger.Conditions>
2457+
<Condition Binding="{Binding TypeId}" Value="GZI_Psionic_Focus"/>
2458+
<Condition Binding="{Binding Value, Converter={StaticResource GreaterThanConverter}, ConverterParameter=1}" Value="True"/>
2459+
</MultiDataTrigger.Conditions>
2460+
<MultiDataTrigger.Setters>
2461+
<Setter Property="Margin" Value="0,-15,0,0"/>
2462+
</MultiDataTrigger.Setters>
2463+
</MultiDataTrigger>
24242464
<!-- EDIT HERE -->
24252465
</Style.Triggers>
24262466
</Style>

ImprovedUI/Public/Game/GUI/Library/IUI_ActionResourceIcons_c.xaml

+10
Original file line numberDiff line numberDiff line change
@@ -436,5 +436,15 @@
436436
<ContentControl ContentTemplate="{StaticResource ActionResources.ActionGroup.ActionPoint}"/>
437437
</ControlTemplate>
438438

439+
<ControlTemplate x:Key="ActionResources.ActionGroup.GZI_Psionic_FocusGroup" TargetType="ls:LSActionPoint">
440+
<ControlTemplate.Resources>
441+
<ImageSource x:Key="Highlight">/GustavNoesisGUI;component/Assets/FollowersOfZerthimon/ActionResources_c/Icons/c_ico_classRes_GZI_Psionic_Focus_h.png</ImageSource>
442+
<ImageSource x:Key="Available">/GustavNoesisGUI;component/Assets/FollowersOfZerthimon/ActionResources_c/Icons/c_ico_classRes_GZI_Psionic_Focus_d.png</ImageSource>
443+
<ImageSource x:Key="Used">/GustavNoesisGUI;component/Assets/FollowersOfZerthimon/ActionResources_c/Icons/c_ico_classRes_GZI_Psionic_Focus_spent.png</ImageSource>
444+
<ImageSource x:Key="Missing">/GustavNoesisGUI;component/Assets/FollowersOfZerthimon/ActionResources_c/Icons/c_ico_classRes_GZI_Psionic_Focus_missing.png</ImageSource>
445+
</ControlTemplate.Resources>
446+
<ContentPresenter ContentTemplate="{StaticResource ActionResources.ActionGroup.ActionPoint}"/>
447+
</ControlTemplate>
448+
439449
<!-- EDIT HERE -->
440450
</ResourceDictionary>

ImprovedUI/Public/Game/GUI/Library/IUI_ActionResourceTemplates_c.xaml

+18
Original file line numberDiff line numberDiff line change
@@ -595,6 +595,15 @@
595595
<Setter TargetName="LevelImage" Property="Width" Value="50"/>
596596
<Setter TargetName="LevelImage" Property="Stretch" Value="Fill"/>
597597
</DataTrigger>
598+
599+
<DataTrigger Binding="{Binding ActionResource.TypeId}" Value="GZI_Psionic_Focus">
600+
<Setter TargetName="ResourcePoints" Property="Visibility" Value="Collapsed"/>
601+
<Setter TargetName="ResourcePointsStack" Property="Margin" Value="22,0,22,0"/>
602+
<Setter TargetName="ResourceAmount" Property="Visibility" Value="Visible"/>
603+
<Setter TargetName="LevelImage" Property="Visibility" Value="Visible"/>
604+
<Setter TargetName="LevelImage" Property="Margin" Value="-10,0,-10,0"/>
605+
<Setter TargetName="LevelImage" Property="Source" Value="pack://application:,,,/GustavNoesisGUI;component/Assets/FollowersOfZerthimon/ActionResources_c/Icons/c_ico_classRes_GZI_Psionic_Focus_d.png"/>
606+
</DataTrigger>
598607
<!-- EDIT HERE -->
599608

600609
<!-- Please leave the below alone -->
@@ -1091,6 +1100,15 @@
10911100
</Setter>
10921101
<Setter TargetName="ResourceImage" Property="Width" Value="50"/>
10931102
</DataTrigger>
1103+
1104+
<DataTrigger Binding="{Binding TypeId}" Value="GZI_Psionic_Focus">
1105+
<Setter TargetName="ResourceImage" Property="Fill">
1106+
<Setter.Value>
1107+
<ImageBrush ImageSource="pack://application:,,,/GustavNoesisGUI;component/Assets/FollowersOfZerthimon/ActionResources_c/Icons/c_ico_classRes_GZI_Psionic_Focus_d.png" Stretch="Uniform"/>
1108+
</Setter.Value>
1109+
</Setter>
1110+
<Setter TargetName="ResourceImage" Property="Width" Value="50"/>
1111+
</DataTrigger>
10941112
<!-- EDIT HERE -->
10951113

10961114

0 commit comments

Comments
 (0)