public void LoadMusic(uint sound_id, EventScript.ArgType argtype) { MAP.ClearAllPoint(); PlaySappyButton.Tag = sound_id; this.MusicName.Text = SongTableForm.GetSongName(sound_id); string errormessage = ""; if (argtype == EventScript.ArgType.SOUND) { errormessage = SongTableForm.GetErrorMessage(sound_id, "SFX"); } else if (argtype == EventScript.ArgType.MAPMUSIC) { errormessage = SongTableForm.GetErrorMessage(sound_id, "MAP"); } this.MusicName.ErrorMessage = errormessage; int width = 300; int height = 100; this.Tab.Width = width; this.Tab.Height = height; this.MAP.Width = width; this.MAP.Height = height; Tab.SelectedIndex = 2; this.Width = width; this.Height = height; }
public void JumpTo(EventScript.ArgType argtype, uint value) { B40.Value = value & 0xff; B41.Value = (value >> 8) & 0xff; string dataname; if (argtype == EventScript.ArgType.DISABLEOPTIONS) { this.MESSAGE.Text = R._("チェックをつけたメニューを無効にします。"); dataname = "DISABLEOPTIONS_checkbox_"; } else if (argtype == EventScript.ArgType.DISABLEWEAPONS) { this.MESSAGE.Text = R._("チェックをつけたメニューを無効にします。"); dataname = "DISABLEWEAPONS_checkbox_"; } else if (argtype == EventScript.ArgType.IGNORE_KEYS) { this.MESSAGE.Text = R._("チェックをつけたキーを無効にします。"); dataname = "IGNORE_KEYS_checkbox_"; } else { return; } List <Control> controls = InputFormRef.GetAllControls(this); X_Tooltip = InputFormRef.GetToolTip <UshortBitFlagForm>(); InputFormRef.LoadCheckboxesResource(dataname, controls, X_Tooltip, "", "L_40_BIT_", "L_41_BIT_", "L_42_BIT_", "L_43_BIT_"); }
public void JumpTo(EventScript.ArgType argtype, uint value) { B40.Value = value & 0xff; B41.Value = (value >> 8) & 0xff; B42.Value = (value >> 16) & 0xff; B43.Value = (value >> 24) & 0xff; string dataname; if (argtype == EventScript.ArgType.RAM_UNIT_STATE) { this.Text = "RAM_UNIT_STATE"; this.MESSAGE.Text = R._("RAM上のユニットの特性を指定してください。"); dataname = "ramunit_state_checkbox_"; } else if (argtype == EventScript.ArgType.UNITCLASSABILITY) { this.Text = "UNITCLASSABILITY"; this.MESSAGE.Text = R._("チェックをつけた属性を利用します。"); dataname = "unitclass_checkbox_"; } else { return; } List <Control> controls = InputFormRef.GetAllControls(this); X_Tooltip = InputFormRef.GetToolTip <UwordBitFlagForm>(); InputFormRef.LoadCheckboxesResource(dataname, controls, X_Tooltip, "", "L_40_BIT_", "L_41_BIT_", "L_42_BIT_", "L_43_BIT_"); }
public void JumpTo(EventScript.ArgType argtype, uint value) { B40.Value = value & 0xff; string dataname; if (argtype == EventScript.ArgType.AOECONFIG) { this.Text = "AOECONFIG"; this.MESSAGE.Text = R._("範囲攻撃の攻撃タイプを設定します。"); dataname = "AOECONFIG_checkbox_"; } else if (argtype == EventScript.ArgType.CALLMENUCONFIG) { this.Text = "CALLMENUCONFIG"; this.MESSAGE.Text = R._("詳細設定"); dataname = "CALLMENUCONFIG_checkbox_"; } else { return; } List <Control> controls = InputFormRef.GetAllControls(this); X_Tooltip = InputFormRef.GetToolTip <UbyteBitFlagForm>(); InputFormRef.LoadCheckboxesResource(dataname, controls, X_Tooltip, "", "L_40_BIT_", "L_41_BIT_", "L_42_BIT_", "L_43_BIT_"); }