Mercurial > wow > cyborg-mmo7
comparison RatPage.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 | f02cf040133c |
comparison
equal
deleted
inserted
replaced
| 12:72b92b3e476e | 13:6cb9a2936580 |
|---|---|
| 49 </Button> | 49 </Button> |
| 50 | 50 |
| 51 <Button name="CyborgMMO_TemplateSlot" inherits="CyborgMMO_TemplateIcon" virtual="true"> | 51 <Button name="CyborgMMO_TemplateSlot" inherits="CyborgMMO_TemplateIcon" virtual="true"> |
| 52 <Scripts> | 52 <Scripts> |
| 53 <OnLoad> | 53 <OnLoad> |
| 54 self = CyborgMMO_SlotView.new(self); | 54 self = CyborgMMO_SlotView.new(self) |
| 55 </OnLoad> | 55 </OnLoad> |
| 56 <OnMouseDown> | 56 <OnMouseDown> |
| 57 if(button == "LeftButton") then | 57 if button == "LeftButton" then |
| 58 self.Clicked(); | 58 self.Clicked() |
| 59 end | 59 end |
| 60 </OnMouseDown> | 60 </OnMouseDown> |
| 61 | 61 |
| 62 </Scripts> | 62 </Scripts> |
| 63 </Button> | 63 </Button> |
| 76 <NormalFont style="GameFontNormal" /> | 76 <NormalFont style="GameFontNormal" /> |
| 77 <HighlightFont style="GameFontHighlight" /> | 77 <HighlightFont style="GameFontHighlight" /> |
| 78 <DisabledFont style="GameFontDisable" /> | 78 <DisabledFont style="GameFontDisable" /> |
| 79 <Scripts> | 79 <Scripts> |
| 80 <OnLoad> | 80 <OnLoad> |
| 81 self = CyborgMMO_ModeView.new(self); | 81 self = CyborgMMO_ModeView.new(self) |
| 82 </OnLoad> | 82 </OnLoad> |
| 83 <OnClick> | 83 <OnClick> |
| 84 self.Clicked(); | 84 self.Clicked() |
| 85 </OnClick> | 85 </OnClick> |
| 86 </Scripts> | 86 </Scripts> |
| 87 </Button> | 87 </Button> |
| 88 | 88 |
| 89 <!-- The Rat Page Frame --> | 89 <!-- The Rat Page Frame --> |
| 471 </Anchors> | 471 </Anchors> |
| 472 </Button> | 472 </Button> |
| 473 </Frames> | 473 </Frames> |
| 474 <Scripts> | 474 <Scripts> |
| 475 <OnLoad> | 475 <OnLoad> |
| 476 self = CyborgMMO_RatPageView.new(self); | 476 self = CyborgMMO_RatPageView.new(self) |
| 477 </OnLoad> | 477 </OnLoad> |
| 478 </Scripts> | 478 </Scripts> |
| 479 </Frame> | 479 </Frame> |
| 480 </Ui> | 480 </Ui> |
