Beispiel #1
0
        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();
            }
        }
Beispiel #2
0
        internal void SelectItem(ItemEntryScreenTile editor)
        {
            SelectedScreen = editor;
            LoadScreen();

            GetPasswordEntry();
            this.editTool = ItemEditTool.GetEditTool(currentRoom);

            ShowScreenAt(GetMapPosition());

            DisplaySelectedItem();
        }
Beispiel #3
0
 public void ReloadImage()
 {
     Image = ItemEditTool.GetEditTool(this.ItemData.Items[0]).GetImage(this.ItemData.Items[0]);
 }