Files
UnrealEngineUWP/Engine/Source/Runtime/EngineSettings/Classes/ConsoleSettings.h
Martin Mittring 826193d8a3 sort AutoComplte entries in game console as it is sorted in editor UI
[CL 2498851 by Martin Mittring in Main branch]
2015-04-01 14:00:33 -04:00

51 lines
1.3 KiB
C++

// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
#pragma once
#include "ConsoleSettings.generated.h"
/**
* Structure for auto-complete commands and their descriptions.
*/
USTRUCT()
struct FAutoCompleteCommand
{
GENERATED_USTRUCT_BODY()
UPROPERTY(config, EditAnywhere, Category=Command)
FString Command;
UPROPERTY(config, EditAnywhere, Category=Command)
FString Desc;
bool operator<(const FAutoCompleteCommand& rhs) const
{
// sort them in opposite order for game console UI rendering (bottom up)
return Command >= rhs.Command;
}
};
/**
* Implements the settings for the UConsole class.
*/
UCLASS(config=Input, defaultconfig)
class ENGINESETTINGS_API UConsoleSettings
: public UObject
{
GENERATED_UCLASS_BODY()
/** Visible Console stuff */
UPROPERTY(globalconfig, EditAnywhere, Category=General)
int32 MaxScrollbackSize;
/** Manual list of auto-complete commands and info specified in BaseInput.ini */
UPROPERTY(config, EditAnywhere, Category=AutoComplete)
TArray<struct FAutoCompleteCommand> ManualAutoCompleteList;
/** List of relative paths (e.g. Content/Maps) to search for map names for auto-complete usage. Specified in BaseInput.ini. */
UPROPERTY(config, EditAnywhere, Category=AutoComplete)
TArray<FString> AutoCompleteMapPaths;
};