8
8
<ls : UIWidget .ContentTemplate>
9
9
<DataTemplate DataType =" {x:Type ls:Widget}" >
10
10
<DataTemplate .Resources>
11
- <SolidColorBrush x : Key =" GreenScreen" Color =" #00B140" />
12
- <SolidColorBrush x : Key =" BlueScreen" Color =" #150DF7" />
11
+ <!-- MOD START - Custom animation -->
13
12
<Storyboard x : Key =" IUIScanningAnim" AutoReverse =" True" >
14
13
<DoubleAnimation Storyboard.TargetName=" SpyglassBorder" Storyboard.TargetProperty=" Opacity" To =" 0.1" Duration =" 0:0:1" />
15
14
</Storyboard >
16
- <Storyboard x : Key =" IUIIdleAnim" AutoReverse = " True " >
15
+ <Storyboard x : Key =" IUIIdleAnim" >
17
16
<DoubleAnimation Storyboard.TargetName=" SpyglassBorder" Storyboard.TargetProperty=" Opacity" To =" 1" Duration =" 0:0:0.1" />
18
17
</Storyboard >
18
+ <!-- MOD END -->
19
19
<DataTemplate x : Key =" CommonTooltipTemplate" >
20
20
<Canvas >
21
21
<b : Interaction .Triggers>
85
85
</DataTemplate .Resources>
86
86
87
87
<Grid >
88
+ <!-- MOD START - show all items auto re-toggle -->
88
89
<!-- Detects mouse movement, if there are no world items listed -->
89
90
<Control x : Name =" WTCMouseInputChecker" Visibility =" Collapsed" Opacity =" 1.0" >
90
91
<Control .Template>
91
92
<ControlTemplate TargetType =" Control" >
92
- <Border Width =" 3840" Height =" 2160" VerticalAlignment =" Center" HorizontalAlignment =" Center" Background =" {StaticResource GreenScreen} " />
93
+ <Border Width =" 3840" Height =" 2160" VerticalAlignment =" Center" HorizontalAlignment =" Center" Background =" Transparent " />
93
94
</ControlTemplate >
94
95
</Control .Template>
95
96
<b : Interaction .Triggers>
96
- <b : EventTrigger EventName =" MouseMove " >
97
+ <b : EventTrigger EventName =" MouseEnter " >
97
98
<b : InvokeCommandAction Command =" {Binding SetShowWorldTooltipsCommand}" />
98
99
<b : ChangePropertyAction TargetName =" WTCMouseInputChecker" PropertyName =" Opacity" Value =" 0.5" />
99
100
</b : EventTrigger >
133
134
134
135
<!-- Indicates if "Show all items" is turned on, and scanning when no entries are showing -->
135
136
<Grid x : Name =" SpyglassHolder" Visibility =" Collapsed" Margin =" 20,0,0,0" HorizontalAlignment =" Left" VerticalAlignment =" Bottom" >
136
- <Border x : Name =" SpyglassBorder" Height =" 120" Width =" 120" Background =" {StaticResource BlueScreen} " Opacity =" 1" >
137
+ <Border x : Name =" SpyglassBorder" Height =" 120" Width =" 120" Background =" Transparent " Opacity =" 1" >
137
138
<Image x : Name =" IconSpyglass" Source =" pack://application:,,,/GustavNoesisGUI;component/Assets/HUD/ico_spyglass.png" Height =" 120" Width =" 120" />
138
139
</Border >
139
140
<b : Interaction .Triggers>
186
187
</Grid >
187
188
<DataTemplate .Triggers>
188
189
<!-- Enables/disables the mouse or zero item checks in place -->
190
+ <DataTrigger Binding =" {Binding ElementName=SpyglassHolder, Path=IsVisible}" Value =" False" >
191
+ <Setter TargetName =" WTCMouseInputChecker" Property =" Visibility" Value =" Collapsed" />
192
+ </DataTrigger >
189
193
<MultiDataTrigger >
190
194
<MultiDataTrigger .Conditions>
191
- <Condition Binding =" {Binding ElementName=WorldTooltipContainer, Path=HasItems}" Value =" False" />
192
195
<Condition Binding =" {Binding ElementName=SpyglassHolder, Path=IsVisible}" Value =" True" />
196
+ <Condition Binding =" {Binding ElementName=WorldTooltipContainer, Path=HasItems}" Value =" False" />
193
197
<Condition Binding =" {Binding ElementName=WTCMouseInputChecker, Path=Opacity}" Value =" 0.5" />
194
198
</MultiDataTrigger .Conditions>
195
199
<MultiDataTrigger .Setters>
199
203
</MultiDataTrigger >
200
204
<MultiDataTrigger >
201
205
<MultiDataTrigger .Conditions>
202
- <Condition Binding =" {Binding ElementName=WorldTooltipContainer, Path=HasItems}" Value =" False" />
203
206
<Condition Binding =" {Binding ElementName=SpyglassHolder, Path=IsVisible}" Value =" True" />
207
+ <Condition Binding =" {Binding ElementName=WorldTooltipContainer, Path=HasItems}" Value =" False" />
204
208
<Condition Binding =" {Binding ElementName=WTCMouseInputChecker, Path=Opacity}" Value =" 1.0" />
205
209
</MultiDataTrigger .Conditions>
206
210
<Setter TargetName =" WTCMouseInputChecker" Property =" Visibility" Value =" Visible" />
218
222
</DataTemplate .Triggers>
219
223
</DataTemplate >
220
224
</ls : UIWidget .ContentTemplate>
225
+ <!-- MOD END -->
221
226
</ls : UIWidget >
0 commit comments