(svn r23631) -Add: ScriptWindow, to manipulate windows on the client (GameScript only)
This commit is contained in:
@@ -46,6 +46,7 @@ void SQGSEvent_Register(Squirrel *engine)
|
||||
SQGSEvent.DefSQConst(engine, ScriptEvent::ET_TOWN_FOUNDED, "ET_TOWN_FOUNDED");
|
||||
SQGSEvent.DefSQConst(engine, ScriptEvent::ET_AIRCRAFT_DEST_TOO_FAR, "ET_AIRCRAFT_DEST_TOO_FAR");
|
||||
SQGSEvent.DefSQConst(engine, ScriptEvent::ET_ADMIN_PORT, "ET_ADMIN_PORT");
|
||||
SQGSEvent.DefSQConst(engine, ScriptEvent::ET_WINDOW_WIDGET_CLICK, "ET_WINDOW_WIDGET_CLICK");
|
||||
|
||||
SQGSEvent.DefSQMethod(engine, &ScriptEvent::GetEventType, "GetEventType", 1, "x");
|
||||
|
||||
|
@@ -232,3 +232,20 @@ void SQGSEventAdminPort_Register(Squirrel *engine)
|
||||
|
||||
SQGSEventAdminPort.PostRegister(engine);
|
||||
}
|
||||
|
||||
|
||||
template <> const char *GetClassName<ScriptEventWindowWidgetClick, ST_GS>() { return "GSEventWindowWidgetClick"; }
|
||||
|
||||
void SQGSEventWindowWidgetClick_Register(Squirrel *engine)
|
||||
{
|
||||
DefSQClass<ScriptEventWindowWidgetClick, ST_GS> SQGSEventWindowWidgetClick("GSEventWindowWidgetClick");
|
||||
SQGSEventWindowWidgetClick.PreRegister(engine, "GSEvent");
|
||||
|
||||
SQGSEventWindowWidgetClick.DefSQStaticMethod(engine, &ScriptEventWindowWidgetClick::Convert, "Convert", 2, ".x");
|
||||
|
||||
SQGSEventWindowWidgetClick.DefSQMethod(engine, &ScriptEventWindowWidgetClick::GetWindowClass, "GetWindowClass", 1, "x");
|
||||
SQGSEventWindowWidgetClick.DefSQMethod(engine, &ScriptEventWindowWidgetClick::GetWindowNumber, "GetWindowNumber", 1, "x");
|
||||
SQGSEventWindowWidgetClick.DefSQMethod(engine, &ScriptEventWindowWidgetClick::GetWidgetNumber, "GetWidgetNumber", 1, "x");
|
||||
|
||||
SQGSEventWindowWidgetClick.PostRegister(engine);
|
||||
}
|
||||
|
1276
src/script/api/game/game_window.hpp.sq
Normal file
1276
src/script/api/game/game_window.hpp.sq
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user