void ShowFloatingControlpanel() { int index = this.Script.SelectedIndex; if (index < 0 || index >= this.ProcsScript.Count) {//一件もない this.ASMTextBox.Text = ""; this.ScriptCodeName.Text = ""; this.CommentTextBox.Text = ""; this.AddressTextBox.Text = ""; OneLineDisassembler(); } else { EventScript.OneCode code = this.ProcsScript[index]; //コードを書く this.ASMTextBox.Text = U.convertByteToStringDump(code.ByteData); this.ScriptCodeName.Text = EventScript.makeCommandComboText(code.Script, false); this.CommentTextBox.Text = code.Comment; this.AddressTextBox.Text = U.ToHexString(EventScript.ConvertSelectedToAddr((uint)this.Address.Value, index, this.ProcsScript)); //Eventをデコードして、引数等を求めなおす. OneLineDisassembler(); } //変更ボタンが光っていたら、それをやめさせる. InputFormRef.WriteButtonToYellow(this.UpdateButton, false); InputFormRef.WriteButtonToYellow(this.NewButton, false); ControlPanel.Show(); }