qmlfrontend/main.qml
author Wuzzy <Wuzzy2@mail.ru>
Thu, 03 Jan 2019 19:46:48 +0100
changeset 14519 5ac181cb2396
parent 14148 745c73e0e644
permissions -rw-r--r--
Fix bee targeting fail across wrap world edge Previously, the bee always aimed for the light area, no matter where you actually put the target. It also got confused whenever it flew across the wrap world edge. How the bee works now: 1) The placed bee target is *not* recalculated when it was placed in the "gray" part of the wrap world edge. This allows for more fine-tuning. 1a) Place target in light area: bee aims for target light area 1b) Place target in gray area: bee aims for target, but flies to gray area first 2) Bee target is recalculated whenever bee passes the wrap world edge.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
12859
28cb18c5e712 Add new qmlfrontend project template
unc0rr
parents:
diff changeset
     1
import QtQuick 2.7
28cb18c5e712 Add new qmlfrontend project template
unc0rr
parents:
diff changeset
     2
import QtQuick.Controls 2.0
28cb18c5e712 Add new qmlfrontend project template
unc0rr
parents:
diff changeset
     3
import QtQuick.Layouts 1.3
28cb18c5e712 Add new qmlfrontend project template
unc0rr
parents:
diff changeset
     4
28cb18c5e712 Add new qmlfrontend project template
unc0rr
parents:
diff changeset
     5
ApplicationWindow {
28cb18c5e712 Add new qmlfrontend project template
unc0rr
parents:
diff changeset
     6
  visible: true
28cb18c5e712 Add new qmlfrontend project template
unc0rr
parents:
diff changeset
     7
  width: 640
28cb18c5e712 Add new qmlfrontend project template
unc0rr
parents:
diff changeset
     8
  height: 480
28cb18c5e712 Add new qmlfrontend project template
unc0rr
parents:
diff changeset
     9
  title: qsTr("Hello World")
28cb18c5e712 Add new qmlfrontend project template
unc0rr
parents:
diff changeset
    10
28cb18c5e712 Add new qmlfrontend project template
unc0rr
parents:
diff changeset
    11
  SwipeView {
28cb18c5e712 Add new qmlfrontend project template
unc0rr
parents:
diff changeset
    12
    id: swipeView
28cb18c5e712 Add new qmlfrontend project template
unc0rr
parents:
diff changeset
    13
    anchors.fill: parent
28cb18c5e712 Add new qmlfrontend project template
unc0rr
parents:
diff changeset
    14
28cb18c5e712 Add new qmlfrontend project template
unc0rr
parents:
diff changeset
    15
    Page1 {
28cb18c5e712 Add new qmlfrontend project template
unc0rr
parents:
diff changeset
    16
    }
28cb18c5e712 Add new qmlfrontend project template
unc0rr
parents:
diff changeset
    17
  }
28cb18c5e712 Add new qmlfrontend project template
unc0rr
parents:
diff changeset
    18
}