269 {
270 super.SetActive(active);
272 EntityAI item_in_hands = player.GetHumanInventory().GetEntityInHands();
273
274 if( item_in_hands )
275 {
276 if( m_MainWidget.FindAnyWidget( "Cursor" ) )
277 {
278 m_MainWidget.FindAnyWidget( "Cursor" ).Show( active );
279 }
280
281 if( active )
282 {
284 GetMainWidget().GetScreenPos(
x,
y );
285 PrepareOwnedTooltip( item_in_hands, -1,
y );
286 }
287 }
288 else
289 {
290 if (active)
291 m_MainWidget.FindAnyWidget( "hands_preview_root" ).SetAlpha( 0.85 );
292 else
293 m_MainWidget.FindAnyWidget( "hands_preview_root" ).SetAlpha( 0.7 );
294 }
295 }
proto native CGame GetGame()