Added more variants of Ysabeuau fonts
This commit is contained in:
@ -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;
|
||||
|
@ -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;
|
||||
|
Reference in New Issue
Block a user