[nostalgia] Fix oxPanic parameter order
This commit is contained in:
@@ -11,7 +11,7 @@ import QtQuick 2.0
|
||||
Rectangle {
|
||||
id: pixel;
|
||||
property int pixelNumber: index
|
||||
color: sheetData.palette[pixelNumber < sheetData.pixels.length ? sheetData.pixels[pixelNumber] : 0]
|
||||
color: sheetData ? sheetData.palette[pixelNumber < sheetData.pixels.length ? sheetData.pixels[pixelNumber] : 0] : 'black'
|
||||
width: parent.width / 8
|
||||
height: parent.height / 8
|
||||
border.color: '#717d7e'
|
||||
|
||||
@@ -17,6 +17,7 @@ ScrollView {
|
||||
contentWidth: tileGrid.width
|
||||
contentHeight: tileGrid.height
|
||||
clip: true
|
||||
focusPolicy: Qt.WheelFocus
|
||||
|
||||
background: Rectangle {
|
||||
color: '#717d7e'
|
||||
@@ -24,7 +25,8 @@ ScrollView {
|
||||
|
||||
MouseArea {
|
||||
id: mouseArea
|
||||
anchors.fill: parent
|
||||
width: tileSheetEditor.width
|
||||
height: tileSheetEditor.height
|
||||
acceptedButtons: Qt.LeftButton
|
||||
|
||||
onPressed: {
|
||||
@@ -76,8 +78,8 @@ ScrollView {
|
||||
height: tileGrid.rows * tileGrid.baseTileSize * tileGrid.scaleFactor
|
||||
//anchors.horizontalCenter: parent.horizontalCenter
|
||||
//anchors.verticalCenter: parent.verticalCenter
|
||||
rows: sheetData.rows
|
||||
columns: sheetData.columns
|
||||
rows: sheetData ? sheetData.rows : 1
|
||||
columns: sheetData ? sheetData.columns : 1
|
||||
Repeater {
|
||||
model: tileGrid.rows * tileGrid.columns
|
||||
Tile {
|
||||
|
||||
Reference in New Issue
Block a user