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

Engine.UIComp_DrawImage

Extends
UIComp_DrawComponents
Modifiers
native ( UIPrivate ) HideCategories ( Object ) implements ( UIStyleResolver , CustomPropertyItemHandler ) editinlinenew

This component encapsulates rendering a UITexture for widgets. It is responsible for managing any image formatting data that is required for a particular widget (thus inappropriate for storage in UIStyles). The style used for rendering the ImageRef is defined by whichever widget owns this component. It is the widget's responsibility to call ApplyImageStyle when the widget receives a call to OnStyleResolved for the UIStyleReference which is intended to be used as the style for this image. Copyright 1998-2008 Epic Games, Inc. All Rights Reserved.

Core.Object
|   
+-- Core.Component
   |   
   +-- Engine.UIComponent
      |   
      +-- Engine.UIComp_DrawComponents
         |   
         +-- Engine.UIComp_DrawImage

Direct Known Subclasses:

UIComp_DrawTeamColoredImage, UIComp_UTDrawStateImage

Variables Summary
UIStyleReferenceImageStyle
nameStyleResolverTag
StyleOverride
UITextureImageRef
UIImageStyleOverrideStyleCustomization
Inherited Variables from Engine.UIComp_DrawComponents
FadeAlpha, FadeRate, FadeTarget, FadeTime, FadeType, LastRenderTime

Enumerations Summary
Inherited Enumerations from Engine.UIComp_DrawComponents
EFadeType

Functions Summary
function DisableCustomColor ()
function DisableCustomCoordinates ()
function DisableCustomFormatting ()
function DisableCustomOpacity ()
function DisableCustomPadding ()
functionUIStyle_Image GetAppliedImageStyle (optional UIState DesiredMenuState)
functionSurface GetImage () con)
functionname GetStyleResolverTag ()
functionbool NotifyResolveStyle (UISkin ActiveSkin, bool bClearExistingValue, optional UIState CurrentMenuState, const optional name StylePropertyName)
function SetColor (LinearColor NewColor)
function SetCoordinates (TextureCoordinates NewCoordinates)
function SetFormatting (EUIOrientation Orientation, UIImageAdjustmentData NewFormattingData)
function SetImage (Surface NewImage)
function SetOpacity (float NewOpacity)
function SetPadding (float HorizontalPadding, float VerticalPadding)
functionbool SetStyleResolverTag (name NewResolverTag)
Inherited Functions from Engine.UIComp_DrawComponents
Fade, Pulse, ResetFade


Variables Detail

ImageStyle Source code

var private UIStyleReference ImageStyle;
The style to use for rendering this component's image. If the style is invalid, the component will use the owning widget's PrimaryStyle, if possible.

StyleResolverTag Source code

var name StyleResolverTag;
The tag used to fulfill the UIStyleResolver interface's GetStyleResolverTag method. Value should be set by the owning widget.

StyleOverride

ImageRef Source code

var(StyleOverride) instanced editinlineuse UITexture ImageRef;
The utility wrapper for the image that this component should render. Automatically created by the component when given an material/texture to render.

StyleCustomization Source code

var(StyleOverride) UIImageStyleOverride StyleCustomization;
Contains values for customizing and overriding rendering and formatting values designated by this component's style.


Functions Detail

DisableCustomColor Source code

native final function DisableCustomColor ( )
Disables image color customization allowing the image to use the values from the applied style.

DisableCustomCoordinates Source code

native final function DisableCustomCoordinates ( )
Disables image coordinate customization allowing the image to use the values from the applied style.

DisableCustomFormatting Source code

native final function DisableCustomFormatting ( )
Disables image formatting customization allowing the image to use the values from the applied style.

DisableCustomOpacity Source code

native final function DisableCustomOpacity ( )
Disables the custom opacity level for this comp

DisableCustomPadding Source code

native final function DisableCustomPadding ( )
Disables the custom padding for this component.

GetAppliedImageStyle Source code

native final noexport function UIStyle_Image GetAppliedImageStyle ( optional UIState DesiredMenuState )
Returns the image style data being used by this image rendering component. If the component's ImageStyle is not set, the style data will be pulled from the owning widget's primary style.
@param DesiredMenuState the menu state for the style data to retrieve; if not speicified, uses the owning widget's current menu state.
@return the image style data used to render this component's image for the specified menu state.
@note: noexport because we the native version is also handles optionally resolving the image style data from the active skin, so it takes a few more parameters.

GetImage Source code

native final const function Surface GetImage ( ) con )
Returns the texture or material assigned to this component.

GetStyleResolverTag Source code

native final virtual function name GetStyleResolverTag ( )
Returns the tag assigned to this UIStyleResolver by the owning widget

NotifyResolveStyle Source code

native final virtual function bool NotifyResolveStyle ( UISkin ActiveSkin, bool bClearExistingValue, optional UIState CurrentMenuState, const optional name StylePropertyName )
Resolves the image style for this image rendering component.
@param ActiveSkin the skin the use for resolving the style reference.
@param bClearExistingValue if TRUE, style references will be invalidated first.
@param CurrentMenuState the menu state to use for resolving the style data; if not specified, uses the current menu state of the owning widget.
@param StyleProperty if specified, only the style reference corresponding to the specified property will be resolved; otherwise, all style references will be resolved.

SetColor Source code

native final function SetColor ( LinearColor NewColor )
Enables image color customization and changes the component's override color to the value specified.
@param NewColor the color to use for rendering this component's image

SetCoordinates Source code

native final function SetCoordinates ( TextureCoordinates NewCoordinates )
Enables image coordinate customization and changes the component's override coordinates to the value specified.
@param NewCoordinates the UV coordinates to use for rendering this component's image

SetFormatting Source code

native final function SetFormatting ( EUIOrientation Orientation, UIImageAdjustmentData NewFormattingData )
Enables image formatting customization and changes the component's formatting override data to the value specified.
@param Orientation indicates which orientation to modify
@param NewFormattingData the new value to use for rendering this component's image.

SetImage Source code

native final function SetImage ( Surface NewImage )
Changes the image for this component, creating the wrapper UITexture if necessary.
@param NewImage the new texture or material to use in this component

SetOpacity Source code

native final function SetOpacity ( float NewOpacity )
Enables a custom opacity and changes the component's override opacity to the value specified.
@param NewOpacity the alpha to use for rendering this component's string

SetPadding Source code

native final function SetPadding ( float HorizontalPadding, float VerticalPadding )
Enables custom padding and changes the component's override padding to the value specified.
@param HorizontalPadding new horizontal padding value to use (assuming a screen height of DEFAULT_SIZE_Y); will be scaled based on actual resolution. Specify -1 to indicate that HorizontalPadding should not be changed (useful when changing only the vertical padding)
@param HorizontalPadding new vertical padding value to use (assuming a screen height of DEFAULT_SIZE_Y); will be scaled based on actual resolution. Specify -1 to indicate that VerticalPadding should not be changed (useful when changing only the horizontal padding)

SetStyleResolverTag Source code

native final virtual function bool SetStyleResolverTag ( name NewResolverTag )
Changes the tag assigned to the UIStyleResolver to the specified value.
@return TRUE if the name was changed successfully; FALSE otherwise.


Defaultproperties

defaultproperties
{
   StyleResolverTag="Image Style"
   StyleCustomization=(Formatting[0]=(AdjustmentType=ADJUST_Normal),Formatting[1]=(AdjustmentType=ADJUST_Normal),DrawColor=(R=1.000000,G=1.000000,B=1.000000,A=1.000000),Opacity=1.000000)
   ImageStyle=(DefaultStyleTag="DefaultImageStyle",RequiredStyleClass=Class'Engine.UIStyle_Image')
   Name="Default__UIComp_DrawImage"
   ObjectArchetype=UIComp_DrawComponents'Engine.Default__UIComp_DrawComponents'
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Creation time: sk 18-3-2018 10:00:46.394 - Created with UnCodeX