@@ -116,7 +116,7 @@ private void _forgetSpellMenuItem_Clicked(Base sender, MouseButtonState argument
116
116
117
117
#region Mouse Events
118
118
119
- void _iconImage_HoverEnter ( Base ? sender , EventArgs ? arguments )
119
+ private void _iconImage_HoverEnter ( Base ? sender , EventArgs ? arguments )
120
120
{
121
121
if ( InputHandler . MouseFocus != null )
122
122
{
@@ -146,7 +146,7 @@ void _iconImage_HoverEnter(Base? sender, EventArgs? arguments)
146
146
_descriptionWindow = new SpellDescriptionWindow ( spellSlots [ SlotIndex ] . Id , _spellWindow . X , _spellWindow . Y ) ;
147
147
}
148
148
149
- void _iconImage_HoverLeave ( Base sender , EventArgs arguments )
149
+ private void _iconImage_HoverLeave ( Base sender , EventArgs arguments )
150
150
{
151
151
_mouseOver = false ;
152
152
_mouseX = - 1 ;
@@ -159,7 +159,7 @@ void _iconImage_HoverLeave(Base sender, EventArgs arguments)
159
159
}
160
160
}
161
161
162
- void _iconImage_Clicked ( Base sender , MouseButtonState arguments )
162
+ private void _iconImage_Clicked ( Base sender , MouseButtonState arguments )
163
163
{
164
164
switch ( arguments . MouseButton )
165
165
{
@@ -221,10 +221,10 @@ public override void Update()
221
221
222
222
if ( Path . GetFileName ( _iconImage . Texture ? . Name ) != spell . Icon )
223
223
{
224
- var spellTex = Globals . ContentManager ? . GetTexture ( TextureType . Spell , spell . Icon ) ;
225
- if ( spellTex != null )
224
+ var spellIconTexture = Globals . ContentManager ? . GetTexture ( TextureType . Spell , spell . Icon ) ;
225
+ if ( spellIconTexture != null )
226
226
{
227
- _iconImage . Texture = spellTex ;
227
+ _iconImage . Texture = spellIconTexture ;
228
228
_iconImage . RenderColor . A = ( byte ) ( _cooldownLabel . IsVisibleInParent ? 100 : 255 ) ;
229
229
_iconImage . IsVisibleInParent = true ;
230
230
}
@@ -237,12 +237,9 @@ public override void Update()
237
237
}
238
238
}
239
239
240
- if ( _descriptionWindow != null )
241
- {
242
- _descriptionWindow . Dispose ( ) ;
243
- _descriptionWindow = null ;
244
- _iconImage_HoverEnter ( null , null ) ;
245
- }
240
+ _descriptionWindow ? . Dispose ( ) ;
241
+ _descriptionWindow = null ;
242
+ _iconImage_HoverEnter ( null , null ) ;
246
243
}
247
244
248
245
if ( ! IsDragging )
0 commit comments