Esempio n. 1
0
        public void OptItem_CheckedChanged(object sender, EventArgs e)
        {
            E_Editors.ClearAttributeDialogue();
            pnlAttributes.Visible = true;
            fraMapItem.Visible    = true;

            scrlMapItem.Maximum = Constants.MAX_ITEMS;
            scrlMapItem.Value   = 1;
            lblMapItem.Text     = Types.Item[scrlMapItem.Value].Name.Trim() + " x" + System.Convert.ToString(scrlMapItemValue.Value);
            E_Graphics.EditorMap_DrawMapItem();
        }
Esempio n. 2
0
        public void ScrlMapItem_Scroll(object sender, ScrollEventArgs e)
        {
            if (Types.Item[scrlMapItem.Value].Type == (byte)Enums.ItemType.Currency || Types.Item[scrlMapItem.Value].Stackable == 1)
            {
                scrlMapItemValue.Enabled = true;
            }
            else
            {
                scrlMapItemValue.Value   = 1;
                scrlMapItemValue.Enabled = false;
            }

            E_Graphics.EditorMap_DrawMapItem();
            lblMapItem.Text = "Item: " + System.Convert.ToString(scrlMapItem.Value) + ". " + Types.Item[scrlMapItem.Value].Name.Trim() + " x" + System.Convert.ToString(scrlMapItemValue.Value);
        }