Skip to content

Commit e453508

Browse files
committed
CLuaGUIDefs: reorder memo scrollbar func defs as requested
1 parent 1a8dc0e commit e453508

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

Client/mods/deathmatch/logic/luadefs/CLuaGUIDefs.cpp

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -318,18 +318,15 @@ void CLuaGUIDefs::AddGuiMemoClass(lua_State* luaVM)
318318
lua_classfunction(luaVM, "create", "guiCreateMemo");
319319

320320
lua_classfunction(luaVM, "getCaretIndex", "guiMemoGetCaretIndex");
321-
322-
lua_classfunction(luaVM, "setCaretIndex", "guiMemoSetCaretIndex");
323-
lua_classfunction(luaVM, "setReadOnly", "guiMemoSetReadOnly");
324-
325321
lua_classfunction(luaVM, "getVerticalScrollPosition", "guiMemoGetVerticalScrollPosition");
326322

323+
lua_classfunction(luaVM, "setCaretIndex", "guiMemoSetCaretIndex");
327324
lua_classfunction(luaVM, "setVerticalScrollPosition", "guiMemoSetVerticalScrollPosition");
325+
lua_classfunction(luaVM, "setReadOnly", "guiMemoSetReadOnly");
328326

329327
lua_classvariable(luaVM, "caretIndex", "guiMemoSetCaretIndex", "guiMemoGetCaretIndex");
330-
lua_classvariable(luaVM, "readOnly", "guiMemoSetReadOnly", "guiMemoIsReadOnly");
331-
332328
lua_classvariable(luaVM, "verticalScrollPosition", "guiMemoSetVerticalScrollPosition", "guiMemoGetVerticalScrollPosition");
329+
lua_classvariable(luaVM, "readOnly", "guiMemoSetReadOnly", "guiMemoIsReadOnly");
333330

334331
lua_registerclass(luaVM, "GuiMemo", "GuiElement");
335332
}

0 commit comments

Comments
 (0)