@@ -281,7 +281,6 @@ void CLuaGUIDefs::AddGuiElementClass(lua_State* luaVM)
281
281
lua_classvariable (luaVM, " text" , " guiSetText" , " guiGetText" );
282
282
lua_classvariable (luaVM, " size" , " guiSetSize" , " guiGetSize" );
283
283
lua_classvariable (luaVM, " position" , " guiSetPosition" , " guiGetPosition" );
284
- lua_classvariable (luaVM, " screenSize" , NULL , " guiGetScreenSize" );
285
284
// lua_classvariable ( luaVM, "property" "guiSetProperty", "guiGetProperty" ); todo: .property[name] = value
286
285
287
286
lua_registerclass (luaVM, " GuiElement" , " Element" );
@@ -804,7 +803,7 @@ int CLuaGUIDefs::GUICreateStaticImage(lua_State* luaVM)
804
803
else
805
804
argStream.SetCustomError (path, " Failed to create static image" );
806
805
}
807
- else
806
+ else
808
807
argStream.SetCustomError (path, " File not found" );
809
808
}
810
809
else
@@ -3195,7 +3194,7 @@ int CLuaGUIDefs::GUIEditIsMasked(lua_State* luaVM)
3195
3194
3196
3195
CScriptArgReader argStream (luaVM);
3197
3196
argStream.ReadUserData <CGUIEdit>(theElement);
3198
-
3197
+
3199
3198
if (!argStream.HasErrors ())
3200
3199
{
3201
3200
bool masked = static_cast <CGUIEdit*>(theElement->GetCGUIElement ())->IsMasked ();
@@ -3477,7 +3476,7 @@ int CLuaGUIDefs::GUIWindowIsSizable(lua_State* luaVM)
3477
3476
}
3478
3477
else
3479
3478
m_pScriptDebugging->LogCustom (luaVM, argStream.GetFullErrorMessage ());
3480
-
3479
+
3481
3480
// error: bad arguments
3482
3481
lua_pushnil (luaVM);
3483
3482
return 1 ;
@@ -3733,7 +3732,7 @@ int CLuaGUIDefs::GUIGetChatboxLayout(lua_State* luaVM)
3733
3732
else
3734
3733
lua_pushnumber (luaVM, fNumber );
3735
3734
}
3736
-
3735
+
3737
3736
// If we are asking for all CVars, push this into the table with its CVar name, otherwise just stop here
3738
3737
if (bAll)
3739
3738
lua_setfield (luaVM, -2 , g_chatboxLayoutCVars[i]);
0 commit comments