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); }
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); }