GUI
Class GUIGFXButton

source: C:\XIII\GUI\Classes\GUIGFXButton.uc
Core.Object
   |
   +--GUI.GUI
      |
      +--GUI.GUIComponent
         |
         +--GUI.GUIButton
            |
            +--GUI.GUIGFXButton
Direct Known Subclasses:GUICheckBoxButton, GUIVertGripButton, GUIVertScrollButton

class GUIGFXButton
extends GUI.GUIButton

// ==================================================================== // (c) 2002, Epic Games, Inc. All Rights Reserved // ====================================================================

Function Summary
 void InitComponent(GUIController MyController, GUIComponent MyOwner)
     
// Graphic is drawn using clientbounds if true
 bool InternalOnClick(GUIComponent Sender)
 void SetChecked(bool bNewChecked)



Source Code


00001	// ====================================================================
00002	//  (c) 2002, Epic Games, Inc.  All Rights Reserved
00003	// ====================================================================
00004	
00005	class GUIGFXButton extends GUIButton 
00006		Native;
00007	
00008	//#exec OBJ LOAD FILE=GUIContent.utx		
00009	
00010			
00011	var(Menu)	Material 		Graphic;		// The graphic to display
00012	var(Menu)	eIconPosition	Position;		// How do we draw the Icon
00013	var(Menu)	bool			bCheckBox;		// Is this a check box button (ie: supports 2 states)
00014	var(Menu)	bool			bClientBound;	// Graphic is drawn using clientbounds if true
00015	
00016	var		bool			bChecked;	
00017	
00018	function InitComponent(GUIController MyController, GUIComponent MyOwner)
00019	{
00020		Super.Initcomponent(MyController, MyOwner);
00021	
00022		if (bCheckBox)
00023			OnCLick = InternalOnClick;
00024	}
00025	
00026	function SetChecked(bool bNewChecked)
00027	{
00028		if (bCheckBox)
00029		{
00030			bChecked = bNewChecked;
00031			OnChange(Self);	
00032		}
00033	}
00034	
00035	function bool InternalOnClick(GUIComponent Sender)
00036	{
00037		if (bCheckBox)
00038			bChecked = !bChecked;
00039			
00040		OnChange(Self);		
00041		return true;
00042	} 
00043	
00044	
00045	
00046	defaultproperties
00047	{
00048	     bRepeatClick=True
00049	}

End Source Code