Inline variables.

This commit is contained in:
Matthias Mailänder
2023-04-23 17:49:46 +02:00
committed by Gustas
parent 51bbfc39b0
commit 55ff0ac1f4
2 changed files with 11 additions and 7 deletions

View File

@@ -102,7 +102,7 @@ namespace OpenRA.Mods.Common.Scripting
[Desc("Returns true if this is a shellmap and the player has paused animations.")]
public bool IsPausedShellmap => Context.World.Type == WorldType.Shellmap && gameSettings.PauseShellmap;
[Desc("Returns the value of a `ScriptLobbyDropdown` selected in the game lobby.")]
[Desc("Returns the value of a `" + nameof(ScriptLobbyDropdown) + "` selected in the game lobby.")]
public LuaValue LobbyOption(string id)
{
var option = Context.World.WorldActor.TraitsImplementing<ScriptLobbyDropdown>()
@@ -110,7 +110,7 @@ namespace OpenRA.Mods.Common.Scripting
if (option == null)
{
Log.Write("lua", "A ScriptLobbyDropdown with ID `" + id + "` was not found.");
Log.Write("lua", $"A {nameof(ScriptLobbyDropdown)} with ID `{id}` was not found.");
return null;
}