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

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

            ShowScreenAt(GetMapPosition());

            DisplaySelectedItem();
        }
コード例 #3
0
ファイル: ItemRowControl.cs プロジェクト: snarfblam/editroid
 public void ReloadImage()
 {
     Image = ItemEditTool.GetEditTool(this.ItemData.Items[0]).GetImage(this.ItemData.Items[0]);
 }