Add main tab to API

This commit is contained in:
GriffinR
2021-12-10 01:54:27 -05:00
committed by huderlem
parent 8f62268d00
commit fee9ffcd44
5 changed files with 37 additions and 1 deletions

View File

@@ -15,6 +15,7 @@ enum CallbackType {
OnMapOpened,
OnMapResized,
OnTilesetUpdated,
OnTabChanged,
};
class Scripting
@@ -38,6 +39,7 @@ public:
static void cb_MapOpened(QString mapName);
static void cb_MapResized(int oldWidth, int oldHeight, int newWidth, int newHeight);
static void cb_TilesetUpdated(QString tilesetName);
static void cb_TabChanged(int oldTab, int newTab);
static bool tryErrorJS(QJSValue js);
private: