mirror of
https://github.com/sinbad/StevesUEHelpers.git
synced 2025-02-23 17:45:23 +00:00
Change log category name for UI messages
This commit is contained in:
parent
6986921439
commit
b7b8fa81ca
@ -94,6 +94,6 @@ void UMenuBase::EmbedInParent()
|
||||
ParentStack->MenuContainer->SetContent(this);
|
||||
}
|
||||
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())
|
||||
|
||||
}
|
||||
|
@ -123,7 +123,7 @@ void UMenuStack::PopMenuIfTop(UMenuBase* UiMenuBase, bool bWasCancel)
|
||||
}
|
||||
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());
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -19,29 +19,29 @@ void UOptionWidgetBase::NativeConstruct()
|
||||
ClearOptions();
|
||||
}
|
||||
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
|
||||
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)
|
||||
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)
|
||||
MouseUpButton->OnClicked.AddDynamic(this, &UOptionWidgetBase::MouseUpClicked);
|
||||
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)
|
||||
MouseDownButton->OnClicked.AddDynamic(this, &UOptionWidgetBase::MouseDownClicked);
|
||||
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)
|
||||
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)
|
||||
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)
|
||||
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)
|
||||
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());
|
||||
|
||||
|
||||
}
|
||||
|
@ -7,7 +7,7 @@
|
||||
#include "Components/PanelWidget.h"
|
||||
#include "Components/Widget.h"
|
||||
|
||||
DEFINE_LOG_CATEGORY(LogCustomUI);
|
||||
DEFINE_LOG_CATEGORY(LogStevesUI);
|
||||
|
||||
UWidget* FindWidgetFromSlate(SWidget* SW, UWidget* Parent)
|
||||
{
|
||||
|
@ -5,7 +5,7 @@
|
||||
class UWidget;
|
||||
class SWidget;
|
||||
|
||||
DECLARE_LOG_CATEGORY_EXTERN(LogCustomUI, Warning, Warning)
|
||||
DECLARE_LOG_CATEGORY_EXTERN(LogStevesUI, Warning, Warning)
|
||||
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user