Ejemplo n.º 1
0
        /// <summary>
        /// 現在の属性をリセットする
        /// </summary>
        private void toolItemResetAttr_Click(object sender, EventArgs e)
        {
            BaseWorldExAttrType attrType = (BaseWorldExAttrType)attrPropertyGrid.SelectedObject;

            attrType.ResetAttr();
            attrPropertyGrid.Refresh();
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 現在のオブジェクト情報をすべてリセットする
        /// </summary>
        private void toolItemResetAll_Click(object sender, EventArgs e)
        {
            GlobalStatus.KrkrProc.Kill();
            BaseWorldExAttrType attrType = (BaseWorldExAttrType)attrPropertyGrid.SelectedObject;

            attrType.ResetAll();
            setTargetBox(toolItemTargetSelectBox.SelectedIndex);
            attrPropertyGrid.Refresh();
        }
Ejemplo n.º 3
0
        /// <summary>
        /// 現在選択しているプロパティをグローバルにセットし直す
        /// </summary>
        private void setGlobalFromSelectedProperty()
        {
            BaseWorldExAttrType attrType = (BaseWorldExAttrType)toolItemPreviewTargetComboBox.SelectedItem;

            if (attrType is CharWorldExAttrType)
            {
                GlobalStatus.WorldExPreview.CharObject = (CharWorldExAttrType)attrType;
            }
            else if (attrType is EventWorldExAttrType)
            {
                GlobalStatus.WorldExPreview.EventObject = (EventWorldExAttrType)attrType;
            }
            else if (attrType is StageWorldExAttrType)
            {
                GlobalStatus.WorldExPreview.StageObject = (StageWorldExAttrType)attrType;
            }
        }
Ejemplo n.º 4
0
        /// <summary>
        /// 現在選択しているプロパティをグローバルにセットし直す
        /// </summary>
        private void setGlobalFromSelectedProperty()
        {
            BaseWorldExAttrType attrType = (BaseWorldExAttrType)attrPropertyGrid.SelectedObject;

            if (attrType is CharWorldExAttrType)
            {
                GlobalStatus.WorldExPreview.CharObject = (CharWorldExAttrType)attrType;
            }
            else if (attrType is EventWorldExAttrType)
            {
                GlobalStatus.WorldExPreview.EventObject = (EventWorldExAttrType)attrType;
            }
            else if (attrType is StageWorldExAttrType)
            {
                GlobalStatus.WorldExPreview.StageObject = (StageWorldExAttrType)attrType;
            }
        }
Ejemplo n.º 5
0
        /// <summary>
        /// アクション名を現在選択しているオブジェクトに対してセットする
        /// </summary>
        /// <param name="actionName"></param>
        private void setGlobalActionName(string actionName)
        {
            //現在選択しているオブジェクトにアクション名をセットする
            BaseWorldExAttrType attrType = (BaseWorldExAttrType)toolItemPreviewTargetComboBox.SelectedItem;

            attrType.Action = actionName;

            //グローバルにセットし直す
            if (attrType is CharWorldExAttrType)
            {
                GlobalStatus.WorldExPreview.CharObject = (CharWorldExAttrType)attrType;
            }
            else if (attrType is EventWorldExAttrType)
            {
                GlobalStatus.WorldExPreview.EventObject = (EventWorldExAttrType)attrType;
            }
            else if (attrType is StageWorldExAttrType)
            {
                GlobalStatus.WorldExPreview.StageObject = (StageWorldExAttrType)attrType;
            }
        }
Ejemplo n.º 6
0
        /// <summary>
        /// プレビューするターゲットオブジェクトを選択する
        /// </summary>
        private void toolItemPreviewTargetRefButton_Click(object sender, EventArgs e)
        {
            BaseWorldExAttrType attrType = (BaseWorldExAttrType)toolItemPreviewTargetComboBox.SelectedItem;

            if (attrType is CharWorldExAttrType)
            {
                if (GlobalStatus.FormManager.WorldExCharSelectDialog.ShowDialog() == DialogResult.OK)
                {
                    attrType.Name = GlobalStatus.FormManager.WorldExCharSelectDialog.SelectedText;
                    setGlobalFromSelectedProperty();
                    setTargetPreviewComboBox(toolItemPreviewTargetComboBox.SelectedIndex);
                }
            }
            else
            {
                if (attrType is EventWorldExAttrType)
                {
                    GlobalStatus.FormManager.WorldExObjectSelectDialog.SetMode(WorldExObjectSelectDialog.Mode.Event);
                }
                else if (attrType is StageWorldExAttrType)
                {
                    GlobalStatus.FormManager.WorldExObjectSelectDialog.SetMode(WorldExObjectSelectDialog.Mode.Stage);
                }
                else
                {
                    return;                     //何もできない
                }

                if (GlobalStatus.FormManager.WorldExObjectSelectDialog.ShowDialog() == DialogResult.OK)
                {
                    attrType.Name = GlobalStatus.FormManager.WorldExObjectSelectDialog.SelectedText;
                    setGlobalFromSelectedProperty();
                    setTargetPreviewComboBox(toolItemPreviewTargetComboBox.SelectedIndex);
                }
            }
        }
Ejemplo n.º 7
0
 /// <summary>
 /// 指定したオブジェクトのKAGタグを返す(タグ記号付き)
 /// </summary>
 /// <param name="obj">KAGタグを取得するオブジェクト</param>
 /// <returns>KAGタグ(タグ記号付き)</returns>
 public string GetKagTagAttr(BaseWorldExAttrType obj)
 {
     return(String.Format("@{0} {1}", obj.Name, obj.ToKagTagAttr()));
 }