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

UTGame.GFxUDKFrontEnd_InfoDialog


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
/**********************************************************************

Filename    :   GFxUDKFrontEnd_Dialog.uc
Content     :   GFx-UDK Front End Implementaiton

Copyright   :   (c) 2010 Scaleform Corp. All Rights Reserved.

Notes       :   Base class for a dialog for the GFx-UDK front end.             

Licensees may use this file in accordance with the valid Scaleform
Commercial License Agreement provided with the software.

This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING 
THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR ANY PURPOSE.

**********************************************************************/
class GFxUDKFrontEnd_InfoDialog extends GFxUDKFrontEnd_Dialog;

/** Fired when a dialog is popped from the stack. */
public function OnViewClosed()
{
    Super.OnViewClosed();
    DisableSubComponents(false);
}

/** 
 *  Update the view.  
 *  Called whenever the view becomes the topmost view on the viewstack. 
 */
function OnTopMostView(optional bool bPlayOpenAnimation = FALSE)
{
    Super.OnTopMostView(bPlayOpenAnimation);
    MenuManager.SetSelectionFocus( BackBtn );
}

function DisableSubComponents(bool bDisableComponents)
{
    AcceptBtn.SetBool("disabled", bDisableComponents);
    BackBtn.SetBool("disabled", bDisableComponents);
}

public function SetTitle(string Title)
{
    TitleTxt.SetText(Title);
}

public function SetInfo(string Info)
{
    InfoTxt.SetText(Info);
}

public function SetAcceptButtonLabel( string Label )
{
    AcceptBtn.SetString( "label", Label );
}

public function SetBackButtonLabel( string Label )
{
    BackBtn.SetString( "label", Label );
}

function SetAcceptButton_OnPress( delegate<GFxClikWidget.EventListener> EventListener )
{    
    AcceptBtn.RemoveAllEventListeners("CLIK_press");
    AcceptBtn.RemoveAllEventListeners("press");
    AcceptBtn.AddEventListener('CLIK_press', EventListener); 
}

defaultproperties
{

}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: må 19-7-2010 23:28:16.000 - Creation time: ti 22-3-2011 19:57:06.691 - Created with UnCodeX