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

XInterface.GUISpinnerButton


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
// ====================================================================
//  Class:  UT2K4UI.UT2SpinnerButton
//
//  Written by Joe Wilcox
//  (c) 2002, Epic Games, Inc.  All Rights Reserved
// ====================================================================

class GUISpinnerButton extends GUIButton
	Native;

// (cpptext)
// (cpptext)
// (cpptext)
// (cpptext)

delegate bool OnPlusClick(GUIComponent Sender) { return false; }
delegate bool OnMinusClick(GUIComponent Sender) { return false; }

function bool InternalOnClick(GUIComponent Sender)
{

	local float x,y;

	x = Controller.MouseX - ActualLeft();
    y = Controller.MouseY - ActualTop();

    if (y <= (ActualHeight()/2) )
    	return OnPlusClick(Sender);
    else
    	return OnMinusClick(Sender);
}

defaultproperties
{
     StyleName="SpinnerButton"
     bNeverFocus=True
     bRepeatClick=True
     OnClick=GUISpinnerButton.InternalOnClick
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: pr 5-2-2018 12:35:52.000 - Creation time: sk 18-3-2018 09:50:10.656 - Created with UnCodeX