Starting new VN Structure
This commit is contained in:
25
archive/visualnovel/ui/VisualNovelFader.cpp
Normal file
25
archive/visualnovel/ui/VisualNovelFader.cpp
Normal file
@ -0,0 +1,25 @@
|
||||
// Copyright (c) 2022 Dominic Masters
|
||||
//
|
||||
// This software is released under the MIT License.
|
||||
// https://opensource.org/licenses/MIT
|
||||
|
||||
#include "VisualNovelFader.hpp"
|
||||
|
||||
using namespace Dawn;
|
||||
|
||||
VisualNovelFader::VisualNovelFader(UICanvas *canvas) : UISprite(canvas) {
|
||||
|
||||
}
|
||||
|
||||
VisualNovelFader * VisualNovelFader::create(UICanvas *canvas) {
|
||||
assertNotNull(canvas);
|
||||
|
||||
auto item = canvas->addElement<VisualNovelFader>();
|
||||
item->setTransform(
|
||||
UI_COMPONENT_ALIGN_STRETCH, UI_COMPONENT_ALIGN_STRETCH,
|
||||
glm::vec4(0, 0, 0, 0),
|
||||
0.0f
|
||||
);
|
||||
item->color = COLOR_BLACK_TRANSPARENT;
|
||||
return item;
|
||||
}
|
Reference in New Issue
Block a user