|
55 | 55 |
|
56 | 56 | if (text) then |
57 | 57 |
|
58 | | - if (parentparent:GetObjectType() == "EditBox") then |
| 58 | + if (parentparent:GetObjectType() == "EditBox") then |
59 | 59 |
|
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() |
64 | 64 |
|
65 | | - if (self.value) then |
66 | | - parentparent.value = self.value |
67 | | - end |
| 65 | + if (self.value) then |
| 66 | + parentparent.value = self.value |
| 67 | + end |
68 | 68 |
|
69 | | - elseif (edit and self.value) then |
| 69 | + elseif (edit and self.value) then |
70 | 70 |
|
71 | | - Neuron:Print("hit2") |
| 71 | + Neuron:Print("hit2") |
72 | 72 |
|
73 | | - edit:SetText("") |
74 | | - edit:SetText(self.value) |
| 73 | + edit:SetText("") |
| 74 | + edit:SetText(self.value) |
75 | 75 |
|
76 | | - elseif (edit) then |
| 76 | + elseif (edit) then |
77 | 77 |
|
78 | | - Neuron:Print("hit3") |
| 78 | + Neuron:Print("hit3") |
79 | 79 |
|
80 | | - edit:SetText("") |
81 | | - edit:SetText(text) |
82 | | - end |
| 80 | + edit:SetText("") |
| 81 | + edit:SetText(text) |
| 82 | + end |
83 | 83 | end |
84 | 84 |
|
85 | 85 | parent:Hide() |
86 | 86 | </OnClick> |
87 | 87 | <OnEnter> |
88 | 88 | 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) |
91 | 91 | end |
92 | 92 | </OnEnter> |
93 | 93 | <OnLeave> |
|
359 | 359 | self:GetParent().show = nil |
360 | 360 | self:GetParent().popup.timer = 0; |
361 | 361 | if (self:GetParent().popup:IsVisible()) then |
362 | | - self:GetParent().popup:Hide() |
| 362 | + self:GetParent().popup:Hide() |
363 | 363 | 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 |
367 | 367 | end |
368 | 368 | PlaySound(SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_ON); |
369 | 369 | </OnClick> |
|
410 | 410 | <OnUpdate> |
411 | 411 | self.timer = self.timer + elapsed |
412 | 412 | 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 |
416 | 416 | end |
417 | 417 | </OnUpdate> |
418 | 418 | </Scripts> |
|
484 | 484 | </OnLoad> |
485 | 485 | <OnEvent> |
486 | 486 | 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()) |
489 | 489 | end |
490 | 490 | </OnEvent> |
491 | 491 | <OnClick> |
492 | 492 | self:GetParent().show = nil |
493 | 493 | self:GetParent().popup.timer = 0; |
494 | 494 | if (self:GetParent().popup:IsVisible()) then |
495 | | - self:GetParent().popup:Hide() |
| 495 | + self:GetParent().popup:Hide() |
496 | 496 | 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 |
500 | 500 | end |
501 | 501 | PlaySound(SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_ON); |
502 | 502 | </OnClick> |
|
541 | 541 | <OnUpdate> |
542 | 542 | self.timer = self.timer + elapsed |
543 | 543 | 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 |
547 | 547 | end |
548 | 548 | </OnUpdate> |
549 | 549 | </Scripts> |
|
594 | 594 | <Scripts> |
595 | 595 | <OnClick> |
596 | 596 | if ( self:GetChecked() ) then |
597 | | - PlaySound(SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_ON); |
| 597 | + PlaySound(SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_ON); |
598 | 598 | else |
599 | | - PlaySound(SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_OFF); |
| 599 | + PlaySound(SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_OFF); |
600 | 600 | end |
601 | 601 | </OnClick> |
602 | 602 | <OnEnter> |
603 | 603 | 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) |
606 | 606 | end |
607 | 607 | if ( self.tooltipRequirement ) then |
608 | | - GameTooltip:AddLine(self.tooltipRequirement) |
| 608 | + GameTooltip:AddLine(self.tooltipRequirement) |
609 | 609 | end |
610 | 610 | GameTooltip:Show(); |
611 | 611 | </OnEnter> |
|
831 | 831 | <Scripts> |
832 | 832 | <OnEnter> |
833 | 833 | 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) |
836 | 836 | end |
837 | 837 | if ( self.tooltipRequirement ) then |
838 | | - GameTooltip:AddLine(self.tooltipRequirement) |
| 838 | + GameTooltip:AddLine(self.tooltipRequirement) |
839 | 839 | end |
840 | 840 | GameTooltip:Show(); |
841 | 841 | </OnEnter> |
|
898 | 898 | </OnEnter> |
899 | 899 | <OnLeave> |
900 | 900 | 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) |
902 | 902 | end |
903 | 903 | </OnLeave> |
904 | 904 | </Scripts> |
|
1002 | 1002 | </OnLoad> |
1003 | 1003 | <OnEnter> |
1004 | 1004 | 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) |
1007 | 1007 | end |
1008 | 1008 | </OnEnter> |
1009 | 1009 | <OnLeave> |
|
1037 | 1037 | </OnLoad> |
1038 | 1038 | <OnClick> |
1039 | 1039 | if (self.onclick_func) then |
1040 | | - self.onclick_func(self, button, down) |
| 1040 | + self.onclick_func(self, button, down) |
1041 | 1041 | end |
1042 | 1042 | </OnClick> |
1043 | 1043 | <OnUpdate> |
1044 | 1044 | if (self.onupdate_func) then |
1045 | | - self.onupdate_func(self, elapsed) |
| 1045 | + self.onupdate_func(self, elapsed) |
1046 | 1046 | end |
1047 | 1047 | </OnUpdate> |
1048 | 1048 | </Scripts> |
|
1095 | 1095 | <Scripts> |
1096 | 1096 | <OnClick> |
1097 | 1097 | if ( self:GetChecked() ) then |
1098 | | - PlaySound(SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_ON); |
| 1098 | + PlaySound(SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_ON); |
1099 | 1099 | else |
1100 | | - PlaySound(SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_OFF); |
| 1100 | + PlaySound(SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_OFF); |
1101 | 1101 | end |
1102 | 1102 | </OnClick> |
1103 | 1103 | <OnEnter> |
1104 | 1104 | 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) |
1107 | 1107 | end |
1108 | 1108 | if ( self.tooltipRequirement ) then |
1109 | | - GameTooltip:AddLine(self.tooltipRequirement) |
| 1109 | + GameTooltip:AddLine(self.tooltipRequirement) |
1110 | 1110 | end |
1111 | 1111 | GameTooltip:Show(); |
1112 | 1112 | </OnEnter> |
|
1149 | 1149 | self.scrollbar:SetValue(offset) |
1150 | 1150 | local min, max = self.scrollbar:GetMinMaxValues() |
1151 | 1151 | if ( offset == 0 ) then |
1152 | | - self.scrollbarup:Disable() |
| 1152 | + self.scrollbarup:Disable() |
1153 | 1153 | else |
1154 | | - self.scrollbarup:Enable() |
| 1154 | + self.scrollbarup:Enable() |
1155 | 1155 | end |
1156 | 1156 | if ((self.scrollbar:GetValue() - max) == 0) then |
1157 | | - self.scrollbardown:Disable() |
| 1157 | + self.scrollbardown:Disable() |
1158 | 1158 | else |
1159 | | - self.scrollbardown:Enable() |
| 1159 | + self.scrollbardown:Enable() |
1160 | 1160 | end |
1161 | 1161 | </OnVerticalScroll> |
1162 | 1162 | <OnMouseWheel> |
|
2112 | 2112 | </OnLoad> |
2113 | 2113 | <OnValueChanged> |
2114 | 2114 | if (NeuronColorPicker.opacityFunc) then |
2115 | | - NeuronColorPicker.opacityFunc() |
| 2115 | + NeuronColorPicker.opacityFunc() |
2116 | 2116 | end |
2117 | 2117 |
|
2118 | 2118 | if (self:GetParent().alphavalue) then |
2119 | | - self:GetParent().alphavalue:SetText(1-self:GetValue()) |
| 2119 | + self:GetParent().alphavalue:SetText(1-self:GetValue()) |
2120 | 2120 | end |
2121 | 2121 | </OnValueChanged> |
2122 | 2122 | </Scripts> |
|
2298 | 2298 | local value = self:GetText() |
2299 | 2299 | value = tonumber(value) |
2300 | 2300 | if (value) then |
2301 | | - self:GetParent().alpha:SetValue(1-value) |
| 2301 | + self:GetParent().alpha:SetValue(1-value) |
2302 | 2302 | end |
2303 | 2303 | </OnTabPressed> |
2304 | 2304 | <OnEnterPressed> |
2305 | 2305 | local value = self:GetText() |
2306 | 2306 | value = tonumber(value) |
2307 | 2307 | if (value) then |
2308 | | - self:GetParent().alpha:SetValue(1-value) |
| 2308 | + self:GetParent().alpha:SetValue(1-value) |
2309 | 2309 | end |
2310 | 2310 | </OnEnterPressed> |
2311 | 2311 | </Scripts> |
|
2325 | 2325 | PlaySound(SOUNDKIT.GS_TITLE_OPTION_OK) |
2326 | 2326 | if (self.parent.frame) then |
2327 | 2327 |
|
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 |
2331 | 2331 |
|
2332 | | - self.parent.frame:Hide() |
| 2332 | + self.parent.frame:Hide() |
2333 | 2333 |
|
2334 | 2334 | end |
2335 | 2335 | </OnClick> |
|
2349 | 2349 | <OnClick> |
2350 | 2350 | PlaySound(SOUNDKIT.GS_TITLE_OPTION_OK) |
2351 | 2351 | if (self.parent.frame) then |
2352 | | - self.parent.frame:Hide() |
| 2352 | + self.parent.frame:Hide() |
2353 | 2353 | end |
2354 | 2354 | </OnClick> |
2355 | 2355 | </Scripts> |
|
0 commit comments