// Copyright (c) 2023 Dominic Masters // // This software is released under the MIT License. // https://opensource.org/licenses/MIT #pragma once #include "prefab/UIPrefab.hpp" #include "ui/UIBorder.hpp" namespace Dawn { class UIBorderPrefab : public UIPrefab { public: static std::vector prefabAssets(AssetManager *man) { std::vector assets; assets.push_back(man->get("texture_test")); return assets; } static void prefabApply(AssetManager *man, UIBorder *border) { auto text = man->get("texture_test"); border->texture = &text->texture; border->setBorderSize(glm::vec2(4, 4)); } }; }