@@ -36,6 +36,8 @@ def changeTileCurrent(changeTo):
3636 __mwind__ .myMapWidget .currentTile = changeTo
3737 __mwind__ .myPaletteWidget .setImageCurrent (changeTo )
3838
39+ def changeEventCurrent (changeTo ):
40+ __mwind__ .myMapWidget .currentEvent = changeTo
3941
4042def changeLayerCurrent (changeTo ):
4143 __mwind__ .myMapWidget .currentLayer = changeTo
@@ -369,8 +371,18 @@ def __init__(self, pMap, parent=None, **kwargs):
369371
370372 VBoxEventsList = QVBoxLayout ()
371373 VBoxActionList = QVBoxLayout ()
374+ VBoxLeftButtons = QVBoxLayout ()
372375 VBoxButtons = QVBoxLayout ()
373376
377+ VBoxLeftButtons .setAlignment (Qt .AlignTop )
378+
379+ self .labelEventsCurrent = QLabel ("Event Nº" )
380+ self .eventSelectSpinbox = QSpinBox (self )
381+ self .eventSelectSpinbox .setMinimum (1 )
382+ self .eventSelectSpinbox .setMaximum (100 )
383+ self .eventSelectSpinbox .setSingleStep (1 )
384+ self .eventSelectSpinbox .valueChanged .connect (changeEventCurrent )
385+
374386 self .addActionButton = QPushButton ("Add Action" , self )
375387 self .editActionButton = QPushButton ("Edit Action" , self )
376388 self .removeActionButton = QPushButton ("Remove Action" , self )
@@ -387,8 +399,12 @@ def __init__(self, pMap, parent=None, **kwargs):
387399
388400 self .HBox .addLayout (VBoxEventsList )
389401 self .HBox .addLayout (VBoxActionList )
402+ self .HBox .addLayout (VBoxLeftButtons )
390403 self .HBox .addLayout (VBoxButtons )
391404
405+ VBoxLeftButtons .addWidget (self .labelEventsCurrent )
406+ VBoxLeftButtons .addWidget (self .eventSelectSpinbox )
407+
392408 VBoxEventsList .addWidget (self .labelEventsList )
393409 VBoxEventsList .addWidget (self .EventsList )
394410
0 commit comments