mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-14 02:27:40 -04:00
@ -722,6 +722,13 @@ void cyMisc::ExcludeRegionSetNow(pyKey& sender, pyKey& exKey, UInt16 state)
|
||||
plgDispatch::MsgSend( msg ); // whoosh... off it goes
|
||||
}
|
||||
|
||||
void cyMisc::FlashWindow()
|
||||
{
|
||||
plKey clientKey = hsgResMgr::ResMgr()->FindKey(kClient_KEY);
|
||||
plClientMsg* pMsg = new plClientMsg(plClientMsg::kFlashWindow);
|
||||
pMsg->Send(clientKey); // whoosh... off it goes
|
||||
}
|
||||
|
||||
#include "hsTimer.h"
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
|
@ -244,6 +244,15 @@ public:
|
||||
//
|
||||
static hsBool WasLocallyNotified(pyKey &selfkey);
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Function : FlashWindow
|
||||
// PARAMETERS :
|
||||
//
|
||||
// PURPOSE : Flashes the client window if it is not focused
|
||||
//
|
||||
static void FlashWindow();
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Function : GetClientName
|
||||
|
@ -48,6 +48,8 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
|
||||
#include <python.h>
|
||||
|
||||
PYTHON_BASIC_GLOBAL_METHOD_DEFINITION(PtFlashWindow, cyMisc::FlashWindow, "Flashes the client window if it is not focused");
|
||||
|
||||
PYTHON_GLOBAL_METHOD_DEFINITION_NOARGS(PtGetAgeName, "DEPRECIATED - use ptDniInfoSource instead")
|
||||
{
|
||||
return PyString_FromString(cyMisc::GetAgeName());
|
||||
@ -496,6 +498,8 @@ PYTHON_GLOBAL_METHOD_DEFINITION(PtDumpLogs, args, "Params: folder\nDumps all cur
|
||||
|
||||
void cyMisc::AddPlasmaMethods(std::vector<PyMethodDef> &methods)
|
||||
{
|
||||
PYTHON_GLOBAL_METHOD_NOARGS(methods, PtFlashWindow);
|
||||
|
||||
PYTHON_GLOBAL_METHOD_NOARGS(methods, PtGetAgeName);
|
||||
PYTHON_GLOBAL_METHOD_NOARGS(methods, PtGetAgeInfo);
|
||||
PYTHON_GLOBAL_METHOD_NOARGS(methods, PtGetAgeTime);
|
||||
|
Reference in New Issue
Block a user