include pch_script include script_ui_registrato include MainMenu inclu

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
#include "pch_script.h"
#include "script_ui_registrator.h"
#include "MainMenu.h"
#include "UIGameCustom.h"
#include "UI/UIScriptWnd.h"
#include "UI/UIButton.h"
#include "UI/UIProgressBar.h"
#include "UI/UIEditBox.h"
#include "UI/UIMessageBox.h"
#include "UI/UIPropertiesBox.h"
#include "UI/UITabControl.h"
#include "UI/UIComboBox.h"
#include "ui/UIOptionsManagerScript.h"
#include "ui/UIMapInfo.h"
#include "ScriptXmlInit.h"
//AuReN
#include "UICursor.h"
#include "ui_base.h"
//end
#include "login_manager.h"
#include "account_manager.h"
#include "profile_store.h"
using namespace luabind;
CMainMenu* MainMenu();
#pragma optimize("s",on)
void UIRegistrator::script_register(lua_State *L)
{
CUIWindow::script_register(L);
CUIStatic::script_register(L);
CUIButton::script_register(L);
CUIProgressBar::script_register(L);
CUIComboBox::script_register(L);
CUIEditBox::script_register(L);
CUITabControl::script_register(L);
CUIMessageBox::script_register(L);
CUIListBox::script_register(L);
CUIDialogWndEx::script_register(L);
CUIPropertiesBox::script_register(L);
CUIOptionsManagerScript::script_register(L);
CUIMapInfo::script_register(L);
CScriptXmlInit::script_register(L);
CUIGameCustom::script_register(L);
//AuReN
module(L,"UI")
[
class_<CUICursor>("CUICursor")
.def( "Hide", &CUICursor::Hide)
.def( "Show", &CUICursor::Show)
.def( "GetPosition", &CUICursor::GetCursorPosition)
.def( "SetPosition", &CUICursor::SetUICursorPosition),
def("GetCursor", &GetUICursor)
],
//end
module(L)
[
class_<CGameFont>("CGameFont")
.enum_("EAligment")
[
value("alLeft", int(CGameFont::alLeft)),
value("alRight", int(CGameFont::alRight)),
value("alCenter", int(CGameFont::alCenter))
],
class_<Patch_Dawnload_Progress>("Patch_Dawnload_Progress")
.def("GetInProgress", &Patch_Dawnload_Progress::GetInProgress)
.def("GetStatus", &Patch_Dawnload_Progress::GetStatus)
.def("GetFlieName", &Patch_Dawnload_Progress::GetFlieName)
.def("GetProgress", &Patch_Dawnload_Progress::GetProgress),
class_<CMainMenu>("CMainMenu")
.def("GetPatchProgress", &CMainMenu::GetPatchProgress)
.def("CancelDownload", &CMainMenu::CancelDownload)
.def("ValidateCDKey", &CMainMenu::ValidateCDKey)
.def("GetGSVer", &CMainMenu::GetGSVer)
.def("GetCDKey", &CMainMenu::GetCDKeyFromRegistry)
.def("GetPlayerName", &CMainMenu::GetPlayerName)
.def("GetDemoInfo", &CMainMenu::GetDemoInfo)
.def("GetLoginMngr", &CMainMenu::GetLoginMngr)
.def("GetAccountMngr", &CMainMenu::GetAccountMngr)
.def("GetProfileStore", &CMainMenu::GetProfileStore)
];
module(L,"main_menu")
[
def("get_main_menu", &MainMenu)
];
}