mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 22:35:14 +02:00
91 lines
2.3 KiB
QML
91 lines
2.3 KiB
QML
//
|
|
// HelpControls.qml
|
|
//
|
|
// Created by Zach Fox on 2019-08-07
|
|
// Copyright 2019 High Fidelity, Inc.
|
|
//
|
|
// Distributed under the Apache License, Version 2.0.
|
|
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
|
//
|
|
|
|
import QtQuick 2.10
|
|
import QtQuick.Controls 2.3
|
|
import "../../simplifiedConstants" as SimplifiedConstants
|
|
import "../../simplifiedControls" as SimplifiedControls
|
|
import stylesUit 1.0 as HifiStylesUit
|
|
import QtQuick.Layouts 1.3
|
|
import PerformanceEnums 1.0
|
|
|
|
Flickable {
|
|
id: root
|
|
contentWidth: parent.width
|
|
contentHeight: controlsColumnLayout.height
|
|
clip: true
|
|
|
|
onVisibleChanged: {
|
|
if (visible) {
|
|
root.contentX = 0;
|
|
root.contentY = 0;
|
|
}
|
|
}
|
|
|
|
SimplifiedConstants.SimplifiedConstants {
|
|
id: simplifiedUI
|
|
}
|
|
|
|
|
|
Image {
|
|
id: accent
|
|
source: "../images/accent1.svg"
|
|
anchors.left: parent.left
|
|
anchors.top: parent.top
|
|
width: 83
|
|
height: 156
|
|
transform: Scale {
|
|
xScale: -1
|
|
origin.x: accent.width / 2
|
|
origin.y: accent.height / 2
|
|
}
|
|
}
|
|
|
|
|
|
ColumnLayout {
|
|
id: controlsColumnLayout
|
|
anchors.left: parent.left
|
|
anchors.leftMargin: 26
|
|
anchors.right: parent.right
|
|
anchors.rightMargin: 26
|
|
anchors.top: parent.top
|
|
spacing: 0
|
|
|
|
HifiStylesUit.GraphikSemiBold {
|
|
text: "HQ Controls"
|
|
Layout.maximumWidth: parent.width
|
|
Layout.topMargin: 16
|
|
height: paintedHeight
|
|
size: 22
|
|
color: simplifiedUI.colors.text.white
|
|
}
|
|
|
|
HifiStylesUit.GraphikRegular {
|
|
text: "You can use the following controls to move your avatar around your HQ:"
|
|
Layout.maximumWidth: parent.width
|
|
wrapMode: Text.Wrap
|
|
height: paintedHeight
|
|
size: 18
|
|
color: simplifiedUI.colors.text.white
|
|
}
|
|
|
|
SimplifiedControls.Button {
|
|
Layout.topMargin: 8
|
|
width: 200
|
|
height: 32
|
|
text: "VIEW ALL CONTROLS"
|
|
temporaryText: "Viewing!"
|
|
|
|
onClicked: {
|
|
Qt.openUrlExternally("http://docs.highfidelity.com/en/rc83/explore/get-started/desktop.html");
|
|
}
|
|
}
|
|
}
|
|
}
|