parent
fb7a7d28f6
commit
263f1ffa0b
16 changed files with 48 additions and 47 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,41 @@ |
||||
Scriptname _00E_Func_ReferenceFormList Hidden |
||||
|
||||
Function Enable(FormList referenceList) Global |
||||
|
||||
Int nItems = referenceList.GetSize() |
||||
Int i = 0 |
||||
|
||||
If nItems < 128 && nItems > 1 |
||||
Form[] refArray = referenceList.ToArray() |
||||
While i < nItems |
||||
(refArray[i] as ObjectReference).EnableNoWait() |
||||
i += 1 |
||||
EndWhile |
||||
Else |
||||
While i < nItems |
||||
(referenceList.GetAt(i) as ObjectReference).EnableNoWait() |
||||
i += 1 |
||||
EndWhile |
||||
EndIf |
||||
|
||||
EndFunction |
||||
|
||||
Function Disable(FormList referenceList) Global |
||||
|
||||
Int nItems = referenceList.GetSize() |
||||
Int i = 0 |
||||
|
||||
If nItems < 128 && nItems > 1 |
||||
Form[] refArray = referenceList.ToArray() |
||||
While i < nItems |
||||
(refArray[i] as ObjectReference).DisableNoWait() |
||||
i += 1 |
||||
EndWhile |
||||
Else |
||||
While i < nItems |
||||
(referenceList.GetAt(i) as ObjectReference).DisableNoWait() |
||||
i += 1 |
||||
EndWhile |
||||
EndIf |
||||
|
||||
EndFunction |
Loading…
Reference in new issue