[Client] Show selected object's refNum & mpNum in console window title

This allows for much easier debugging of all objects and actors.
0.6.3
David Cernat 7 years ago
parent 12727b66ea
commit 57b791ea2a

@ -426,7 +426,18 @@ namespace MWGui
} }
else 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; mPtr = object;
} }
// User clicked on an object. Restore focus to the console command line. // User clicked on an object. Restore focus to the console command line.

Loading…
Cancel
Save