#include <BattleUI.h>
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 属性 | |
| Image * | SeedBank |
| HorizontalPanel * | Panel |
| Text * | SunShine |
额外继承的成员函数 | |
Protected 属性 继承自 UserInterface | |
| Widget *const | root = new Widget |
| 绑定的根小部件 | |
| BattleUI::BattleUI | ( | ) |
|
virtual |
只要是可视的,执行每一个Widget的Update
重载 UserInterface .
|
private |
|
private |
|
private |