mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 02:51:49 +00:00
add 'keep-line-selection' textbox attribute
This commit is contained in:
parent
fbc9ceece4
commit
aba18ef836
3 changed files with 56 additions and 37 deletions
|
|
@ -573,6 +573,11 @@ static std::shared_ptr<UINode> read_text_box(
|
|||
if (element.has("line-numbers")) {
|
||||
textbox->setShowLineNumbers(element.attr("line-numbers").asBool());
|
||||
}
|
||||
if (element.has("keep-line-selection")) {
|
||||
textbox->setKeepLineSelection(
|
||||
element.attr("keep-line-selection").asBool()
|
||||
);
|
||||
}
|
||||
if (element.has("markup")) {
|
||||
textbox->setMarkup(element.attr("markup").getText());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue