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

UTGame.UTSimpleMenu


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
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062
00063
00064
00065
00066
00067
00068
00069
00070
00071
00072
00073
/**
 * Copyright 1998-2008 Epic Games, Inc. All Rights Reserved.
 */

class UTSimpleMenu extends UTSimpleList;

function DrawSelectionBar(float YPos, float CellHeight)
{
	local float Height;
	local float AWidth, AHeight, AYPos;
	local bool b;


	Height = DefaultCellHeight * SelectionCellHeightMultiplier * ResScaling.Y;

	YPos = YPos + (CellHeight * 0.5) - (Height * 0.5);

	Canvas.DrawColor=SelectionBarColor;

	// ------------ Draw the up/Down Arrows


	// Calculate the sizes
	AYPos = YPos + (CellHeight * 0.5) - Height;
	AHeight = Height * 0.9;
	AWidth = AHeight * 0.5;

		// Draw The up button

	// Cache the bounds for mouse lookup later

	UpArrowBounds[0] = 0;
	UpArrowBounds[2] = UpArrowBounds[0] + AWidth;
	UpArrowBounds[1] = AYPos;
	UpArrowBounds[3] = AYPos + AHeight;

	b = CursorCheck(UpArrowBounds[0],UpArrowBounds[1],UpArrowBounds[2],UpArrowBounds[3]);
	DrawSpecial(UpArrowBounds[0],UpArrowBounds[1], AWidth, AHeight,77,198,63,126,SelectionBarColor,b,bUpArrowPressed);

		// Draw The down button

	// Cache the bounds for mouse lookup later

	AYPos = YPos + (CellHeight * 0.5) + (Height * 0.1);

	DownArrowBounds[0] = 0;
	DownArrowBounds[2] = DownArrowBounds[0] + AWidth;
	DownArrowBounds[1] = AYPos;
	DownArrowBounds[3] = AYPos + AHeight;

	b = CursorCheck(DownArrowBounds[0],DownArrowBounds[1],DownArrowBounds[2],DownArrowBounds[3]);
	DrawSpecial(DownArrowBounds[0],DownArrowBounds[1], AWidth, AHeight,77,358,63,126,SelectionBarColor,b,bDownArrowPressed);


	// Draw the Bar

	Canvas.DrawColor=SelectionBarColor;

	AWidth *= 1.1;
	Canvas.SetPos(AWidth,YPos);
	Canvas.DrawTile(SelectionImage, Canvas.ClipX-AWidth,Height, 269,264,360,64);
}

defaultproperties
{
   Begin Object Class=UIComp_Event Name=WidgetEventComponent ObjName=WidgetEventComponent Archetype=UIComp_Event'UTGame.Default__UTSimpleList:WidgetEventComponent'
      ObjectArchetype=UIComp_Event'UTGame.Default__UTSimpleList:WidgetEventComponent'
   End Object
   EventProvider=WidgetEventComponent
   Name="Default__UTSimpleMenu"
   ObjectArchetype=UTSimpleList'UTGame.Default__UTSimpleList'
}

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