MCPcopy Create free account
hub / github.com/SOUI2/soui / ExpLua_Ctrls

Function ExpLua_Ctrls

components/ScriptModule-LUA/src/exports/exp_ctrls.h:15–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13
14
15BOOL ExpLua_Ctrls(lua_State *L)
16{
17 try{
18 lua_tinker::class_add<SComboBase>(L,"SComboBoxBase");
19 lua_tinker::class_inh<SComboBase,SWindow>(L);
20// lua_tinker::class_def<SComboBoxBase>(L,"toSWindow",&SComboBoxBase::toSWindow);
21 lua_tinker::class_def<SComboBase>(L,"GetCurSel",&SComboBase::GetCurSel);
22 lua_tinker::class_def<SComboBase>(L,"GetCount",&SComboBase::GetCount);
23 lua_tinker::class_def<SComboBase>(L,"SetCurSel",&SComboBase::SetCurSel);
24 lua_tinker::class_def<SComboBase>(L,"GetLBText",&SComboBase::GetLBText);
25 lua_tinker::class_def<SComboBase>(L,"FindString",&SComboBase::FindString);
26 lua_tinker::class_def<SComboBase>(L,"DropDown",&SComboBase::DropDown);
27 lua_tinker::class_def<SComboBase>(L,"CloseUp",&SComboBase::CloseUp);
28 lua_tinker::def(L,"toComboboxBase",toSComboboxBase);
29
30 lua_tinker::class_add<SComboBox>(L,"SComboBox");
31 lua_tinker::class_inh<SComboBox,SComboBase>(L);
32 lua_tinker::class_def<SComboBox>(L,"InsertItem",&SComboBox::InsertItem);
33 lua_tinker::class_def<SComboBox>(L,"DeleteString",&SComboBox::DeleteString);
34 lua_tinker::class_def<SComboBox>(L,"ResetContent",&SComboBox::ResetContent);
35 lua_tinker::class_def<SComboBox>(L,"GetLBText",&SComboBox::GetLBText);
36 lua_tinker::class_def<SComboBox>(L,"GetListBox",&SComboBox::GetListBox);
37 lua_tinker::class_def<SComboBox>(L,"GetItemData",&SComboBox::GetItemData);
38 lua_tinker::class_def<SComboBox>(L,"SetItemData",&SComboBox::SetItemData);
39 lua_tinker::def(L,"toCombobox",toSCombobox);
40
41
42 return TRUE;
43 }catch(...)
44 {
45 return FALSE;
46 }
47}

Callers 1

SOUI_Export_LuaFunction · 0.85

Calls 1

defFunction · 0.85

Tested by

no test coverage detected