501
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
DTG.m_animCtrl1:Connect( wx.wxEVT_LEFT_UP, function(event)
mc.mcCntlEnable(inst, 1);
SetMessage(2, "Main control enabled")
end )
DTG.m_animCtrl2:Connect( wx.wxEVT_LEFT_UP, function(event)
mc.mcCntlEnable(inst, 0);
SetMessage(2, "Main control disabled")
end )
CheckEnabled_timer = wx.wxTimer(DTG.cont_enable)
DTG.cont_enable:Connect(wx.wxEVT_TIMER,
function (event)
if mc.mcSignalGetState (mc.mcSignalGetHandle (inst, mc.OSIG_MACHINE_ENABLED)) == 1 then
DTG.m_animCtrl2:Show();
else
DTG.m_animCtrl2:Hide();
end
end)
CheckEnabled_timer:Start(20)
TimerPanel = wx.wxPanel (wx.NULL, wx.wxID_ANY, wx.wxDefaultPosition, wx.wxDefaultSize )
timer = wx.wxTimer(TimerPanel)
TimerPanel:Connect(wx.wxEVT_TIMER,
function (event)
-- Whatever code or function you need here
timer:Stop()
end)
timer:Start(10000)