Skip to content
This repository was archived by the owner on May 9, 2023. It is now read-only.

Commit a73e992

Browse files
committed
Remove "Core" namespace, move everything in it up one level
1 parent 3984550 commit a73e992

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+78
-102
lines changed

src/CSConsole/ScriptInteraction.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
using System.Linq;
66
using System.Text;
77
using UnityEngine;
8-
using UnityExplorer.Core.Runtime;
8+
using UnityExplorer.Runtime;
99
using UniverseLib;
1010

1111
namespace UnityExplorer.CSConsole

src/CacheObject/CacheConfigEntry.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
using System.Collections.Generic;
33
using System.Linq;
44
using System.Text;
5-
using UnityExplorer.Core.Config;
5+
using UnityExplorer.Config;
66
using UnityExplorer.CacheObject.Views;
77

88
namespace UnityExplorer.CacheObject

src/CacheObject/CacheMember.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
using System.Reflection;
55
using System.Text;
66
using UnityEngine;
7-
using UnityExplorer.Core.Runtime;
7+
using UnityExplorer.Runtime;
88
using UnityExplorer.CacheObject.Views;
99
using UnityExplorer.Inspectors;
1010
using UniverseLib.UI.Models;

src/CacheObject/CacheObjectBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
using System.Text;
77
using UnityEngine;
88
using UnityEngine.UI;
9-
using UnityExplorer.Core.Runtime;
9+
using UnityExplorer.Runtime;
1010
using UnityExplorer.CacheObject.IValues;
1111
using UnityExplorer.CacheObject.Views;
1212
using UniverseLib.UI.Models;

src/CacheObject/IValues/InteractiveString.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
using System.Text;
66
using UnityEngine;
77
using UnityEngine.UI;
8-
using UnityExplorer.Core.Config;
8+
using UnityExplorer.Config;
99
using UnityExplorer.CacheObject;
1010
using UnityExplorer.UI.Widgets;
1111
using UnityExplorer.UI;

src/CacheObject/Views/CacheMemberCell.cs

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,11 @@ namespace UnityExplorer.CacheObject.Views
1212
{
1313
public class CacheMemberCell : CacheObjectCell
1414
{
15-
//public ReflectionInspector Owner { get; set; }
16-
1715
public CacheMember MemberOccupant => Occupant as CacheMember;
1816

1917
public GameObject EvaluateHolder;
2018
public ButtonRef EvaluateButton;
2119

22-
//public Toggle UpdateToggle;
23-
2420
protected virtual void EvaluateClicked()
2521
{
2622
this.MemberOccupant.OnEvaluateClicked();
@@ -38,16 +34,5 @@ protected override void ConstructEvaluateHolder(GameObject parent)
3834
UIFactory.SetLayoutElement(EvaluateButton.Component.gameObject, minWidth: 100, minHeight: 25);
3935
EvaluateButton.OnClick += EvaluateClicked;
4036
}
41-
42-
//protected override void ConstructUpdateToggle(GameObject parent)
43-
//{
44-
// // Auto-update toggle
45-
//
46-
// var updateToggle = UIFactory.CreateToggle(parent, "AutoUpdate", out UpdateToggle, out Text autoText);
47-
// UIFactory.SetLayoutElement(updateToggle, minHeight: 25, minWidth: 30, flexibleWidth: 0, flexibleHeight: 0);
48-
// GameObject.Destroy(autoText);
49-
// UpdateToggle.isOn = false;
50-
// UpdateToggle.onValueChanged.AddListener((bool val) => { MemberOccupant.AutoUpdateWanted = val; });
51-
//}
5237
}
5338
}

src/CacheObject/Views/CacheObjectCell.cs

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ public void Enable()
4545
public bool SubContentActive => SubContentHolder.activeSelf;
4646

4747
public LayoutElement NameLayout;
48+
public GameObject RightGroupContent;
4849
public LayoutElement RightGroupLayout;
4950

5051
public Text NameLabel;
@@ -136,16 +137,16 @@ public virtual GameObject CreateContent(GameObject parent)
136137

137138
// Right vertical group
138139

139-
var rightGroupHolder = UIFactory.CreateUIObject("RightGroup", horiRow);
140-
UIFactory.SetLayoutGroup<VerticalLayoutGroup>(rightGroupHolder, false, false, true, true, 4, childAlignment: TextAnchor.UpperLeft);
141-
UIFactory.SetLayoutElement(rightGroupHolder, minHeight: 25, minWidth: 200, flexibleWidth: 9999, flexibleHeight: 800);
142-
RightGroupLayout = rightGroupHolder.GetComponent<LayoutElement>();
140+
RightGroupContent = UIFactory.CreateUIObject("RightGroup", horiRow);
141+
UIFactory.SetLayoutGroup<VerticalLayoutGroup>(RightGroupContent, false, false, true, true, 4, childAlignment: TextAnchor.UpperLeft);
142+
UIFactory.SetLayoutElement(RightGroupContent, minHeight: 25, minWidth: 200, flexibleWidth: 9999, flexibleHeight: 800);
143+
RightGroupLayout = RightGroupContent.GetComponent<LayoutElement>();
143144

144-
ConstructEvaluateHolder(rightGroupHolder);
145+
ConstructEvaluateHolder(RightGroupContent);
145146

146147
// Right horizontal group
147148

148-
var rightHoriGroup = UIFactory.CreateUIObject("RightHoriGroup", rightGroupHolder);
149+
var rightHoriGroup = UIFactory.CreateUIObject("RightHoriGroup", RightGroupContent);
149150
UIFactory.SetLayoutGroup<HorizontalLayoutGroup>(rightHoriGroup, false, false, true, true, 4, childAlignment: TextAnchor.UpperLeft);
150151
UIFactory.SetLayoutElement(rightHoriGroup, minHeight: 25, minWidth: 200, flexibleWidth: 9999, flexibleHeight: 800);
151152

src/Core/Config/ConfigElement.cs renamed to src/Config/ConfigElement.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
using System.Linq;
44
using System.Text;
55

6-
namespace UnityExplorer.Core.Config
6+
namespace UnityExplorer.Config
77
{
88
public class ConfigElement<T> : IConfigElement
99
{

src/Core/Config/ConfigHandler.cs renamed to src/Config/ConfigHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
using System.Linq;
44
using System.Text;
55

6-
namespace UnityExplorer.Core.Config
6+
namespace UnityExplorer.Config
77
{
88
public abstract class ConfigHandler
99
{

src/Core/Config/ConfigManager.cs renamed to src/Config/ConfigManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
using UnityEngine;
99
using UnityExplorer.UI;
1010

11-
namespace UnityExplorer.Core.Config
11+
namespace UnityExplorer.Config
1212
{
1313
public static class ConfigManager
1414
{

0 commit comments

Comments
 (0)