Change log category name for UI messages

This commit is contained in:
Steve Streeting 2020-09-17 16:30:38 +01:00
parent 6986921439
commit b7b8fa81ca
5 changed files with 13 additions and 13 deletions

View File

@ -94,6 +94,6 @@ void UMenuBase::EmbedInParent()
ParentStack->MenuContainer->SetContent(this); ParentStack->MenuContainer->SetContent(this);
} }
else else
UE_LOG(LogCustomUI, Error, TEXT("Cannot embed %s in parent, missing container"), *this->GetName()) UE_LOG(LogStevesUI, Error, TEXT("Cannot embed %s in parent, missing container"), *this->GetName())
} }

View File

@ -123,7 +123,7 @@ void UMenuStack::PopMenuIfTop(UMenuBase* UiMenuBase, bool bWasCancel)
} }
else else
{ {
UE_LOG(LogCustomUI, Error, TEXT("Tried to pop menu %s but it wasn't the top level"), *UiMenuBase->GetName()); UE_LOG(LogStevesUI, Error, TEXT("Tried to pop menu %s but it wasn't the top level"), *UiMenuBase->GetName());
} }
} }

View File

@ -19,29 +19,29 @@ void UOptionWidgetBase::NativeConstruct()
ClearOptions(); ClearOptions();
} }
else else
UE_LOG(LogCustomUI, Error, TEXT("StevesGameSubsystem is missing!")); UE_LOG(LogStevesUI, Error, TEXT("StevesGameSubsystem is missing!"));
// Check we can bind everything we need, bind click // Check we can bind everything we need, bind click
if (!MouseVersion) if (!MouseVersion)
UE_LOG(LogCustomUI, Error, TEXT("%s should have a MouseVersion instance."), *this->GetClass()->GetName()); UE_LOG(LogStevesUI, Error, TEXT("%s should have a MouseVersion instance."), *this->GetClass()->GetName());
if (!GamepadVersion) if (!GamepadVersion)
UE_LOG(LogCustomUI, Error, TEXT("%s should have a GamepadVersion instance."), *this->GetClass()->GetName()); UE_LOG(LogStevesUI, Error, TEXT("%s should have a GamepadVersion instance."), *this->GetClass()->GetName());
if (MouseUpButton) if (MouseUpButton)
MouseUpButton->OnClicked.AddDynamic(this, &UOptionWidgetBase::MouseUpClicked); MouseUpButton->OnClicked.AddDynamic(this, &UOptionWidgetBase::MouseUpClicked);
else else
UE_LOG(LogCustomUI, Error, TEXT("%s should have a MouseUpButton instance."), *this->GetClass()->GetName()); UE_LOG(LogStevesUI, Error, TEXT("%s should have a MouseUpButton instance."), *this->GetClass()->GetName());
if (MouseDownButton) if (MouseDownButton)
MouseDownButton->OnClicked.AddDynamic(this, &UOptionWidgetBase::MouseDownClicked); MouseDownButton->OnClicked.AddDynamic(this, &UOptionWidgetBase::MouseDownClicked);
else else
UE_LOG(LogCustomUI, Error, TEXT("%s should have a MouseDownButton instance."), *this->GetClass()->GetName()); UE_LOG(LogStevesUI, Error, TEXT("%s should have a MouseDownButton instance."), *this->GetClass()->GetName());
if (!MouseUpImage) if (!MouseUpImage)
UE_LOG(LogCustomUI, Error, TEXT("%s should have a MouseUpImage instance."), *this->GetClass()->GetName()); UE_LOG(LogStevesUI, Error, TEXT("%s should have a MouseUpImage instance."), *this->GetClass()->GetName());
if (!MouseDownImage) if (!MouseDownImage)
UE_LOG(LogCustomUI, Error, TEXT("%s should have a MouseDownImage instance."), *this->GetClass()->GetName()); UE_LOG(LogStevesUI, Error, TEXT("%s should have a MouseDownImage instance."), *this->GetClass()->GetName());
if (!GamepadUpImage) if (!GamepadUpImage)
UE_LOG(LogCustomUI, Error, TEXT("%s should have a GamepadUpImage instance."), *this->GetClass()->GetName()); UE_LOG(LogStevesUI, Error, TEXT("%s should have a GamepadUpImage instance."), *this->GetClass()->GetName());
if (!GamepadDownImage) if (!GamepadDownImage)
UE_LOG(LogCustomUI, Error, TEXT("%s should have a GamepadDownImage instance."), *this->GetClass()->GetName()); UE_LOG(LogStevesUI, Error, TEXT("%s should have a GamepadDownImage instance."), *this->GetClass()->GetName());
} }

View File

@ -7,7 +7,7 @@
#include "Components/PanelWidget.h" #include "Components/PanelWidget.h"
#include "Components/Widget.h" #include "Components/Widget.h"
DEFINE_LOG_CATEGORY(LogCustomUI); DEFINE_LOG_CATEGORY(LogStevesUI);
UWidget* FindWidgetFromSlate(SWidget* SW, UWidget* Parent) UWidget* FindWidgetFromSlate(SWidget* SW, UWidget* Parent)
{ {

View File

@ -5,7 +5,7 @@
class UWidget; class UWidget;
class SWidget; class SWidget;
DECLARE_LOG_CATEGORY_EXTERN(LogCustomUI, Warning, Warning) DECLARE_LOG_CATEGORY_EXTERN(LogStevesUI, Warning, Warning)
/** /**