easyx_framework V1.0.0
基于easyx的c++游戏框架
 
载入中...
搜索中...
未找到
BattleUI类 参考

#include <BattleUI.h>

类 BattleUI 继承关系图:
UserInterface base

Public 成员函数

 BattleUI ()
 
void Update (float deltaTime)
 只要是可视的,执行每一个Widget的Update
 
- Public 成员函数 继承自 UserInterface
 UserInterface ()
 构造函数
 
 ~UserInterface ()
 
virtual void BeginPlay ()
 
virtual void EndPlay ()
 
void ShowInfoBox ()
 
void DrawDebugRect ()
 绘制部件的边框
 
template<class T >
T * AddWidget ()
 添加widget小部件到UI模板管理 创建小部件,注册到对象容器.
 
void AddToViewport ()
 将UI添加到视口
 
void HideFromViewport ()
 
void RemoveFromViewport ()
 删除ui 加入到删除容器转交控制权,统一进行删除
 
- Public 成员函数 继承自 base
 base ()
 
virtual ~base ()
 
std::string GetName () const
 
void SetName (const std::string &name)
 

Private 属性

ImageSeedBank
 
HorizontalPanelPanel
 
TextSunShine
 

额外继承的成员函数

- Protected 属性 继承自 UserInterface
Widget *const root = new Widget
 绑定的根小部件
 

构造及析构函数说明

◆ BattleUI()

BattleUI::BattleUI ( )

成员函数说明

◆ Update()

void BattleUI::Update ( float deltaTime)
virtual

只要是可视的,执行每一个Widget的Update

重载 UserInterface .

类成员变量说明

◆ Panel

HorizontalPanel* BattleUI::Panel
private

◆ SeedBank

Image* BattleUI::SeedBank
private

◆ SunShine

Text* BattleUI::SunShine
private