KLingo Project Documentation 1.0.0
Unreal Engine 5.6 C++ Project Documentation
로딩중...
검색중...
일치하는것 없음
UChatBoxWidget 클래스 참조

#include <ChatBoxWidget.h>

+ UChatBoxWidget에 대한 상속 다이어그램 :
+ UChatBoxWidget에 대한 협력 다이어그램:

Public 멤버 함수

void SetChatBubbleColor (bool IsMine) const
 
void SetMessage (FText InMessage)
 
void SetPlayerName (FText InPlayerName)
 
void SetPlayerProfile (FLinearColor InBgColor, EResourceTextureType InProfileType)
 

Protected 속성

TObjectPtr< class UBorder > Border_ChatBubble
 
TObjectPtr< class UBorder > Border_ProfileBG
 
TObjectPtr< class UImage > Image_ChatTail
 
TObjectPtr< class UImage > Image_Profile
 
TObjectPtr< class UTextBlock > Txt_Message
 
TObjectPtr< class UTextBlock > Txt_Name
 

상세한 설명

ChatBoxWidget.h 파일의 14 번째 라인에서 정의되었습니다.

멤버 함수 문서화

◆ SetChatBubbleColor()

void UChatBoxWidget::SetChatBubbleColor ( bool  IsMine) const

ChatBoxWidget.cpp 파일의 43 번째 라인에서 정의되었습니다.

44{
45 auto BubbleColor = IsMine ? FLinearColor::Green : FLinearColor::White;
46
47 Txt_Name->SetColorAndOpacity(BubbleColor);
48 Image_ChatTail->SetColorAndOpacity(BubbleColor);
49 Border_ChatBubble->SetContentColorAndOpacity(BubbleColor);
50}
TObjectPtr< class UBorder > Border_ChatBubble
TObjectPtr< class UTextBlock > Txt_Name
TObjectPtr< class UImage > Image_ChatTail

다음을 참조함 : Border_ChatBubble, Image_ChatTail, Txt_Name.

다음에 의해서 참조됨 : UChatWidget::SendMessage().

+ 이 함수를 호출하는 함수들에 대한 그래프입니다.:

◆ SetMessage()

void UChatBoxWidget::SetMessage ( FText  InMessage)

ChatBoxWidget.cpp 파일의 17 번째 라인에서 정의되었습니다.

18{
19 Txt_Message->SetText(InMessage);
20
21 // 여러 줄 텍스트의 경우 레이아웃을 강제로 갱신
22 ForceLayoutPrepass();
23
24 // 메시지를 포함하는 Border의 레이아웃 무효화
25 Border_ChatBubble->InvalidateLayoutAndVolatility();
26}
TObjectPtr< class UTextBlock > Txt_Message

다음을 참조함 : Border_ChatBubble, Txt_Message.

다음에 의해서 참조됨 : UChatWidget::SendMessage().

+ 이 함수를 호출하는 함수들에 대한 그래프입니다.:

◆ SetPlayerName()

void UChatBoxWidget::SetPlayerName ( FText  InPlayerName)

ChatBoxWidget.cpp 파일의 12 번째 라인에서 정의되었습니다.

13{
14 Txt_Name->SetText(InPlayerName);
15}

다음을 참조함 : Txt_Name.

다음에 의해서 참조됨 : UChatWidget::SendMessage().

+ 이 함수를 호출하는 함수들에 대한 그래프입니다.:

◆ SetPlayerProfile()

void UChatBoxWidget::SetPlayerProfile ( FLinearColor  InBgColor,
EResourceTextureType  InProfileType 
)

ChatBoxWidget.cpp 파일의 28 번째 라인에서 정의되었습니다.

31{
32 Border_ProfileBG->SetBrushColor(InBgColor);
33
34 UTexture2D* Texture = UGameDataManager::Get(this)->GetTexture(InProfileType);
35 if (!Texture)
36 return;
37
38 FSlateBrush Brush = Image_Profile->GetBrush();
39 Brush.SetResourceObject(Texture);
40 Image_Profile->SetBrush(Brush);
41}
TObjectPtr< class UBorder > Border_ProfileBG
TObjectPtr< class UImage > Image_Profile

다음을 참조함 : Border_ProfileBG, Image_Profile.

다음에 의해서 참조됨 : UChatWidget::SendMessage().

+ 이 함수를 호출하는 함수들에 대한 그래프입니다.:

멤버 데이터 문서화

◆ Border_ChatBubble

TObjectPtr<class UBorder> UChatBoxWidget::Border_ChatBubble
protected

ChatBoxWidget.h 파일의 41 번째 라인에서 정의되었습니다.

다음에 의해서 참조됨 : SetChatBubbleColor(), SetMessage().

◆ Border_ProfileBG

TObjectPtr<class UBorder> UChatBoxWidget::Border_ProfileBG
protected

ChatBoxWidget.h 파일의 31 번째 라인에서 정의되었습니다.

다음에 의해서 참조됨 : SetPlayerProfile().

◆ Image_ChatTail

TObjectPtr<class UImage> UChatBoxWidget::Image_ChatTail
protected

ChatBoxWidget.h 파일의 38 번째 라인에서 정의되었습니다.

다음에 의해서 참조됨 : SetChatBubbleColor().

◆ Image_Profile

TObjectPtr<class UImage> UChatBoxWidget::Image_Profile
protected

ChatBoxWidget.h 파일의 34 번째 라인에서 정의되었습니다.

다음에 의해서 참조됨 : SetPlayerProfile().

◆ Txt_Message

TObjectPtr<class UTextBlock> UChatBoxWidget::Txt_Message
protected

ChatBoxWidget.h 파일의 48 번째 라인에서 정의되었습니다.

다음에 의해서 참조됨 : SetMessage().

◆ Txt_Name

TObjectPtr<class UTextBlock> UChatBoxWidget::Txt_Name
protected

ChatBoxWidget.h 파일의 45 번째 라인에서 정의되었습니다.

다음에 의해서 참조됨 : SetChatBubbleColor(), SetPlayerName().


이 클래스에 대한 문서화 페이지는 다음의 파일들로부터 생성되었습니다.: