diff options
Diffstat (limited to '')
| -rw-r--r-- | src/editorui/paths.py | 18 | 
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) | 
