From 817a146699ff4d43f9508fb1f3e99b348a43bbbc Mon Sep 17 00:00:00 2001 From: Lion Kortlepel Date: Mon, 6 Dec 2021 13:57:40 +0100 Subject: [PATCH] Add state id to lua prompt --- src/TConsole.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/TConsole.cpp b/src/TConsole.cpp index e947d65..7ef2f04 100644 --- a/src/TConsole.cpp +++ b/src/TConsole.cpp @@ -108,12 +108,13 @@ void TConsole::ChangeToLuaConsole(const std::string& LuaStateId) { mIsLuaConsole = true; if (mStateId != mDefaultStateId) { Application::Console().WriteRaw("Entered Lua console for state '" + mStateId + "'. To exit, type `exit()`"); + mCommandline.set_prompt("lua @" + LuaStateId + "> "); } else { Application::Console().WriteRaw("Entered Lua console. To exit, type `exit()`"); + mCommandline.set_prompt("lua> "); } // mCachedRegularHistory = mCommandline.history(); // mCommandline.set_history(mCachedLuaHistory); - mCommandline.set_prompt("lua> "); } }