From 57b791ea2afde6092fe5e328c331715e95ffe1cb Mon Sep 17 00:00:00 2001 From: David Cernat Date: Fri, 11 May 2018 00:46:24 +0300 Subject: [PATCH] [Client] Show selected object's refNum & mpNum in console window title This allows for much easier debugging of all objects and actors. --- apps/openmw/mwgui/console.cpp | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/apps/openmw/mwgui/console.cpp b/apps/openmw/mwgui/console.cpp index b5937ce80..f34a5d3e0 100644 --- a/apps/openmw/mwgui/console.cpp +++ b/apps/openmw/mwgui/console.cpp @@ -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.