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

XInterface.GUILabel


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
// ======================================================================================================
//  GUILabel - A text label that get's displayed.  By default, it
//  uses the default font, however you can override it if you wish.
//
//  By default, labels will never be focused, since bAcceptsInput is false
//  for GUILabel.  This means that GUILabel will never be put into the MSAT_Focused
//  state (thus changing the color of the text to FocusedTextColor) unless the GUILabel
//  is associated with a component that manually sets the label's state, such as a GUIMenuOption.
//
//  The easiest way to override this default behavior, if desired, is by setting StyleName to "TextLabel".
//
//  Written by Joe Wilcox
//  Updated by Ron Prestenback
//  (c) 2002 - 2003, Epic Games, Inc.  All Rights Reserved
// ======================================================================================================

class GUILabel extends GUIComponent
    Native;

cpptext
{
        void Draw(UCanvas* Canvas);
}

var()   localized   string              Caption;            // The text to display
var()               eTextAlign          TextAlign;          // How is the text aligned in it's bounding box
var()               color               TextColor;          // The Color to display this in.
var()               color               FocusedTextColor;   // The Color to display this in.
var()               EMenuRenderStyle    TextStyle;          // What canvas style to use
var()               string              TextFont;           // The Font to display it in
var()               bool                bTransparent;       // Draw a Background for this label
var()               bool                bMultiLine;         // Will cut content to display on multiple lines when too long
var()				eTextAlign          VertAlign;			// Vertical alignment (only if bMultiLine) - Left = Top
var()               color               BackColor;          // Background color for this label
var()               color               ShadowColor;        // Shadow Color
var()               float               ShadowOffsetX;      // if > 0 draw shadow
var()               float               ShadowOffsetY;      // if > 0 draw shadow
var()               color               HilightColor;       // Shadow Color
var()				float               HilightOffsetX;     // if > 0 draw shadow
var()               float               HilightOffsetY;     // if > 0 draw shadow

defaultproperties
{
    TextAlign=TXTA_Left
    TextColor=(R=0,G=0,B=64,A=255)
    FocusedTextColor=(R=32,G=32,B=80,A=255)
    TextStyle=MSTY_Normal
    TextFont="UT2MenuFont"
    bTransparent=true
    BackColor=(R=0,G=0,B=0,A=255)
    RenderWeight=0.4
    WinHeight=0.06
    VertAlign=TXTA_Left
    ShadowColor=(R=0,G=0,B=0,A=196)
    ShadowOffsetX=0
    ShadowOffsetY=0
    HilightColor=(R=255,G=255,B=255,A=196)
    HilightOffsetX=0
    HilightOffsetY=0
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: Di 5.9.2006 22:36:28.000 - Creation time: Do 14.8.2014 09:58:40.062 - Created with UnCodeX