void listbox_ItemSelect(object sender, MyGuiControlListboxItemEventArgs eventArgs) { var key = eventArgs.Key; if (key < 0) { MyRender.OverrideVoxelMaterial = null; } else { MyRender.OverrideVoxelMaterial = (MyMwcVoxelMaterialsEnum)key; } }
private void OnDrag(object sender, MyGuiControlListboxItemEventArgs eventArgs) { if (!m_isTransferingInProgress) { StartDragging(MyDropHandleType.LeftMousePressed, (MyGuiControlListbox)sender, eventArgs.RowIndex, eventArgs.ItemIndex); } }
private void OnShipItemDoubleClick(object sender, MyGuiControlListboxItemEventArgs eventArgs) { MoveItemBetweenListboxes(m_shipInventoryListBox, m_otherSideInventoryListBox, false, m_inventoryScreenType == MyGuiScreenInventoryType.GodEditor); }
private void OnItemClick(object sender, MyGuiControlListboxItemEventArgs eventArgs) { //StartDraging(MyDragAndDropType.LeftMouseClick, sender, eventArgs); }
private void OnDoubleClick(object sender, MyGuiControlListboxItemEventArgs eventArgs) { OnInventoryClick(null); }
public void OnItemDoubleClick(object sender, MyGuiControlListboxItemEventArgs eventArgs) { OnOkClick(null); }
void OnListboxItemDoubleClick(object sender, MyGuiControlListboxItemEventArgs eventArgs) { LoadCheckpoint(); }
void OnGamesItemSelect(object sender, MyGuiControlListboxItemEventArgs eventArgs) { if (eventArgs.RowIndex == 0) { //m_selectColumn = eventArgs.ItemIndex; //order items if (m_gameTableHeaders[eventArgs.ItemIndex] == m_orderByHeader) { m_orderAsc = !m_orderAsc; } else { m_orderAsc = true; m_orderByHeader = m_gameTableHeaders[eventArgs.ItemIndex]; } OrderGames(); RefreshGameList(); } else { m_selectedGameIndex = eventArgs.RowIndex - 1; m_selectRow = eventArgs.RowIndex; } }
void GameListOnItemDoubleClick(object sender, MyGuiControlListboxItemEventArgs eventArgs) { if (eventArgs.RowIndex > 0) { TryJoinGame(); } }
private void ListboxItemDrag(object sender, MyGuiControlListboxItemEventArgs eventArgs) { MyGuiControlListbox senderListbox = (MyGuiControlListbox)sender; MyDragAndDropInfo dragAndDropInfo = new MyDragAndDropInfo(); dragAndDropInfo.ItemIndex = eventArgs.ItemIndex; dragAndDropInfo.RowIndex = eventArgs.RowIndex; dragAndDropInfo.Listbox = senderListbox; MyGuiControlListboxItem listBoxItem; if (senderListbox == m_allItemsInventoryListbox) { listBoxItem = CreateCopy(senderListbox.GetItem(eventArgs.Key)); } else { listBoxItem = senderListbox.GetItem(eventArgs.Key); senderListbox.RemoveItem(eventArgs.Key, false); } m_dragAndDrop.StartDragging(MyDropHandleType.LeftMousePressed, listBoxItem, dragAndDropInfo); }
private void ListboxItemDoubleClick(object sender, MyGuiControlListboxItemEventArgs eventArgs) { MyGuiControlListbox senderListbox = (MyGuiControlListbox)sender; if (senderListbox == m_allItemsInventoryListbox) { MyGuiControlListboxItem listBoxItem = CreateCopy(m_allItemsInventoryListbox.GetItem(eventArgs.Key)); MoveItemToListbox(m_entityInventoryListbox, listBoxItem); } else { m_entityInventoryListbox.RemoveItem(eventArgs.Key, false); RemoveCopy(eventArgs.Key); } }
private void m_listbox_ItemDoubleClick(object sender, MyGuiControlListboxItemEventArgs eventArgs) { MyEditorGizmo.ClearSelection(); MyEntity entityToSelect = MyEntities.GetEntityById(new MyEntityIdentifier((uint)eventArgs.Key)); MyEditorGizmo.AddEntityToSelection(entityToSelect); }