- Extends
- Object
- Modifiers
- native abstract PerObjectConfig config ( TribesHUD )
Core.Object
|
+-- TribesGUI.HUDElement
Direct Known Subclasses:
HUDContainer, HUDDamageIndicator, HUDIcon, HUDNumericTextureLabel, HUDTalkingHead, HUDUseableMarker, HUDVehicleManifest, LabelElement, QuickChatMenu
Enumerations Summary |
EHorizontalAlignment HALIGN_None,
HALIGN_Relative,
HALIGN_Left,
HALIGN_Center,
HALIGN_Right,
HALIGN_Previous,
HALIGN_Next |
EHorizontalFill HFILL_None,
HFILL_Relative,
HFILL_Left,
HFILL_Right,
HFILL_Both |
ELayoutDirection LD_ManualLayout,
LD_Horizontal,
LD_Vertical |
EVerticalAlignment VALIGN_None,
VALIGN_Relative,
VALIGN_Top,
VALIGN_Middle,
VALIGN_Bottom,
VALIGN_Previous,
VALIGN_Next |
EVerticalFill VFILL_None,
VFILL_Relative,
VFILL_Up,
VFILL_Down,
VFILL_Both |
Structures Summary |
HUDMaterial material, drawColor, coords, style, bStretched, bNoRender, bProgressControlled, bFlashing, flashFrequency, lastFlashTime, bFading, bFadePulse, fadeSourceColor, fadeTargetColor, fadeDuration, fadeStartTime, fadeProgress |
Inherited Structures from Core.Object |
BoundingVolume, Box, Color, CompressedPosition, Coords, GameSpyServerData, Guid, IntegerRange, InterpCurve, InterpCurvePoint, MatCoords, Matrix, Plane, Quat, Range, RangeVector, Rotator, Scale, Vector |
Functions Summary |
| | Construct ()))
|
| HUDElement | CreateClonedElement (string className, string objectName, optional string newObjectName))
|
| HUDElement | CreateHUDElement (class<HUDElement> elementClass, String elementName, optional Object ownerObject))
|
| | DoLayout (Canvas c))
|
| String | EncodeColor (Color InColor)
|
| String | EncodePlayerName (String PlayerName, String TeamTag, ETeamAlignment alignment, optional class<TeamInfo> PlayerTeam))
|
| | FlashElement (float period, float duration, float AlphaMin, float AlphaMax))
|
| | ForceNeedsLayout ()))
|
| float | GetAlpha ()))
|
| int | GetHeight ()))
|
| float | GetMaximumRelativeX ()))
|
| float | GetMaximumRelativeY ()))
|
| float | GetMaximumX ()))
|
| float | GetMaximumY ()))
|
| | GetScreenPos (out int ScreenPosX, out int ScreenPosY))
|
| int | GetWidth ()))
|
| int | GetX ()))
|
| int | GetY ()))
|
| | InitElement ()))
|
| | InitElementHeirachy (TribesHUDScript base, HUDContainer Parent))
|
| int | InternalHeight ()))
|
| int | InternalLeft ()))
|
| int | InternalTop ()))
|
| int | InternalWidth ()))
|
| bool | KeyEvent (EInputKey Key, EInputAction Action, FLOAT Delta, HUDAction Response)
|
| bool | KeyType (EInputKey Key, string Unicode, HUDAction Response)
|
| | Layout (Canvas canvas)
|
| | LoadConfig (String objectConfigName, class objectClass, optional String Filename)
|
| | LoadFont (String FontName, out Font font))
|
| | LoadFonts ()))
|
| HUDMaterial | MakeHUDMaterial (Material mat))
|
| int | MaterialHeight (HUDMaterial mat))
|
| int | MaterialWidth (HUDMaterial mat))
|
| | NativeRenderElement (Canvas c)
|
| | OnMouseClicked (HUDElement Sender)
|
| | OnMouseDoubleClicked (HUDElement Sender)
|
| | OnMouseEntered (HUDElement Sender)
|
| | OnMouseExited (HUDElement Sender)
|
| bool | PointInElement (int PointX, int PointY))
|
| bool | PointInRegion (int PointX, int PointY, int X1, int Y1, int X2, int Y2))
|
| | Render (Canvas c)
|
| | RenderElement (Canvas C))
|
| | RenderHUDMaterial (Canvas c, out HUDMaterial mat, float matWidth, float matHeight, optional float tileSizeX, optional float tileSizeY)
|
| | ResetFont ()))
|
| | ResetHUDMaterial (out HUDMaterial mat))
|
| | ResizeForWidth (Canvas c, int pixelWidth)
|
| TribesHUDScript | RootHUDScript ()))
|
| | SetAlpha (float newAlpha))
|
| | SetColor (Canvas C, Color newColor))
|
| | SetHeight (int newHeight))
|
| | SetNeedsLayout ()))
|
| | SetWidth (int newWidth))
|
| | SetX (int newX))
|
| | SetY (int newY))
|
| HUDElement | StaticCreateHUDElement (class<HUDElement> elementClass, String elementName, optional Object ownerObject))
|
| | UpdateData (ClientSideCharacter c)
|
Inherited Functions from Core.Object |
!, !=, $, $=, %, &, &&, *, **, *=, +, ++, +=, -, --, -=, / , /=, <, <<, <=, ==, >, >=, >>, >>>, @, @=, Abs, Acos, AllClasses, AllEditableProperties, Allocate, AllProperties, AppSeconds, Asc, Asin, AssertWithDescription, Atan, BeginState, CanSLog, Caps, Chr, Clamp, ClassConstruct, ClassIsChildOf, ClockwiseFrom, CommonBase, Construct, Cos, Cross, DecodeFromURL, Disable, Div, Dot, DynamicFindObject, DynamicLoadObject, Enable, EncodeForURL, EndState, Eval, Exp, FClamp, FindObject, FlushConfig, FMax, FMin, FRand, GetAxes, GetBuildNumber, GetEnum, GetMinCompatibleBuildNumber, GetPropertyText, GetStateName, GetSuperClass, GetUnAxes, GotoState, Hash, HasUnicode, InStr, InterpCurveEval, InterpCurveGetInputDomain, InterpCurveGetOutputRange, Inverse, Invert, IsA, IsInState, IsNearlyZero, IsUTracing, IsValidForURL, IsZero, Left, Len, Lerp, Localize, Locs, Log, Loge, LogGuardStack, Max, Mid, Min, MirrorVectorByNormal, Normal, Normalize, NullReferences, OrthoRotation, QuatFindBetween, QuatFromAxisAndAngle, QuatFromRotator, QuatInvert, QuatProduct, QuatRotateVector, QuatToRotator, Rand, RandRange, Repl, replaceStr, ResetConfig, Right, RotRand, SaveConfig, SetPropertyText, SetUTracing, Sin, Sleep, SLog, Smerp, Split, Sqrt, Square, StaticSaveConfig, StrCmp, Tan, VDist, VDistSquared, VRand, VSize, VSize2D, VSizeSquared, VSizeSquared2D, Warn, ^, ^^, |, ||, ~, ~= |
var bool bFlashing;
var bool bIsLayingOut;
var bool bNeedsLayout;
var bool bRenderedOnce;
var float FlashAlphaMax;
var float FlashAlphaMin;
var float FlashDuration;
var float FlashPeriod;
var float FlashStartTime;
var float FlashSwitchTime;
var Font HelpFont;
var String HelpFontName;
var String HelpLabel;
var float initialHeight;
var float initialPosX;
var float initialPosY;
var float initialWidth;
var float screenHeight;
var float screenWidth;
var float TargetAlpha;
var float timeSeconds;
HUDElement
var(
HUDElement) config Array<
String> resFontNames;
enum
EHorizontalAlignment
{
HALIGN_None,
HALIGN_Relative,
HALIGN_Left,
HALIGN_Center,
HALIGN_Right,
HALIGN_Previous,
HALIGN_Next
};
enum
EHorizontalFill
{
HFILL_None,
HFILL_Relative,
HFILL_Left,
HFILL_Right,
HFILL_Both
};
enum
EVerticalAlignment
{
VALIGN_None,
VALIGN_Relative,
VALIGN_Top,
VALIGN_Middle,
VALIGN_Bottom,
VALIGN_Previous,
VALIGN_Next
};
enum
EVerticalFill
{
VFILL_None,
VFILL_Relative,
VFILL_Up,
VFILL_Down,
VFILL_Both
};
overloaded function Construct ( ) )
function HUDElement CreateClonedElement (
string className,
string objectName, optional
string newObjectName) )
static native
function String EncodeColor (
Color InColor )
function String EncodePlayerName (
String PlayerName,
String TeamTag,
ETeamAlignment alignment, optional
class<
TeamInfo> PlayerTeam) )
function FlashElement ( float period, float duration, float AlphaMin, float AlphaMax) )
event ForceNeedsLayout ( ) )
function float GetAlpha ( ) )
function int GetHeight ( ) )
function float GetMaximumRelativeX ( ) )
function float GetMaximumRelativeY ( ) )
function float GetMaximumX ( ) )
function float GetMaximumY ( ) )
function GetScreenPos ( out int ScreenPosX, out int ScreenPosY) )
function int GetWidth ( ) )
function int GetX ( ) )
function int GetY ( ) )
function InitElement ( ) )
function int InternalHeight ( ) )
function int InternalLeft ( ) )
function int InternalTop ( ) )
function int InternalWidth ( ) )
native function LoadConfig ( String objectConfigName, class objectClass, optional String Filename )
function LoadFont ( String FontName, out Font font) )
function LoadFonts ( ) )
native
function NativeRenderElement (
Canvas c )
function OnMouseDoubleClicked (
HUDElement Sender )
function bool PointInElement ( int PointX, int PointY) )
function bool PointInRegion ( int PointX, int PointY, int X1, int Y1, int X2, int Y2) )
native
function Render (
Canvas c )
event RenderElement (
Canvas C) )
native
function RenderHUDMaterial (
Canvas c, out
HUDMaterial mat,
float matWidth,
float matHeight,
optional
float tileSizeX, optional
float tileSizeY )
event ResetFont ( ) )
native
function ResizeForWidth (
Canvas c,
int pixelWidth )
event SetAlpha ( float newAlpha) )
function SetHeight ( int newHeight) )
event SetNeedsLayout ( ) )
function SetWidth ( int newWidth) )
function SetX ( int newX) )
function SetY ( int newY) )
StaticCreateHUDElement Source code
static
function HUDElement StaticCreateHUDElement (
class<
HUDElement> elementClass,
String elementName, optional
Object ownerObject) )
defaultproperties
{
alpha = 1
bVisible = true
bNeedsLayout = true
RelativePosX = 0
RelativePosY = 0
RelativeWidth = 1
RelativeHeight = 1
verticalFill = VFILL_None
horizontalFill = HFILL_None
verticalAlignment = VALIGN_None
horizontalAlignment = HALIGN_None
defaultDrawColor=(R=255,G=255,B=255,A=255)
bUseResFonts = false
resFontNames(0) = DefaultSmallFont
resFontNames(1) = Tahoma8
resFontNames(2) = Tahoma8
resFontNames(3) = Tahoma10
resFontNames(4) = Tahoma12
resFontNames(5) = Tahoma12
resFonts(0) = font'Engine_res.res_defaultFont'
resFonts(1) = font'TribesFonts.Tahoma8'
resFonts(2) = font'TribesFonts.Tahoma8'
resFonts(3) = font'TribesFonts.Tahoma10'
resFonts(4) = font'TribesFonts.Tahoma12'
resFonts(5) = font'TribesFonts.Tahoma12'
textFontName = res_defaultFont
textFont = font'Engine_res.res_defaultFont'
textColor = (R=255,G=255,B=255,A=255)
HelpFontName = Tahoma8
HelpFont = font'TribesFonts.Tahoma8'
}
|
Creation time: st 23.5.2018 00:10:30.891 - Created with
UnCodeX