summaryrefslogtreecommitdiff
path: root/src/editorui
diff options
context:
space:
mode:
authorColin Noga <Tempus@Spectrum-Song.local>2011-11-23 08:08:33 -0600
committerColin Noga <Tempus@Spectrum-Song.local>2011-11-23 08:08:33 -0600
commit69fa0ef1a241ae9609936def65f3168fee7e260e (patch)
tree25d133a9707d60382ff9fea947bdfe430aa4f46b /src/editorui
parent0c68efbbcfeb63ea3196d9f16769ed0621a5dfa9 (diff)
downloadkoopatlas-69fa0ef1a241ae9609936def65f3168fee7e260e.tar.gz
koopatlas-69fa0ef1a241ae9609936def65f3168fee7e260e.zip
Icons for the animation picker
Diffstat (limited to '')
-rw-r--r--src/editorui/paths.py18
1 files changed, 13 insertions, 5 deletions
diff --git a/src/editorui/paths.py b/src/editorui/paths.py
index 7e3d484..d7a59be 100644
--- a/src/editorui/paths.py
+++ b/src/editorui/paths.py
@@ -267,13 +267,14 @@ class KPEditorPath(QtGui.QGraphicsLineItem):
self._pathRef = pathRef
+ TopLayout = QtGui.QGridLayout()
Layout = QtGui.QGridLayout()
# Make an exclusive button group for our animations.
AnimationList = ["Walk", "WalkSand", "WalkSnow", "WalkIce",
"Jump", "JumpSand", "JumpSnow", "SpinJump",
- "Ladder", "LeftLadder", "RightLadder", "Ivy",
- "Swim", "Roll", "Pipe", "Door"]
+ "Ladder", "LadderLeft", "LadderRight", "Fall",
+ "Swim", "Run", "Pipe", "Door"]
self.ExclusiveButtons = QtGui.QButtonGroup()
@@ -281,18 +282,24 @@ class KPEditorPath(QtGui.QGraphicsLineItem):
j = 1
id = 0
for anim in AnimationList:
- newButton = QtGui.QPushButton(QtGui.QIcon("Resources/Anm" + anim), anim)
+ newButton = QtGui.QPushButton(QtGui.QIcon("Resources/Anm/" + anim), "")
newButton.setCheckable(True)
+ newButton.setIconSize(QtCore.QSize(38, 38))
+ newButton.setToolTip(anim)
self.ExclusiveButtons.addButton(newButton, id)
Layout.addWidget(newButton, j, i)
+ if id == 0:
+ newButton.setChecked(True)
+
id += 1
i += 1
if i == 4:
i = 0
j += 1
+
# Movement Speed Spin Box
self.moveSpeedSpinner = QtGui.QDoubleSpinBox()
@@ -302,14 +309,14 @@ class KPEditorPath(QtGui.QGraphicsLineItem):
self.moveSpeedSpinner.setSingleStep(0.05)
self.moveSpeedSpinner.setValue(1.0)
- Layout.addWidget(self.moveSpeedSpinner, 0, 0)
+ TopLayout.addWidget(self.moveSpeedSpinner, 0, 0)
# Layer Combo Box
self.linkedLayer = QtGui.QComboBox(self)
self.linkedLayer.setModel(KP.map.layerModel)
- Layout.addWidget(self.linkedLayer, 0, 1, 1, 3)
+ TopLayout.addWidget(self.linkedLayer, 0, 1, 1, 3)
# Connections
@@ -319,6 +326,7 @@ class KPEditorPath(QtGui.QGraphicsLineItem):
self.linkedLayer.currentIndexChanged.connect(self.updateLinkLayer)
# Layout
+ Layout.addLayout(TopLayout, 0, 0, 1, 4)
self.setLayout(Layout)