Merge pull request #14786 from djrm/pr_fixes
Expose Range, ScrollBar and Slider as virtual.
This commit is contained in:
commit
27642868f1
3 changed files with 3 additions and 13 deletions
|
@ -1,5 +0,0 @@
|
|||
<svg width="16" height="16" version="1.1" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
|
||||
<g transform="translate(0 -1036.4)">
|
||||
<path transform="translate(0 1036.4)" d="m1 3v10h2v-4h2v2h2v-2h2v2h2v-2h2v4h2v-10h-2v4h-2v-2h-2v2h-2v-2h-2v2h-2v-4z" fill="#a5efac"/>
|
||||
</g>
|
||||
</svg>
|
Before Width: | Height: | Size: 281 B |
|
@ -1,5 +0,0 @@
|
|||
<svg width="16" height="16" version="1.1" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
|
||||
<g transform="translate(0 -1036.4)">
|
||||
<path transform="translate(0 1036.4)" d="m3 3c-1.1046 0-2 0.89543-2 2v6c0 1.1046 0.89543 2 2 2h10c1.1046 0 2-0.89543 2-2v-6c0-1.1046-0.89543-2-2-2h-10zm0 2h10v6h-10v-6zm1 1v4h4v-4h-4z" fill="#a5efac"/>
|
||||
</g>
|
||||
</svg>
|
Before Width: | Height: | Size: 349 B |
|
@ -268,11 +268,11 @@ void register_scene_types() {
|
|||
ClassDB::register_class<Control>();
|
||||
ClassDB::register_class<Button>();
|
||||
ClassDB::register_class<Label>();
|
||||
ClassDB::register_class<ScrollBar>();
|
||||
ClassDB::register_virtual_class<ScrollBar>();
|
||||
ClassDB::register_class<HScrollBar>();
|
||||
ClassDB::register_class<VScrollBar>();
|
||||
ClassDB::register_class<ProgressBar>();
|
||||
ClassDB::register_class<Slider>();
|
||||
ClassDB::register_virtual_class<Slider>();
|
||||
ClassDB::register_class<HSlider>();
|
||||
ClassDB::register_class<VSlider>();
|
||||
ClassDB::register_class<Popup>();
|
||||
|
@ -283,7 +283,7 @@ void register_scene_types() {
|
|||
ClassDB::register_class<ToolButton>();
|
||||
ClassDB::register_class<LinkButton>();
|
||||
ClassDB::register_class<Panel>();
|
||||
ClassDB::register_class<Range>();
|
||||
ClassDB::register_virtual_class<Range>();
|
||||
|
||||
OS::get_singleton()->yield(); //may take time to init
|
||||
|
||||
|
|
Loading…
Reference in a new issue