Scene UI
This commit is contained in:
@ -7,6 +7,8 @@
|
||||
target_sources(${DAWN_TARGET_NAME}
|
||||
PRIVATE
|
||||
UICanvas.cpp
|
||||
UIComponent.cpp
|
||||
UILabel.cpp
|
||||
)
|
||||
|
||||
tool_scenecomponent(UICanvas scene/components/ui/UICanvas.hpp)
|
@ -8,6 +8,11 @@
|
||||
#include "UICanvas.hpp"
|
||||
|
||||
namespace Dawn {
|
||||
class UIComponentRendaerable {
|
||||
public:
|
||||
int32_t cum;
|
||||
};
|
||||
|
||||
class UIComponent : public SceneItemComponent {
|
||||
private:
|
||||
UICanvas *canvas = nullptr;
|
||||
|
@ -24,8 +24,8 @@ void UILabel::updateMesh() {
|
||||
|
||||
// std::string text = this->getGame()->localeManager.getString(key);
|
||||
this->font->buffer(
|
||||
this->text,
|
||||
this->fontSize,
|
||||
text,
|
||||
fontSize,
|
||||
-1,
|
||||
&this->mesh,
|
||||
&this->measure
|
||||
|
@ -5,6 +5,7 @@
|
||||
|
||||
#pragma once
|
||||
#include "UIComponent.hpp"
|
||||
#include "display/font/Font.hpp"
|
||||
|
||||
namespace Dawn {
|
||||
class UILabel : public UIComponent {
|
||||
|
Reference in New Issue
Block a user