64 lines
1.6 KiB
QML
64 lines
1.6 KiB
QML
import QtQuick
|
|
import QtQuick.Window
|
|
|
|
QtObject {
|
|
property Window topWindow: Window {
|
|
width: 960
|
|
height: 540
|
|
visible: true
|
|
title: "nomad-top"
|
|
|
|
Rectangle {
|
|
anchors.fill: parent
|
|
color: "#181818"
|
|
|
|
Text {
|
|
anchors.centerIn: parent
|
|
text: "nomad top screen"
|
|
color: "white"
|
|
font.pixelSize: 50
|
|
}
|
|
}
|
|
}
|
|
|
|
property Window bottomWindow: Window {
|
|
width: 620
|
|
height: 540
|
|
visible: true
|
|
title: "nomad-bottom"
|
|
property string lastInputText: "none"
|
|
|
|
Connections {
|
|
target: inputManager
|
|
|
|
function onActionPressed(action) {
|
|
bottomWindow.lastInputText = inputManager.actionName(action) + " pressed"
|
|
}
|
|
function onActionReleased(action) {
|
|
bottomWindow.lastInputText = inputManager.actionName(action) + " released"
|
|
}
|
|
}
|
|
|
|
Rectangle {
|
|
anchors.fill: parent
|
|
color: "#181818"
|
|
|
|
Column {
|
|
anchors.centerIn: parent
|
|
spacing: 20
|
|
|
|
Text {
|
|
text: "nomad bottom screen"
|
|
color: "white"
|
|
font.pixelSize: 50
|
|
}
|
|
|
|
Text {
|
|
text: "last input: " + bottomWindow.lastInputText
|
|
color: "white"
|
|
font.pixelSize: 30
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |