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

UTGame.UTUIIconMenuList


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
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
/**
 * Copyright 1998-2008 Epic Games, Inc. All Rights Reserved.
 *
 * Specific version of the menu list that draws an icon in addition to the menu text.
 */
class UTUIIconMenuList extends UTUIMenuList;

/** Icon information. */
var transient vector2D IconPadding;
var transient Texture2D IconImage;
var transient float IconU;
var transient float IconV;
var transient float IconUL;
var transient float IconVL;
var transient LinearColor IconColor;

function DrawSelectionBG(float YPos)
{
	local float Width,Height;

	Height = DefaultCellHeight * SelectionCellHeightMultiplier * ResScaling.Y;
	Width = Height * ScrollWidthRatio;

	Super.DrawSelectionBG(YPos);

	Canvas.SetPos(Width*IconPadding.X, YPos+Height*IconPadding.Y);
	Canvas.DrawColorizedTile(IconImage, Width*(1.0 - IconPadding.X*2), Height*(1.0 - IconPadding.Y*2), IconU, IconV, IconUL, IconVL, IconColor);
}

/** Copies the icon from another icon menu list. */
function CopyIcon(UTUIIconMenuList OtherList)
{
	IconU=OtherList.IconU;
	IconV=OtherList.IconV;
	IconUL=OtherList.IconUL;
	IconVL=OtherList.IconVL;
	IconImage=OtherList.IconImage;
}

defaultproperties
{
   Begin Object Class=UIComp_Event Name=WidgetEventComponent ObjName=WidgetEventComponent Archetype=UIComp_Event'UTGame.Default__UTUIMenuList:WidgetEventComponent'
      ObjectArchetype=UIComp_Event'UTGame.Default__UTUIMenuList:WidgetEventComponent'
   End Object
   EventProvider=WidgetEventComponent
   Name="Default__UTUIIconMenuList"
   ObjectArchetype=UTUIMenuList'UTGame.Default__UTUIMenuList'
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: tr 31-1-2018 17:18:48.000 - Creation time: sk 18-3-2018 10:01:27.112 - Created with UnCodeX