Skip to content

Commit

Permalink
[IMGUIpatcher] Fix referencing the wrong Debug class
Browse files Browse the repository at this point in the history
  • Loading branch information
ManlyMarco committed Nov 28, 2023
1 parent f1647c1 commit 9593dca
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/IMGUIModule.Il2Cpp.CoreCLR.Patcher/Replacements/GUI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public static int DoButtonGrid(Rect position, int selected, Il2CppReferenceArray
return selected;
if (itemsPerRow <= 0)
{
Debug.LogWarning("You are trying to create a SelectionGrid with zero or less elements to be displayed in the horizontal direction. Set itemsPerRow to a positive value.");
UnityEngine.Debug.LogWarning("You are trying to create a SelectionGrid with zero or less elements to be displayed in the horizontal direction. Set itemsPerRow to a positive value.");
return selected;
}
if (contentsEnabled != null && contentsEnabled.Length != contentsLength)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,16 @@ public GUILayoutGroup(IntPtr pointer) : base(pointer) { }
int count = entries.Count;
if (cursor <= count)
return entries[cursor - 1].rect;
Debug.LogError(string.Concat(
"Getting control ",
cursor,
"'s position in a group with only ",
count,
" controls when doing ",
Event.current.type));
UnityEngine.Debug.LogError(string.Concat(
"Getting control ",
cursor,
"'s position in a group with only ",
count,
" controls when doing ",
Event.current.type));
}
else
Debug.LogError("You cannot call GetLast immediately after beginning a group.");
UnityEngine.Debug.LogError("You cannot call GetLast immediately after beginning a group.");
return kDummyRect;
}
}
Expand Down

0 comments on commit 9593dca

Please sign in to comment.