SRL Archive - Research & Development Lounge

SetTab Procedure (The All and Game Tab)


BobboHobbo

2007-09-29 06:36:51

I didnt know what to call this so i named it SetTab.

Here's a picture if you dont know what tab im trying to say:

procedure SetTab(Option : String; BottomTab: Integer);
Var
x, y, mx, my, Color: Integer;
begin
Case BottomTab of
1: mx := 32;
2: mx := 98
else Exit;
end;
my := 486;
Case Option Of
'All','all': begin Color := 3819344; Option :='All'; end;
'Game','game': begin Color := 3819344; Option :='Game'; end;
else Writeln('Option in SetTab does not exist!');
End;
If FindColor(x, y, Color, mx - 10, my - 10, mx + 10, my + 10) Then
Begin
Mouse(mx, my, 8, 8, True);
End;
end;

To use it type in:

SetTab('All',1) // 1 is for All and 2 is for Game.

ShowerThoughts

2007-09-29 06:40:17

wat it does its sets a tab? wich tab?

BobboHobbo

2007-09-29 06:43:45

From: hermpie
wat it does its sets a tab? wich tab?


You know that "All" and "Game" tab thingy at the bottom left of RS near the Public chat private chatr and stuff. That thing :D

ShowerThoughts

2007-09-29 06:47:28

ow kk yeah can be usefull ;)

BobboHobbo

2007-09-29 06:48:52

From: hermpie
ow kk yeah can be usefull ;)

Ye useful is some ways :D

ShowerThoughts

2007-09-29 06:54:52

what a awsome pic the pic is better then the function :p

BobboHobbo

2007-09-29 06:56:19

From: hermpie
what a awsome pic the pic is better then the function :p


Lol, ye man that picture is like the best aye?

R0b0t1

2007-09-29 19:12:55

SetTab is to generic, try to name in SetPublic or something. You might also want the number to be the value the button is, and the string the buttons name (chat, trade).

Wizzup?

2007-09-30 05:59:48

Would be nice if you could add full support (for all the tabs), plus that if a tab is not open but 'activated' it will jump from normal to blue all the time.

Santa_Clause

2007-09-30 06:15:29

Would it be put into SRL?

Lalaji

2007-09-30 10:19:59

Nice,kinda like SetChat()