Updated clay
This commit is contained in:
parent
c1cd3e4e49
commit
91ff487edd
6 changed files with 1604 additions and 1033 deletions
|
|
@ -1,5 +1,6 @@
|
|||
#include "TextLabelHelpers.hpp"
|
||||
#include "../Elements/MutableTextLabel.hpp"
|
||||
#include "Helpers/ConvertVec.hpp"
|
||||
|
||||
namespace GUIStuff { namespace ElementHelpers {
|
||||
|
||||
|
|
@ -42,7 +43,8 @@ void text_label_light_centered(GUIManager& gui, std::string_view val) {
|
|||
}
|
||||
|
||||
void mutable_text_label(GUIManager& gui, const char* id, const std::string& val) {
|
||||
gui.element<MutableTextLabel>(id, val, CLAY_TEXT_CONFIG({.textColor = convert_vec4<Clay_Color>(gui.io.theme->frontColor1), .fontSize = gui.io.fontSize }));
|
||||
Clay_TextElementConfig textConfig = CLAY_TEXT_CONFIG({.textColor = convert_vec4<Clay_Color>(gui.io.theme->frontColor1), .fontSize = gui.io.fontSize });
|
||||
gui.element<MutableTextLabel>(id, val, textConfig);
|
||||
}
|
||||
|
||||
}}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue