engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 所有成员列表
FHUDHitBox类 参考

Hitbox used for clickable HUD elements. 更多...

#include <HUDHitBox.h>

Public 成员函数

const bool ConsumesInput () const
 Should other boxes be processed if this box is clicked. 更多...
 
bool Contains (FVector2D InCoords) const
 Are the given coordinates within this hitbox. 更多...
 
void Draw (class FCanvas *InCanvas, const FLinearColor &InColor) const
 Debug render for this hitbox. 更多...
 
 FHUDHitBox (FVector2D InCoords, FVector2D InSize, const FName &InName, bool bInConsumesInput, int32 InPriority)
 Constructor for a hitbox. 更多...
 
const FName & GetName () const
 Get the name of this hitbox. 更多...
 
const int32 GetPriority () const
 Get the priority of this hitbox. 更多...
 

详细描述

Hitbox used for clickable HUD elements.

These are named regions that receive various events when clicked upon.

参见
AHud
AddHitBox(), ReceiveHitBoxClick(), ReceiveHitBoxRelease(), ReceiveHitBoxBeginCursorOver(), ReceiveHitBoxEndCursorOver()
NotifyHitBoxClick(), NotifyHitBoxRelease(), NotifyHitBoxBeginCursorOver(), NotifyHitBoxEndCursorOver()
GetHitBoxAtCoordinates(), GetHitBoxesAtCoordinates(), GetHitBoxWithName()

构造及析构函数说明

◆ FHUDHitBox()

FHUDHitBox::FHUDHitBox ( FVector2D  InCoords,
FVector2D  InSize,
const FName &  InName,
bool  bInConsumesInput,
int32  InPriority 
)

Constructor for a hitbox.

参数
InCoordsCoordinates of top left of hitbox.
InSizeSize of the box.

成员函数说明

◆ ConsumesInput()

const bool FHUDHitBox::ConsumesInput ( ) const
inline

Should other boxes be processed if this box is clicked.


◆ Contains()

bool FHUDHitBox::Contains ( FVector2D  InCoords) const

Are the given coordinates within this hitbox.

参数
InCoordsCoordinates to check.
返回
true if coordinates are within this hitbox.

◆ Draw()

void FHUDHitBox::Draw ( class FCanvas *  InCanvas,
const FLinearColor &  InColor 
) const

Debug render for this hitbox.

参数
InCanvasCanvas on which to render.
InColorColor to render the box.

◆ GetName()

const FName & FHUDHitBox::GetName ( ) const
inline

Get the name of this hitbox.


◆ GetPriority()

const int32 FHUDHitBox::GetPriority ( ) const
inline

Get the priority of this hitbox.



该类的文档由以下文件生成: