mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2025-07-04 00:36:14 +00:00
Add state id to lua prompt
This commit is contained in:
parent
3cce875fbb
commit
817a146699
@ -108,12 +108,13 @@ void TConsole::ChangeToLuaConsole(const std::string& LuaStateId) {
|
|||||||
mIsLuaConsole = true;
|
mIsLuaConsole = true;
|
||||||
if (mStateId != mDefaultStateId) {
|
if (mStateId != mDefaultStateId) {
|
||||||
Application::Console().WriteRaw("Entered Lua console for state '" + mStateId + "'. To exit, type `exit()`");
|
Application::Console().WriteRaw("Entered Lua console for state '" + mStateId + "'. To exit, type `exit()`");
|
||||||
|
mCommandline.set_prompt("lua @" + LuaStateId + "> ");
|
||||||
} else {
|
} else {
|
||||||
Application::Console().WriteRaw("Entered Lua console. To exit, type `exit()`");
|
Application::Console().WriteRaw("Entered Lua console. To exit, type `exit()`");
|
||||||
|
mCommandline.set_prompt("lua> ");
|
||||||
}
|
}
|
||||||
// mCachedRegularHistory = mCommandline.history();
|
// mCachedRegularHistory = mCommandline.history();
|
||||||
// mCommandline.set_history(mCachedLuaHistory);
|
// mCommandline.set_history(mCachedLuaHistory);
|
||||||
mCommandline.set_prompt("lua> ");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user