示例#1
0
 void btnEditorOK_Click(object sender, SdlDotNet.Widgets.MouseButtonEventArgs e)
 {
     Emotions.Emotion emoticonToSend = new Emotions.Emotion();
     emoticonToSend.Command = txtCommand.Text;
     emoticonToSend.Pic     = hsbENum.Value;
     Messenger.SendSaveEmotion(itemNum, emoticonToSend);
     pnlEmoteEditor.Visible = false;
     pnlEmoteList.Visible   = true;
     this.Size = new System.Drawing.Size(pnlEmoteList.Width, pnlEmoteList.Height);
 }
示例#2
0
        public void DisplayEmotionData()
        {
            // First, get the emote instance based on the stored emote index
            Emotions.Emotion emote = Emotions.EmotionHelper.Emotions[itemNum];
            // Update the widgets with the emote data
            txtCommand.Text = emote.Command;
            //picEmote.Image = Tools.CropImage(Logic.Graphics.GraphicsManager.Emoticons, new Rectangle(0, emote.Pic * 32, 32, 32));
            hsbENum.Value = emote.Pic;

            pnlEmoteEditor.Visible = true;
            this.Size = new System.Drawing.Size(pnlEmoteEditor.Width, pnlEmoteEditor.Height);
        }
示例#3
0
 void btnEditorOK_Click(object sender, SdlDotNet.Widgets.MouseButtonEventArgs e)
 {
     Emotions.Emotion emoticonToSend = new Emotions.Emotion();
     emoticonToSend.Command = txtCommand.Text;
     emoticonToSend.Pic = hsbENum.Value;
     Messenger.SendSaveEmotion(itemNum, emoticonToSend);
     pnlEmoteEditor.Visible = false;
     pnlEmoteList.Visible = true;
     this.Size = new System.Drawing.Size(pnlEmoteList.Width, pnlEmoteList.Height);
 }