SRL Archive - Senior Scripts and Snippets

SRLPlayerForm DropDown Menus


Sir R. M8gic1an

2009-11-22 07:20:17

Well, what I've been thinking is that at least for strings (Players[].Strings[]) there is always a limited number of options;

Loc
- varrock
- fally
- edgy

what
- mith
- coal
- gold
- rune

attack style
- atk
- str
- def

and so on, and these are usually sensitive, so to avoid mistakes in the form, we could use drop down menus. I don't think this would be too hard to implement? What do u guys think?

edit: all of these would of course be customizable

~RM

nielsie95

2009-11-22 07:48:18

I believe Sumilion wanted to add this, but I don't think he ever did. It's a good idea..

Naike

2009-11-22 07:55:48

Good idea :I

marpis

2009-11-22 08:44:38

That's an awesome idea, a lot more useful than current labels.
Also there should be a list for Players[X].Arrays[Y], with buttons Add/Delete.

The Claw

2009-11-22 09:14:29

As long as theres still an option to type in a custom, because really theres infinite options especially if the scripter uses locations as a "tracker" in their script. Varrock to Varrock West/East to Varrock East Essence/East Mine to Varrock East Essence Top Right to ….

Nava2

2009-11-22 14:42:15

We could just add in a new type
type
srlDropDown = record
default: String;
options: TStringArray;
end;

Then just ask for an array of the new type in SRL Player form?

Perhaps use a constructor as well to build the record.

Sir R. M8gic1an

2009-11-22 15:01:38

From: Nava2
We could just add in a new type
type
srlDropDown = record
default: String;
options: TStringArray;
end;

Then just ask for an array of the new type in SRL Player form?

Perhaps use a constructor as well to build the record.


type
srlDropDown = record
Name: String;
default: String;
options: TStringArray;
end;

You'll need a name for people to know what it is ;)

~RM

Nava2

2009-11-22 16:00:33

From: Rasta Magician
type
srlDropDown = record
Name: String;
default: String;
options: TStringArray;
end;

You'll need a name for people to know what it is ;)

~RM


use the name for a label? :)