Added more variants of Ysabeuau fonts

This commit is contained in:
2023-06-18 00:42:49 -07:00
parent 0ea7f1d749
commit 24cf072b97
8 changed files with 16 additions and 12 deletions

View File

@ -5,7 +5,7 @@
#pragma once
#include "scene/SceneItemComponent.hpp"
#include "scene/components/ui/text/UILabel.hpp"
#include "scene/components/ui/text/UIRichTextLabel.hpp"
#include "input/InputManager.hpp"
#define VN_TEXTBOX_SPEED 25.0f
@ -15,7 +15,7 @@ namespace Dawn {
class VNTextboxScroller : public SceneItemComponent {
public:
// @optional
StateProperty<UILabel*> label;
StateProperty<UIRichTextLabel*> label;
// @optional
StateProperty<int32_t> visibleLines;

View File

@ -20,8 +20,7 @@ namespace Dawn {
scroller = this->getScene()->findComponent<VNTextboxScroller>();
assertNotNull(scroller);
assertUnreachable();
// scroller->label->text = text;
scroller->label->richText = "<font font=\"font_main\" size=\"32\">" + text + "</font>";
useEvent([&](inputbind_t bind){
if(bind != INPUT_BIND_ACCEPT) return;