299 {
300 super.SetLastActive();
302 EntityAI item_in_hands = player.GetHumanInventory().GetEntityInHands();
303
304 if( item_in_hands )
305 {
306 if ( m_ActiveIndex == 0)
307 {
308 if( m_MainWidget.FindAnyWidget( "Cursor" ) )
309 {
310 m_MainWidget.FindAnyWidget( "Cursor" ).Show( true );
311 }
312
314 GetMainWidget().GetScreenPos(
x,
y );
315 PrepareOwnedTooltip( item_in_hands,
x,
y );
316 }
317 }
318 else
319 {
320 m_MainWidget.FindAnyWidget( "hands_preview_root" ).SetAlpha( 0.85 );
321 }
322 }
proto native CGame GetGame()