View previous topic :: View next topic |
Author |
Message |
ErcHimA Newbie cheater Reputation: 0
Joined: 07 Oct 2013 Posts: 18 Location: In Your Heart :P
|
Posted: Sat Oct 11, 2014 1:25 pm Post subject: How to Hide UDF2 before i press command show UDF 2? |
|
|
hello, i want to hide UDF2
and UDF2 will show if i press this button
how to it?
Description: |
|
Filesize: |
529.97 KB |
Viewed: |
10675 Time(s) |
|
|
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 457
Joined: 09 May 2003 Posts: 25262 Location: The netherlands
|
Posted: Sat Oct 11, 2014 1:44 pm Post subject: |
|
|
There's a small bug in 6.4 where forms are visible by default.
To work arround that do the following:
before saving go into form editing mode for UDF2
Then open a lua engine window and execute "UDF2.Visible=false"
then close the form designer and save
that will prevent UDF2 from being visible when the table loads (you can also do that for UDF1 if you like)
As for the question to show it on buttonclick:
To your button's OnClick event hang a function that calls "UDF2.Visible=true"
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
|
panraven Grandmaster Cheater Reputation: 54
Joined: 01 Oct 2008 Posts: 941
|
Posted: Sat Oct 11, 2014 1:50 pm Post subject: |
|
|
Before execute your Lua script,
1st close the form designer (the bar with 'file' menu) and all the form.
Then you need a function to show UDF2 that attached to CEButton1's OnClick event, ie. <oops! correction>
Code: | UDF1.FindComponentByName('CEButton1').OnClick = function(sender) UDF2.show() end
UDF1.show()
|
|
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 457
Joined: 09 May 2003 Posts: 25262 Location: The netherlands
|
Posted: Sat Oct 11, 2014 3:23 pm Post subject: |
|
|
UDF1.FindComponentByName('CEButton1') can be replaced with UDF1.CEButton1
Also, in the form designer you can assign it the onClick as well (it has to be a global function then)
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
|
ErcHimA Newbie cheater Reputation: 0
Joined: 07 Oct 2013 Posts: 18 Location: In Your Heart :P
|
Posted: Sat Oct 11, 2014 3:55 pm Post subject: |
|
|
Dark Byte wrote: | There's a small bug in 6.4 where forms are visible by default.
To work arround that do the following:
before saving go into form editing mode for UDF2
Then open a lua engine window and execute "UDF2.Visible=false"
then close the form designer and save
that will prevent UDF2 from being visible when the table loads (you can also do that for UDF1 if you like)
As for the question to show it on buttonclick:
To your button's OnClick event hang a function that calls "UDF2.Visible=true" |
thank you ill try it
umm this is bug?
on CE 63 get the same bug?
|
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 457
Joined: 09 May 2003 Posts: 25262 Location: The netherlands
|
Posted: Sat Oct 11, 2014 4:36 pm Post subject: |
|
|
6.3 doesn't have that, but it isn't really a bug. More a new feature without an easy way to control it (the visible state of forms is now saved as well, but there's no published property to let the form designer set it)
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
|
ErcHimA Newbie cheater Reputation: 0
Joined: 07 Oct 2013 Posts: 18 Location: In Your Heart :P
|
Posted: Sat Oct 11, 2014 7:42 pm Post subject: |
|
|
Thank you very much DB, Work perfect!
Description: |
my first trainer using multiple udf and multiple trainer |
|
Download |
Filename: |
tes.CETRAINER |
Filesize: |
49.38 KB |
Downloaded: |
558 Time(s) |
|
|
Back to top |
|
|
mgr.inz.Player I post too much Reputation: 218
Joined: 07 Nov 2008 Posts: 4438 Location: W kraju nad Wisla. UTC+01:00
|
|
Back to top |
|
|
ErcHimA Newbie cheater Reputation: 0
Joined: 07 Oct 2013 Posts: 18 Location: In Your Heart :P
|
Posted: Sat Oct 18, 2014 7:59 am Post subject: |
|
|
thank you dude
|
|
Back to top |
|
|
|