-
-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
35 changed files
with
991 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#if Forms | ||
using System.Windows.Forms; | ||
|
||
namespace UELib.Core | ||
{ | ||
public partial class UClass | ||
{ | ||
protected override void InitNodes(TreeNode node) | ||
{ | ||
_ParentNode = AddSectionNode(node, nameof(UClass)); | ||
AddSimpleObjectNode(_ParentNode, Within, "Within", Within != null ? Within.GetImageName() : ""); | ||
|
||
var classFlagsNode = AddTextNode(_ParentNode, $"Class Flags:{UnrealMethods.FlagToString(ClassFlags)}"); | ||
classFlagsNode.ToolTipText = UnrealMethods.FlagsListToString( | ||
UnrealMethods.FlagsToList(typeof(Flags.ClassFlags), ClassFlags) | ||
); | ||
|
||
base.InitNodes(_ParentNode); | ||
} | ||
|
||
protected override void AddChildren(TreeNode node) | ||
{ | ||
base.AddChildren(node); | ||
AddObjectListNode(node, "States", States, nameof(UState)); | ||
} | ||
|
||
public override string GetImageName() | ||
{ | ||
if (IsClassInterface()) | ||
{ | ||
return "Interface"; | ||
} | ||
if (IsClassWithin()) | ||
{ | ||
return "UClass-Within"; | ||
} | ||
|
||
return base.GetImageName(); | ||
} | ||
} | ||
} | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#if Forms | ||
using System.Windows.Forms; | ||
|
||
namespace UELib.Core | ||
{ | ||
public partial class UField | ||
{ | ||
protected override void InitNodes(TreeNode node) | ||
{ | ||
_ParentNode = AddSectionNode(node, nameof(UField)); | ||
AddSimpleObjectNode(_ParentNode, Super, "SuperField", Super != null ? Super.GetImageName() : ""); | ||
AddSimpleObjectNode(_ParentNode, NextField, "NextField", NextField != null ? NextField.GetImageName() : ""); | ||
base.InitNodes(_ParentNode); | ||
} | ||
} | ||
} | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
#if Forms | ||
using System.Windows.Forms; | ||
|
||
namespace UELib.Core | ||
{ | ||
public partial class UFunction | ||
{ | ||
protected override void InitNodes(TreeNode node) | ||
{ | ||
node.ToolTipText = FormatHeader(); | ||
_ParentNode = AddSectionNode(node, nameof(UFunction)); | ||
|
||
var funcFlagsNode = AddTextNode(_ParentNode, $"FunctionFlags:{UnrealMethods.FlagToString(FunctionFlags)}"); | ||
funcFlagsNode.ToolTipText = | ||
UnrealMethods.FlagsListToString(UnrealMethods.FlagsToList(typeof(Flags.FunctionFlags), FunctionFlags)); | ||
|
||
if (RepOffset > 0) | ||
{ | ||
AddTextNode(_ParentNode, $"Replication Offset:{RepOffset}"); | ||
} | ||
|
||
base.InitNodes(_ParentNode); | ||
} | ||
|
||
protected override void AddChildren(TreeNode node) | ||
{ | ||
base.AddChildren(node); | ||
AddObjectListNode(node, "Parameters", Params, nameof(UProperty)); | ||
AddObjectListNode(node, "Locals", Locals, nameof(UProperty)); | ||
} | ||
|
||
public override string GetImageName() | ||
{ | ||
var name = string.Empty; | ||
if (HasFunctionFlag(Flags.FunctionFlags.Event)) | ||
{ | ||
name = "Event"; | ||
} | ||
else if (HasFunctionFlag(Flags.FunctionFlags.Delegate)) | ||
{ | ||
name = "Delegate"; | ||
} | ||
else if (HasFunctionFlag(Flags.FunctionFlags.Operator)) | ||
{ | ||
name = "Operator"; | ||
} | ||
|
||
if (name != string.Empty) | ||
{ | ||
if (IsProtected()) | ||
{ | ||
return $"{name}-Protected"; | ||
} | ||
if (IsPrivate()) | ||
{ | ||
return $"{name}-Private"; | ||
} | ||
return name; | ||
} | ||
|
||
return base.GetImageName(); | ||
} | ||
} | ||
} | ||
#endif |
Oops, something went wrong.