This commit is contained in:
2023-03-05 15:51:07 -08:00
parent f7ff21fa8d
commit b9a6620902
10 changed files with 49 additions and 8 deletions

View File

@ -7,6 +7,8 @@
target_sources(${DAWN_TARGET_NAME}
PRIVATE
UICanvas.cpp
UIComponent.cpp
UILabel.cpp
)
tool_scenecomponent(UICanvas scene/components/ui/UICanvas.hpp)

View File

@ -8,6 +8,11 @@
#include "UICanvas.hpp"
namespace Dawn {
class UIComponentRendaerable {
public:
int32_t cum;
};
class UIComponent : public SceneItemComponent {
private:
UICanvas *canvas = nullptr;

View File

@ -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

View File

@ -5,6 +5,7 @@
#pragma once
#include "UIComponent.hpp"
#include "display/font/Font.hpp"
namespace Dawn {
class UILabel : public UIComponent {