start working on therac console ui
This commit is contained in:
9
Source/MyProject/Private/MyUserWidget.cpp
Normal file
9
Source/MyProject/Private/MyUserWidget.cpp
Normal file
@ -0,0 +1,9 @@
|
||||
// Fill out your copyright notice in the Description page of Project Settings.
|
||||
|
||||
|
||||
#include "MyUserWidget.h"
|
||||
|
||||
void UMyUserWidget::NativeOnInitialized() {
|
||||
|
||||
OpIdTextBlock->SetText(FText::FromString("testo6667"));
|
||||
}
|
22
Source/MyProject/Public/MyUserWidget.h
Normal file
22
Source/MyProject/Public/MyUserWidget.h
Normal file
@ -0,0 +1,22 @@
|
||||
// Fill out your copyright notice in the Description page of Project Settings.
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "CoreMinimal.h"
|
||||
#include "Blueprint/UserWidget.h"
|
||||
#include <Components/TextBlock.h>
|
||||
#include "MyUserWidget.generated.h"
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
UCLASS()
|
||||
class MYPROJECT_API UMyUserWidget : public UUserWidget
|
||||
{
|
||||
GENERATED_BODY()
|
||||
|
||||
UPROPERTY(meta=(BindWidget))
|
||||
UTextBlock * OpIdTextBlock;
|
||||
void NativeOnInitialized() override;
|
||||
};
|
Reference in New Issue
Block a user