private void DrawSlot() { GUILayout.BeginHorizontal(new GUILayoutOption[0]); GUILayout.Label("スロット:", UIParams.Instance.lStyle, new GUILayoutOption[0]); GUILayout.FlexibleSpace(); this.slotSelectUI.DrawCombo(); bool flag = CommonUIData.slotNo == -2 || !BackUpData.GetMaidSlotDataExist(CommonUIData.maid, CommonUIData.slotNo); if (flag) { GUI.enabled = false; } bool flag2 = GUILayout.Button("R", UIParams.Instance.bStyle, new GUILayoutOption[0]); if (flag2) { BackUpData.RestoreSlot(CommonUIData.maid, CommonUIData.slotNo); BackUpData.Refresh(); } GUI.enabled = true; GUILayout.EndHorizontal(); UIUtil.BeginIndentArea(); this.DrawObject(); UIUtil.EndoIndentArea(); }
private void DrawObject() { GUILayout.BeginHorizontal(new GUILayoutOption[0]); bool flag = CommonUIData.obj; if (flag) { string name = CommonUIData.obj.name; } GUILayout.Label("オブジェクト:", UIParams.Instance.lStyle, new GUILayoutOption[0]); GUILayout.FlexibleSpace(); this.objectSelectUI.DrawCombo(); bool flag2 = !CommonUIData.obj || !BackUpData.GetObjectDataExist(CommonUIData.obj); if (flag2) { GUI.enabled = false; } bool flag3 = GUILayout.Button("R", UIParams.Instance.bStyle, new GUILayoutOption[0]); if (flag3) { BackUpData.RestoreObject(CommonUIData.obj); BackUpData.Refresh(); } GUI.enabled = true; GUILayout.EndHorizontal(); UIUtil.BeginIndentArea(); this.DrawImportExport(); UIUtil.EndoIndentArea(); UIUtil.BeginIndentArea(); this.DrawBone(); UIUtil.EndoIndentArea(); }
private void DrawBone() { GUILayout.BeginHorizontal(new GUILayoutOption[0]); string str = "未選択"; bool flag = CommonUIData.bone; if (flag) { str = CommonUIData.bone.name; } GUILayout.Label("ボーン:" + str, UIParams.Instance.lStyle, new GUILayoutOption[0]); GUILayout.FlexibleSpace(); bool flag2 = !CommonUIData.bone || !BackUpData.GetMaidBoneDataExist(CommonUIData.maid, CommonUIData.slotNo, CommonUIData.obj, CommonUIData.bone); if (flag2) { GUI.enabled = false; } bool flag3 = GUILayout.Button("R", UIParams.Instance.bStyle, new GUILayoutOption[0]); if (flag3) { BackUpData.RestoreBone(CommonUIData.maid, CommonUIData.slotNo, CommonUIData.obj, CommonUIData.bone); BackUpData.Refresh(); } GUI.enabled = true; GUILayout.EndHorizontal(); UIUtil.BeginIndentArea(); this.DrawTransform(); UIUtil.EndoIndentArea(); }
private void DrawNarrowing() { GUILayout.Label("絞り込み", UIParams.Instance.lStyle, new GUILayoutOption[0]); UIUtil.BeginIndentArea(); this.DrawCategoryNarrow(); this.DrawObjectNameNarrow(); UIUtil.EndoIndentArea(); }
public void Draw() { GUILayout.Label("設定", UIParams.Instance.lStyle, new GUILayoutOption[0]); UIUtil.BeginIndentArea(); this.DrawBoneDisplay(); this.DrawCoordinateType(); this.DrawGizmoType(); UIUtil.EndoIndentArea(); }
private void DrawPresetFile() { GUILayout.Label("プリセットファイル", UIParams.Instance.lStyle, new GUILayoutOption[0]); UIUtil.BeginIndentArea(); this.DrawNarrowing(); this.DrawFileList(); this.DrawImportButton(); UIUtil.EndoIndentArea(); }
public void Draw() { GUILayout.Label("ボーン表示設定", UIParams.Instance.lStyle, new GUILayoutOption[0]); UIUtil.BeginIndentArea(); this.DrawNormalBoneColorSetting(); this.DrawSelectBoneColorSetting(); this.DrawSelectKeySetting(); this.DrawBodyBoneDisplaySetting(); GUILayout.FlexibleSpace(); this.DrawReturnButton(); UIUtil.EndoIndentArea(); }
public void Draw() { GUILayout.Label("操作", UIParams.Instance.lStyle, new GUILayoutOption[0]); UIUtil.BeginIndentArea(); int targetSelectMode = Setting.targetSelectMode; if (targetSelectMode != 0) { if (targetSelectMode == 1) { this.smoEditUI.Draw(); } } else { this.maidObjectUI.Draw(); } UIUtil.EndoIndentArea(); }
public void Draw() { GUILayout.Label("ギズモ表示設定", UIParams.Instance.lStyle, new GUILayoutOption[0]); UIUtil.BeginIndentArea(); GUILayout.BeginHorizontal(new GUILayoutOption[0]); GUILayout.Label("移動量減少キー", UIParams.Instance.lStyle, new GUILayoutOption[0]); GUILayout.FlexibleSpace(); int num = this.smallCombo.ShowScroll(GUILayout.ExpandHeight(false)); bool flag = this.smallIndex != num; if (flag) { this.smallIndex = num; Setting.gizmoSmallKey = this.keyCodeList[this.smallIndex]; } GUILayout.EndHorizontal(); GUILayout.BeginHorizontal(new GUILayoutOption[0]); GUILayout.Label("移動量増加キー", UIParams.Instance.lStyle, new GUILayoutOption[0]); GUILayout.FlexibleSpace(); int num2 = this.bigCombo.ShowScroll(GUILayout.ExpandHeight(false)); bool flag2 = this.bigIndex != num2; if (flag2) { this.bigIndex = num2; Setting.gizmoBigKey = this.keyCodeList[this.bigIndex]; } GUILayout.EndHorizontal(); GUILayout.FlexibleSpace(); GUILayout.BeginHorizontal(new GUILayoutOption[0]); GUILayout.FlexibleSpace(); bool flag3 = GUILayout.Button("戻る", UIParams.Instance.bStyle, new GUILayoutOption[0]); if (flag3) { Setting.mode = Mode.Edit; Setting.SaveIni(); } GUILayout.EndHorizontal(); UIUtil.EndoIndentArea(); }
public static void BeginIndentArea() { UIUtil.BeginIndentArea(UIUtil.indentWidth); }
public void Draw() { GUILayout.Label("ボーン編集", new GUILayoutOption[0]); UIUtil.BeginIndentArea(); bool flag = CommonUIData.bone; if (flag) { bool maidBoneDataExist = BackUpData.GetMaidBoneDataExist(CommonUIData.maid, CommonUIData.slotNo, CommonUIData.obj, CommonUIData.bone); if (maidBoneDataExist) { GUILayout.BeginHorizontal(new GUILayoutOption[0]); bool flag2 = GUILayout.Button("トランスフォームリセット", UIParams.Instance.bStyle, new GUILayoutOption[0]); if (flag2) { this.ResetTransform(); } GUILayout.FlexibleSpace(); GUILayout.EndHorizontal(); UIUtil.BeginIndentArea(); BackUpBoneData orNullMaidBoneData = BackUpData.GetOrNullMaidBoneData(CommonUIData.maid, CommonUIData.slotNo, CommonUIData.obj, CommonUIData.bone); bool flag3 = orNullMaidBoneData != null; if (flag3) { bool changedPos = orNullMaidBoneData.changedPos; if (changedPos) { GUILayout.BeginHorizontal(new GUILayoutOption[0]); bool flag4 = GUILayout.Button("位置リセット", UIParams.Instance.bStyle, new GUILayoutOption[0]); if (flag4) { this.ResetPosition(); } GUILayout.FlexibleSpace(); GUILayout.EndHorizontal(); } bool changedRot = orNullMaidBoneData.changedRot; if (changedRot) { GUILayout.BeginHorizontal(new GUILayoutOption[0]); bool flag5 = GUILayout.Button("回転リセット", UIParams.Instance.bStyle, new GUILayoutOption[0]); if (flag5) { this.ResetRotation(); } GUILayout.FlexibleSpace(); GUILayout.EndHorizontal(); } bool changedScl = orNullMaidBoneData.changedScl; if (changedScl) { GUILayout.BeginHorizontal(new GUILayoutOption[0]); bool flag6 = GUILayout.Button("拡縮リセット", UIParams.Instance.bStyle, new GUILayoutOption[0]); if (flag6) { this.ResetScale(); } GUILayout.FlexibleSpace(); GUILayout.EndHorizontal(); } } UIUtil.EndoIndentArea(); } } UIUtil.EndoIndentArea(); }