SRL Archive - Suggestions

Add New Function "HideAll"


CRASH_OVERRIDE

2012-11-30 23:26:58

Hey,

Is their chance you could add a function to Script called something along the lines of "HideAll"

What it does is it hides/closes all open annoying things that effect a lot of scripts.

For Example;
*It claims the spin tickets in inventory(
FindSpinTicket
).
*Hides/closes the actionbar which effects a lot of scripts(
ToggleActionBar(False);
)
*Hides/closes XPPopUp (
ToggleXPPopUp(True);
).
*Hides/closes XPBar (
ToggleXPBar(False);
).
*Hides/closes Money Pouch(
ToggleMoneyPouch(False);
).

And anything else not mentioned that effects color finding scripts? This way everyone can just add "HideAll" in their mainloop at the beginning and it closes everything.

footballjds

2012-11-30 23:44:14

if that is necessary in someone's specific script they'll put it there.

CRASH_OVERRIDE

2012-11-30 23:58:53

Mmk,

Sorry for the waste of time:/ I just thought it could save scriptors some time being able to call a pre-done function.

Sax

2012-12-02 17:58:21

yes sometimes this is pretty useful. you can do this yourself. the money pouch, xp pop up things already have procedures. dont know about the spin ticket but you can use a DTM or something. and then group all that stuff in one procedure.

masterBB

2012-12-02 18:25:10

If you write the function I will help you adding it to SRL.

CRASH_OVERRIDE

2012-12-03 01:50:09

The above already work, i was curious if they were ever going to add a function that actually lets you hide them all at once.

Enslaved

2012-12-03 07:06:30


Function CloseAll as boolean;
begin
FindSpinTicket;
ToggleActionBar(False);
ToggleXpPopUp(True);
ToggleXpBar(False);
ToggleMoneyPouch(False);
Return True;
End;
you mean this … …

Laimonas171

2012-12-03 07:11:31

From: Enslaved

Function
CloseAll as boolean;
begin
FindSpinTicket;
ToggleActionBar(False);
ToggleXpPopUp(True);
ToggleXpBar(False);
ToggleMoneyPouch(False);
Return True;
End;

you mean this … …


Close to thabut if you were at bank, you get true, and not going to close all of items yet. here need some failsafe, to check or or functions gives back the result you waiting for.

masterBB

2012-12-03 07:20:07

From: tasmania
The above already work, i was curious if they were ever going to add a function that actually lets you hide them all at once.


There is no need to wait for them. It is opensource, write it yourself and add it to simba. Then everybody can enjoy it + you contributed to this community.

Enslaved

2012-12-03 12:45:20

From: masterBB
There is no need to wait for them. It is opensource, write it yourself and add it to simba. Then everybody can enjoy it + you contributed to this community.


well said :)