mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 13:58:51 +02:00
Merge pull request #12463 from misslivirose/fix/edit-bugs
Fix two bugs with Create Menu
This commit is contained in:
commit
478ec48b63
2 changed files with 24 additions and 1 deletions
|
@ -199,7 +199,7 @@ Rectangle {
|
||||||
var SHAPE_TYPE_BOX = 4;
|
var SHAPE_TYPE_BOX = 4;
|
||||||
var SHAPE_TYPE_SPHERE = 5;
|
var SHAPE_TYPE_SPHERE = 5;
|
||||||
|
|
||||||
var SHAPE_TYPES = [];ww
|
var SHAPE_TYPES = [];
|
||||||
SHAPE_TYPES[SHAPE_TYPE_NONE] = "No Collision";
|
SHAPE_TYPES[SHAPE_TYPE_NONE] = "No Collision";
|
||||||
SHAPE_TYPES[SHAPE_TYPE_SIMPLE_HULL] = "Basic - Whole model";
|
SHAPE_TYPES[SHAPE_TYPE_SIMPLE_HULL] = "Basic - Whole model";
|
||||||
SHAPE_TYPES[SHAPE_TYPE_SIMPLE_COMPOUND] = "Good - Sub-meshes";
|
SHAPE_TYPES[SHAPE_TYPE_SIMPLE_COMPOUND] = "Good - Sub-meshes";
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
import QtQuick 2.5
|
import QtQuick 2.5
|
||||||
import QtQuick.Controls 1.4
|
import QtQuick.Controls 1.4
|
||||||
|
import QtQuick.Controls 2.2 // Need both for short-term fix
|
||||||
import QtWebEngine 1.1
|
import QtWebEngine 1.1
|
||||||
import QtWebChannel 1.0
|
import QtWebChannel 1.0
|
||||||
import QtQuick.Controls.Styles 1.4
|
import QtQuick.Controls.Styles 1.4
|
||||||
|
@ -10,6 +11,7 @@ import "../../controls-uit" as HifiControls
|
||||||
import "../../styles-uit"
|
import "../../styles-uit"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
TabView {
|
TabView {
|
||||||
id: editTabView
|
id: editTabView
|
||||||
// anchors.fill: parent
|
// anchors.fill: parent
|
||||||
|
@ -23,8 +25,27 @@ TabView {
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
color: "#404040"
|
color: "#404040"
|
||||||
|
id: container
|
||||||
|
|
||||||
|
Flickable {
|
||||||
|
height: parent.height
|
||||||
|
width: parent.width
|
||||||
|
|
||||||
|
contentHeight: createEntitiesFlow.height + importButton.height + assetServerButton.height +
|
||||||
|
header.anchors.topMargin + createEntitiesFlow.anchors.topMargin +
|
||||||
|
assetServerButton.anchors.topMargin + importButton.anchors.topMargin
|
||||||
|
contentWidth: width
|
||||||
|
|
||||||
|
ScrollBar.vertical : ScrollBar {
|
||||||
|
visible: parent.contentHeight > parent.height
|
||||||
|
width: 20
|
||||||
|
background: Rectangle {
|
||||||
|
color: hifi.colors.tableScrollBackgroundDark
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
|
id: header
|
||||||
color: "#ffffff"
|
color: "#ffffff"
|
||||||
text: "Choose an Entity Type to Create:"
|
text: "Choose an Entity Type to Create:"
|
||||||
font.pixelSize: 14
|
font.pixelSize: 14
|
||||||
|
@ -176,6 +197,7 @@ TabView {
|
||||||
}
|
}
|
||||||
|
|
||||||
HifiControls.Button {
|
HifiControls.Button {
|
||||||
|
id: importButton
|
||||||
text: "Import Entities (.json)"
|
text: "Import Entities (.json)"
|
||||||
color: hifi.buttons.black
|
color: hifi.buttons.black
|
||||||
colorScheme: hifi.colorSchemes.dark
|
colorScheme: hifi.colorSchemes.dark
|
||||||
|
@ -192,6 +214,7 @@ TabView {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} // Flickable
|
||||||
}
|
}
|
||||||
|
|
||||||
Tab {
|
Tab {
|
||||||
|
|
Loading…
Reference in a new issue