Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames

UWindow.UWindowComboListItem


00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
class UWindowComboListItem extends UWindowList;

var string					Value;
var string					Value2;		// A second, non-displayed value
var int						SortWeight;

var float					ItemTop;

function int Compare(UWindowList T, UWindowList B)
{
	local UWindowComboListItem TI, BI;
	local string TS, BS;

	TI = UWindowComboListItem(T);
	BI = UWindowComboListItem(B);

	if(TI.SortWeight == BI.SortWeight)
	{
		TS = caps(TI.Value);
		BS = caps(BI.Value);

		if(TS == BS)
			return 0;

		if(TS < BS)
			return -1;

		return 1;

	}
	else
		return TI.SortWeight - BI.SortWeight;
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: ne 5.9.2004 16:02:32.000 - Creation time: st 23.5.2018 00:10:49.879 - Created with UnCodeX