368 {
370 SlotsIcon icon;
371 w.GetUserData(icon);
372 if (icon)
374
375 if (selectedItem)
376 {
377 switch (button)
378 {
380 #ifdef DIAG_DEVELOPER
382 ShowActionMenu(selectedItem);
383 #endif
384 break;
385
387 InspectItem(selectedItem);
388 break;
389
391 if (
g_Game.IsLeftCtrlDown())
392 {
394 if (controlledPlayer.CanDropEntity(selectedItem))
395 {
396 if (selectedItem.GetTargetQuantityMax() < selectedItem.GetQuantity())
397 selectedItem.SplitIntoStackMaxClient(null, -1);
398 else
399 controlledPlayer.PhysicalPredictiveDropItem(selectedItem);
400
401 ItemManager.GetInstance().SetWidgetDraggable(w, false);
402 }
403 }
404 break;
405 }
406 }
407 }
class GP5GasMask extends MaskBase ItemBase
proto native CGame GetGame()