mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 11:31:49 +00:00
Merge branch 'main' into new-editor-formats
This commit is contained in:
commit
c6970b1d02
29 changed files with 200 additions and 297 deletions
|
|
@ -1,3 +1,4 @@
|
|||
#define VC_ENABLE_REFLECTION
|
||||
#include "gui_xml.hpp"
|
||||
|
||||
#include <stdexcept>
|
||||
|
|
@ -168,8 +169,9 @@ static void read_uinode(
|
|||
node.setTooltipDelay(element.attr("tooltip-delay").asFloat());
|
||||
}
|
||||
if (element.has("cursor")) {
|
||||
if (auto cursor = CursorShape_from(element.attr("cursor").getText())) {
|
||||
node.setCursor(*cursor);
|
||||
CursorShape cursor;
|
||||
if (CursorShapeMeta.getItem(element.attr("cursor").getText(), cursor)) {
|
||||
node.setCursor(cursor);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue