Skip to content
This repository was archived by the owner on Jan 21, 2024. It is now read-only.

Commit cfd86df

Browse files
committed
small formatting fixes. Got language injection working for XML
1 parent 6fe93ce commit cfd86df

1 file changed

Lines changed: 66 additions & 66 deletions

File tree

XML/Neuron-GUI.xml

Lines changed: 66 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -55,39 +55,39 @@
5555

5656
if (text) then
5757

58-
if (parentparent:GetObjectType() == "EditBox") then
58+
if (parentparent:GetObjectType() == "EditBox") then
5959

60-
parentparent:SetText("")
61-
parentparent:SetText(text)
62-
parentparent:SetFocus()
63-
parentparent:ClearFocus()
60+
parentparent:SetText("")
61+
parentparent:SetText(text)
62+
parentparent:SetFocus()
63+
parentparent:ClearFocus()
6464

65-
if (self.value) then
66-
parentparent.value = self.value
67-
end
65+
if (self.value) then
66+
parentparent.value = self.value
67+
end
6868

69-
elseif (edit and self.value) then
69+
elseif (edit and self.value) then
7070

71-
Neuron:Print("hit2")
71+
Neuron:Print("hit2")
7272

73-
edit:SetText("")
74-
edit:SetText(self.value)
73+
edit:SetText("")
74+
edit:SetText(self.value)
7575

76-
elseif (edit) then
76+
elseif (edit) then
7777

78-
Neuron:Print("hit3")
78+
Neuron:Print("hit3")
7979

80-
edit:SetText("")
81-
edit:SetText(text)
82-
end
80+
edit:SetText("")
81+
edit:SetText(text)
82+
end
8383
end
8484

8585
parent:Hide()
8686
</OnClick>
8787
<OnEnter>
8888
if (self.tooltip) then
89-
GameTooltip:SetOwner(self, "ANCHOR_CURSOR")
90-
GameTooltip:SetText(self.tooltip)
89+
GameTooltip:SetOwner(self, "ANCHOR_CURSOR")
90+
GameTooltip:SetText(self.tooltip)
9191
end
9292
</OnEnter>
9393
<OnLeave>
@@ -359,11 +359,11 @@
359359
self:GetParent().show = nil
360360
self:GetParent().popup.timer = 0;
361361
if (self:GetParent().popup:IsVisible()) then
362-
self:GetParent().popup:Hide()
362+
self:GetParent().popup:Hide()
363363
else
364-
if (self:GetParent().popup.data) then
365-
self:GetParent().popup:Show()
366-
end
364+
if (self:GetParent().popup.data) then
365+
self:GetParent().popup:Show()
366+
end
367367
end
368368
PlaySound(SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_ON);
369369
</OnClick>
@@ -410,9 +410,9 @@
410410
<OnUpdate>
411411
self.timer = self.timer + elapsed
412412
if (self:IsVisible() and self.timer > 5) then
413-
if (not self:IsMouseOver()) then
414-
self:Hide()
415-
end
413+
if (not self:IsMouseOver()) then
414+
self:Hide()
415+
end
416416
end
417417
</OnUpdate>
418418
</Scripts>
@@ -484,19 +484,19 @@
484484
</OnLoad>
485485
<OnEvent>
486486
if (... == "Neuron") then
487-
self:SetWidth(self:GetParent():GetHeight())
488-
self:SetHeight(self:GetParent():GetHeight())
487+
self:SetWidth(self:GetParent():GetHeight())
488+
self:SetHeight(self:GetParent():GetHeight())
489489
end
490490
</OnEvent>
491491
<OnClick>
492492
self:GetParent().show = nil
493493
self:GetParent().popup.timer = 0;
494494
if (self:GetParent().popup:IsVisible()) then
495-
self:GetParent().popup:Hide()
495+
self:GetParent().popup:Hide()
496496
else
497-
if (self:GetParent().popup.data) then
498-
self:GetParent().popup:Show()
499-
end
497+
if (self:GetParent().popup.data) then
498+
self:GetParent().popup:Show()
499+
end
500500
end
501501
PlaySound(SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_ON);
502502
</OnClick>
@@ -541,9 +541,9 @@
541541
<OnUpdate>
542542
self.timer = self.timer + elapsed
543543
if (self:IsVisible() and self.timer > 5) then
544-
if (not self:IsMouseOver()) then
545-
self:Hide()
546-
end
544+
if (not self:IsMouseOver()) then
545+
self:Hide()
546+
end
547547
end
548548
</OnUpdate>
549549
</Scripts>
@@ -594,18 +594,18 @@
594594
<Scripts>
595595
<OnClick>
596596
if ( self:GetChecked() ) then
597-
PlaySound(SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_ON);
597+
PlaySound(SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_ON);
598598
else
599-
PlaySound(SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_OFF);
599+
PlaySound(SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_OFF);
600600
end
601601
</OnClick>
602602
<OnEnter>
603603
if ( self.tooltipText ) then
604-
GameTooltip:SetOwner(self, self.tooltipOwnerPoint or "ANCHOR_RIGHT")
605-
GameTooltip:SetText(self.tooltipText)
604+
GameTooltip:SetOwner(self, self.tooltipOwnerPoint or "ANCHOR_RIGHT")
605+
GameTooltip:SetText(self.tooltipText)
606606
end
607607
if ( self.tooltipRequirement ) then
608-
GameTooltip:AddLine(self.tooltipRequirement)
608+
GameTooltip:AddLine(self.tooltipRequirement)
609609
end
610610
GameTooltip:Show();
611611
</OnEnter>
@@ -831,11 +831,11 @@
831831
<Scripts>
832832
<OnEnter>
833833
if ( self.tooltipText ) then
834-
GameTooltip:SetOwner(self, self.tooltipOwnerPoint or "ANCHOR_RIGHT")
835-
GameTooltip:SetText(self.tooltipText)
834+
GameTooltip:SetOwner(self, self.tooltipOwnerPoint or "ANCHOR_RIGHT")
835+
GameTooltip:SetText(self.tooltipText)
836836
end
837837
if ( self.tooltipRequirement ) then
838-
GameTooltip:AddLine(self.tooltipRequirement)
838+
GameTooltip:AddLine(self.tooltipRequirement)
839839
end
840840
GameTooltip:Show();
841841
</OnEnter>
@@ -898,7 +898,7 @@
898898
</OnEnter>
899899
<OnLeave>
900900
if (not self.selected) then
901-
self:SetBackdropColor(0.7,0.7,0.7,1)
901+
self:SetBackdropColor(0.7,0.7,0.7,1)
902902
end
903903
</OnLeave>
904904
</Scripts>
@@ -1002,8 +1002,8 @@
10021002
</OnLoad>
10031003
<OnEnter>
10041004
if (self.tooltip) then
1005-
GameTooltip:SetOwner(self, "ANCHOR_CURSOR")
1006-
GameTooltip:SetText(self.tooltip)
1005+
GameTooltip:SetOwner(self, "ANCHOR_CURSOR")
1006+
GameTooltip:SetText(self.tooltip)
10071007
end
10081008
</OnEnter>
10091009
<OnLeave>
@@ -1037,12 +1037,12 @@
10371037
</OnLoad>
10381038
<OnClick>
10391039
if (self.onclick_func) then
1040-
self.onclick_func(self, button, down)
1040+
self.onclick_func(self, button, down)
10411041
end
10421042
</OnClick>
10431043
<OnUpdate>
10441044
if (self.onupdate_func) then
1045-
self.onupdate_func(self, elapsed)
1045+
self.onupdate_func(self, elapsed)
10461046
end
10471047
</OnUpdate>
10481048
</Scripts>
@@ -1095,18 +1095,18 @@
10951095
<Scripts>
10961096
<OnClick>
10971097
if ( self:GetChecked() ) then
1098-
PlaySound(SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_ON);
1098+
PlaySound(SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_ON);
10991099
else
1100-
PlaySound(SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_OFF);
1100+
PlaySound(SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_OFF);
11011101
end
11021102
</OnClick>
11031103
<OnEnter>
11041104
if ( self.tooltipText ) then
1105-
GameTooltip:SetOwner(self, self.tooltipOwnerPoint or "ANCHOR_RIGHT")
1106-
GameTooltip:SetText(self.tooltipText)
1105+
GameTooltip:SetOwner(self, self.tooltipOwnerPoint or "ANCHOR_RIGHT")
1106+
GameTooltip:SetText(self.tooltipText)
11071107
end
11081108
if ( self.tooltipRequirement ) then
1109-
GameTooltip:AddLine(self.tooltipRequirement)
1109+
GameTooltip:AddLine(self.tooltipRequirement)
11101110
end
11111111
GameTooltip:Show();
11121112
</OnEnter>
@@ -1149,14 +1149,14 @@
11491149
self.scrollbar:SetValue(offset)
11501150
local min, max = self.scrollbar:GetMinMaxValues()
11511151
if ( offset == 0 ) then
1152-
self.scrollbarup:Disable()
1152+
self.scrollbarup:Disable()
11531153
else
1154-
self.scrollbarup:Enable()
1154+
self.scrollbarup:Enable()
11551155
end
11561156
if ((self.scrollbar:GetValue() - max) == 0) then
1157-
self.scrollbardown:Disable()
1157+
self.scrollbardown:Disable()
11581158
else
1159-
self.scrollbardown:Enable()
1159+
self.scrollbardown:Enable()
11601160
end
11611161
</OnVerticalScroll>
11621162
<OnMouseWheel>
@@ -2112,11 +2112,11 @@
21122112
</OnLoad>
21132113
<OnValueChanged>
21142114
if (NeuronColorPicker.opacityFunc) then
2115-
NeuronColorPicker.opacityFunc()
2115+
NeuronColorPicker.opacityFunc()
21162116
end
21172117

21182118
if (self:GetParent().alphavalue) then
2119-
self:GetParent().alphavalue:SetText(1-self:GetValue())
2119+
self:GetParent().alphavalue:SetText(1-self:GetValue())
21202120
end
21212121
</OnValueChanged>
21222122
</Scripts>
@@ -2298,14 +2298,14 @@
22982298
local value = self:GetText()
22992299
value = tonumber(value)
23002300
if (value) then
2301-
self:GetParent().alpha:SetValue(1-value)
2301+
self:GetParent().alpha:SetValue(1-value)
23022302
end
23032303
</OnTabPressed>
23042304
<OnEnterPressed>
23052305
local value = self:GetText()
23062306
value = tonumber(value)
23072307
if (value) then
2308-
self:GetParent().alpha:SetValue(1-value)
2308+
self:GetParent().alpha:SetValue(1-value)
23092309
end
23102310
</OnEnterPressed>
23112311
</Scripts>
@@ -2325,11 +2325,11 @@
23252325
PlaySound(SOUNDKIT.GS_TITLE_OPTION_OK)
23262326
if (self.parent.frame) then
23272327

2328-
if (self.parent.frame.updateFunc) then
2329-
self.parent.frame.updateFunc(self.parent.frame)
2330-
end
2328+
if (self.parent.frame.updateFunc) then
2329+
self.parent.frame.updateFunc(self.parent.frame)
2330+
end
23312331

2332-
self.parent.frame:Hide()
2332+
self.parent.frame:Hide()
23332333

23342334
end
23352335
</OnClick>
@@ -2349,7 +2349,7 @@
23492349
<OnClick>
23502350
PlaySound(SOUNDKIT.GS_TITLE_OPTION_OK)
23512351
if (self.parent.frame) then
2352-
self.parent.frame:Hide()
2352+
self.parent.frame:Hide()
23532353
end
23542354
</OnClick>
23552355
</Scripts>

0 commit comments

Comments
 (0)