Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#125 tank icon #127

Merged
merged 1 commit into from
Nov 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
132 changes: 132 additions & 0 deletions NERODesign/content/TankIcon.qml
Original file line number Diff line number Diff line change
@@ -0,0 +1,132 @@
import QtQuick 2.15

Item {
width: 400
height: 300

property real barrelAngle: 0

Rectangle {
width: 170
height: 40
radius: height / 2
color: "black"
anchors.verticalCenterOffset: 14
anchors.horizontalCenter: parent.horizontalCenter
anchors.verticalCenter: parent.verticalCenter
}

Rectangle {
width: 55
height: 20
radius: height / 2
color: "black"
anchors.verticalCenterOffset: 13
anchors.horizontalCenter: parent.horizontalCenter
anchors.verticalCenter: parent.verticalCenter
rotation: -22
anchors.horizontalCenterOffset: -89
}

Rectangle {
width: 55
height: 20
radius: height / 2
color: "black"
anchors.verticalCenterOffset: 13
anchors.horizontalCenter: parent.horizontalCenter
anchors.verticalCenter: parent.verticalCenter
rotation: 22
anchors.horizontalCenterOffset: 89
}

Item {

width: 250
height: 35
clip: true
anchors.verticalCenterOffset: 30
anchors.horizontalCenter: parent.horizontalCenter
anchors.verticalCenter: parent.verticalCenter

Rectangle {
width: 250
height: 100
radius: height / 2
color: "black"
anchors.verticalCenterOffset: 15
anchors.verticalCenter: parent.verticalCenter

}
}

Rectangle {
width: 250
height: 45
radius: height / 2
color: "black"
anchors.verticalCenterOffset: 75
anchors.horizontalCenter: parent.horizontalCenter
anchors.verticalCenter: parent.verticalCenter
}

Rectangle {
id: turretTop
width: 100
height: 50
radius: height / 2
color: "black"
anchors.verticalCenterOffset: -50
anchors.horizontalCenter: parent.horizontalCenter
anchors.verticalCenter: parent.verticalCenter

Rectangle {
id: tankHatch
width: 35
height: 20
radius: height / 5
color: "black"
anchors.verticalCenterOffset: -19
anchors.horizontalCenter: parent.horizontalCenter
anchors.verticalCenter: parent.verticalCenter
}

}

Rectangle {
id: turretBottom
width: 100
height: 40
color: "black"
anchors.verticalCenterOffset: -30
anchors.horizontalCenter: parent.horizontalCenter
anchors.verticalCenter: parent.verticalCenter

Rectangle {
id: barrel
width: 140
height: 16
color: "black"
anchors.verticalCenterOffset: -5
anchors.verticalCenter: parent.verticalCenter
anchors.left: parent.left
anchors.leftMargin: 50
transformOrigin: Item.Left
rotation: barrelAngle

Rectangle {
id: barrelTip
width: 35
height: 25
radius: height / 4
color: "black"
anchors.horizontalCenterOffset: 75
anchors.verticalCenter: parent.verticalCenter
anchors.horizontalCenter: parent.horizontalCenter
}
}



}
}
Loading