forked from mirror/openmw-tes3mp
[Client] Show selected object's refNum & mpNum in console window title
This allows for much easier debugging of all objects and actors.
This commit is contained in:
parent
12727b66ea
commit
57b791ea2a
1 changed files with 12 additions and 1 deletions
|
@ -426,7 +426,18 @@ namespace MWGui
|
|||
}
|
||||
else
|
||||
{
|
||||
setTitle("#{sConsoleTitle} (" + object.getCellRef().getRefId() + ")");
|
||||
/*
|
||||
Start of tes3mp change (major)
|
||||
|
||||
Display the selected object's refNumIndex and mpNum alongside its refId in the
|
||||
title of the console window, for easier debugging of almost everything
|
||||
*/
|
||||
setTitle("#{sConsoleTitle} (" + object.getCellRef().getRefId() + ", " +
|
||||
std::to_string(object.getCellRef().getRefNum().mIndex) + ", " +
|
||||
std::to_string(object.getCellRef().getMpNum()) + ")");
|
||||
/*
|
||||
End of tes3mp change (major)
|
||||
*/
|
||||
mPtr = object;
|
||||
}
|
||||
// User clicked on an object. Restore focus to the console command line.
|
||||
|
|
Loading…
Reference in a new issue