1 registered members (AndrewAMD),
946
guests, and 5
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: Remove button and/or digit from panel
[Re: Aku_Aku]
#336713
08/05/10 19:54
08/05/10 19:54
|
Joined: Feb 2008
Posts: 3,232 Australia
EvilSOB
Expert
|
Expert
Joined: Feb 2008
Posts: 3,232
Australia
|
AFAIK, its not possible.
BUT, if I have the need, I set its data(digit) or bmaps(button) to NULLs, and move it to x_pos = -100, y_pos = -100.
Last edited by EvilSOB; 08/05/10 19:55.
"There is no fate but what WE make." - CEO Cyberdyne Systems Corp. A8.30.5 Commercial
|
|
|
Re: Remove button and/or digit from panel
[Re: EvilSOB]
#336716
08/05/10 20:05
08/05/10 20:05
|
Joined: Sep 2009
Posts: 993 Budapest
Aku_Aku
OP
User
|
OP
User
Joined: Sep 2009
Posts: 993
Budapest
|
Could say, not so dynamic... Anyway thank the quick reply. Maybe another feature what should implement in A8.
What will happen if i create a digit to show the value of skill of entity, and i delete the entity? It will cause a crash?
Last edited by Aku_Aku; 08/05/10 20:19.
|
|
|
Re: Remove button and/or digit from panel
[Re: Aku_Aku]
#336724
08/05/10 20:34
08/05/10 20:34
|
Joined: May 2007
Posts: 2,043 Germany
Lukas
Programmer
|
Programmer
Joined: May 2007
Posts: 2,043
Germany
|
"What will happen if i create a digit to show the value of skill of entity, and i delete the entity? It will cause a crash?" I guess so. If you are "lucky" it won't crash, but you get unpredictable behaviour. If you want to be able to dynamically create and destroy buttons, you can use my LBGUI (link in my signature).
|
|
|
Re: Remove button and/or digit from panel
[Re: Aku_Aku]
#336725
08/05/10 20:35
08/05/10 20:35
|
Joined: Feb 2008
Posts: 3,232 Australia
EvilSOB
Expert
|
Expert
Joined: Feb 2008
Posts: 3,232
Australia
|
I just tested the deleted-entity scenario, and the value just drops to Zero.
"There is no fate but what WE make." - CEO Cyberdyne Systems Corp. A8.30.5 Commercial
|
|
|
Re: Remove button and/or digit from panel
[Re: Aku_Aku]
#336747
08/05/10 22:54
08/05/10 22:54
|
Joined: Feb 2008
Posts: 3,232 Australia
EvilSOB
Expert
|
Expert
Joined: Feb 2008
Posts: 3,232
Australia
|
GAH!
Ok, if you are going to be creating and deleting that many, it may be worth your while trying to find a way to 'remember' any buttons or digits that have been hidden/deleted, and re-using them instead of creating new ones...
Say, for example, creating an array for no-longer-used buttons, and another for no-longer-used digits, storing their element number...
Then using pan_setbutton and pan_setdigits to "modify" the old, hidden buttons/digits to their new use...
"There is no fate but what WE make." - CEO Cyberdyne Systems Corp. A8.30.5 Commercial
|
|
|
Moderated by mk_1, Perro, rayp, Realspawn, Rei_Ayanami, rvL_eXile, Spirit, Superku, Tobias, TSG_Torsten, VeT
|