Statistics: Posted by RoLa — 31 Oct 2013, 23:01
Statistics: Posted by RoLa — 31 Oct 2013, 21:52
newReplaySession = QtCore.pyqtSignal(str)
self.client.newReplaySession.connect(self.openReplayChat)
@QtCore.pyqtSlot(str)
def openReplayChat(self, uid)
...
def pressed(self, item):
...
actionReplaySession = QtGui.QAction("Replay Session", menu)
actionReplaySession.triggered.connect(self.startReplaySession)
menu.addAction(actionReplaySession)
...
def startReplaySession(self,uid):
self.parent.client.newReplaySession.emit(uid)
Statistics: Posted by RoLa — 31 Oct 2013, 11:02
self.client.<signalName>.connect(self.<function>)
Statistics: Posted by Ze_PilOt — 31 Oct 2013, 09:33
Statistics: Posted by RoLa — 31 Oct 2013, 00:35
local lasttimer = GetGameTimeSeconds()
function MyBeat()
if SessionIsReplay() then
if (GetGameTimeSeconds()-lasttimer) > 5.0 then
lasttimer = GetGameTimeSeconds()
local playertimes = import('/mods/MyMod/modules/playertimes.lua').Playertimes
LOG("MyBeat: " .. GetGameTimeSeconds())
LOG( playertimes )
--SessionRequestPause()
--SessionResume()
end
end
end
Statistics: Posted by RoLa — 28 Oct 2013, 18:26