void itemLabel_MouseDown(object sender, MouseEventArgs e) { if (e.Button == MouseButtons.Left) { if (SelectedScreen != null) { SelectedScreen.BackColor = Color.Wheat; } SelectedScreen = sender as ItemEntryScreenTile; SelectedScreen.BackColor = Color.Red; LoadScreen(); SeekToSelection(); GetPasswordEntry(); editTool = ItemEditTool.GetEditTool(currentRoom); ShowScreenAt(GetMapPosition()); DragLabel = true; DragLabelX = e.X / 8; DragLabelY = e.Y / 8; DisplaySelectedItem(); } }
internal void SelectItem(ItemEntryScreenTile editor) { SelectedScreen = editor; LoadScreen(); GetPasswordEntry(); this.editTool = ItemEditTool.GetEditTool(currentRoom); ShowScreenAt(GetMapPosition()); DisplaySelectedItem(); }
public void ReloadImage() { Image = ItemEditTool.GetEditTool(this.ItemData.Items[0]).GetImage(this.ItemData.Items[0]); }