Joined: 07 Nov 2008 Posts: 4438 Location: W kraju nad Wisla. UTC+01:00
Posted: Thu Nov 10, 2016 5:52 am Post subject:
so, let's say you have MainScript and ChildScript1, ChildScript2, ChildScript3, ...
And memory record with MainScript also acts as GroupHeader and you set
"Activating this entry activates it's children" and "Deactivating this entry deactivates it's children"
If memory record with MainScript has a description "main script" you can use this Lua script:
Code:
MRmainscript = getTableEntry("main script")
function CEButton1Click(sender)
MRmainscript.Active = not MRmainscript.Active
end
(I assume you created your own GUI with FormDesigner and created a button with OnClick event) _________________
Joined: 17 May 2016 Posts: 95 Location: orderandhacks
Posted: Thu Nov 10, 2016 11:35 am Post subject:
mgr.inz.Player wrote:
so, let's say you have MainScript and ChildScript1, ChildScript2, ChildScript3, ...
And memory record with MainScript also acts as GroupHeader and you set
"Activating this entry activates it's children" and "Deactivating this entry deactivates it's children"
If memory record with MainScript has a description "main script" you can use this Lua script:
Code:
MRmainscript = getTableEntry("main script")
function CEButton1Click(sender)
MRmainscript.Active = not MRmainscript.Active
end
(I assume you created your own GUI with FormDesigner and created a button with OnClick event)
It won't activate I created a OnClick Event for the Button then simply typed out what you said here replacing ("Main Script") with my Script name _________________
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum