diff MainPage.xml @ 13:6cb9a2936580

Miscellanous Lua code consistency improvements: - no semicolon except between statements on same line - use of implicit cast to bool in if/while conditions, instead of various eq/neq against true, false or nil - no parenthesis around if/while conditions (C-ism) - avoid long function calls in if conditions - removed space in comma-separated expressions lists in multiple assignments - added spaces between arguments of functions calls - use tabs for indentation (in Lua files only) - don't reverse == in if conditions, like "if 42==foo then" (C-ism) - removed some extra parenthesis in complex expressions (C-ism) - added spaces around operators in most expressions for ease of reading - added comma after last element of table initializers - removed space after # operator - moved comment prefix of disabled code into tab (to keep disabled code aligned)
author madcatzinc@35b17cf1-18cd-47ff-9ca3-31d6b526ef09
date Thu, 25 Apr 2013 01:29:45 +0000
parents d186f8cd5000
children 67ad1101ee10
line wrap: on
line diff
--- a/MainPage.xml	Tue Apr 16 15:19:23 2013 +0000
+++ b/MainPage.xml	Thu Apr 25 01:29:45 2013 +0000
@@ -25,16 +25,16 @@
 	<Button name="CyborgMMO_TemplateCallbackButton" virtual="true" inherits="CyborgMMO_TemplateIcon">
 		<Scripts>
 			<OnLoad>
-				self = CyborgMMO_CallbackIcons.new(self);
+				self = CyborgMMO_CallbackIcons.new(self)
 			</OnLoad>
 			<OnClick>
-				self.OnClick();
+				self.OnClick()
 			</OnClick>
 			<OnDragStart>
-				self.DragStart();
+				self.DragStart()
 			</OnDragStart>
 			<OnDragStop>
-				self.DragStop();
+				self.DragStop()
 			</OnDragStop>
 		</Scripts>
 	</Button>
@@ -192,8 +192,8 @@
 			</Frame>
 		</Frames>
 		<Scripts>
-			<OnLoad>CyborgMMO_Loaded();</OnLoad>
-			<OnEvent>CyborgMMO_Event(this, event,...);</OnEvent>
+			<OnLoad>CyborgMMO_Loaded()</OnLoad>
+			<OnEvent>CyborgMMO_Event(this, event, ...)</OnEvent>
 		</Scripts>
 	</Frame>
 </Ui>