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