Overview | Package | Class | Source | Class tree | Glossary | Deus Ex UnrealScript Documentation |
previous class next class | frames no frames |
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 00073 00074 00075 00076 00077 00078 00079 00080 00081 00082 00083 00084 00085 00086 00087 00088 00089 00090 00091 00092 00093 00094 00095 00096 00097 00098 00099 00100 00101 00102 00103 00104 00105 00106 00107 00108 00109 00110 00111 00112 00113 00114 00115 00116 00117 00118 00119 |
//============================================================================= // BorderWindow. //============================================================================= class BorderWindow extends Window native noexport; // ---------------------------------------------------------------------- // Variables // Border textures var const texture borderLeft; var const texture borderTopLeft; var const texture borderTop; var const texture borderTopRight; var const texture borderRight; var const texture borderBottomRight; var const texture borderBottom; var const texture borderBottomLeft; var const texture center; // Cursors var const texture moveCursor; var const texture hMoveCursor; var const texture vMoveCursor; var const texture tlMoveCursor; var const texture trMoveCursor; // Drawing options var EDrawStyle borderStyle; // Solid, translucent or masked var bool bSmoothBorder; // TRUE if the borders should be smoothed var bool bStretchBorder; // TRUE=stretched, FALSE=repeated tile // Window options var const bool bResizeable; // TRUE if the user can resize by dragging var const bool bMarginsFromBorder; // TRUE if child margins are based on borders // Margins for child windows var float childLeftMargin; var float childRightMargin; var float childTopMargin; var float childBottomMargin; // Private var private float leftMargin; var private float rightMargin; var private float topMargin; var private float bottomMargin; var private bool bLeftDrag; var private bool bRightDrag; var private bool bUpDrag; var private bool bDownDrag; var private float lastMouseX; var private float lastMouseY; var private float dragX; var private float dragY; var private float dragWidth; var private float dragHeight; // ---------------------------------------------------------------------- // Intrinsics native(1530) function final SetBorders(optional texture bordTL, optional texture bordTR, optional texture bordBL, optional texture bordBR, optional texture bordL, optional texture bordR, optional texture bordT, optional texture bordB, optional texture center); native(1531) function final SetBorderMargins(optional float newLeft, optional float newRight, optional float newTop, optional float newBottom); native(1532) function final BaseMarginsFromBorder(optional bool bBorder); native(1533) function final EnableResizing(optional bool bResize); native(1534) function final SetMoveCursors(optional texture move, optional texture hMove, optional texture vMove, optional texture tlMove, optional texture trMove); // ---------------------------------------------------------------------- // SetBorderStyle() : Makes the border solid, translucent or masked function SetBorderStyle(EDrawStyle newBorderStyle) { borderStyle = newBorderStyle; } // ---------------------------------------------------------------------- // SmoothBorder() : Draws the border smoothly, or not function SmoothBorder(bool bNewSmoothBorder) { bSmoothBorder = bNewSmoothBorder; } // ---------------------------------------------------------------------- // StretchBorder() : Draws the border sides as stretched images (if TRUE) // or repeating patterns (if FALSE) function StretchBorder(bool bNewStretchBorder) { bStretchBorder = bNewStretchBorder; } defaultproperties { } |
Overview | Package | Class | Source | Class tree | Glossary | Deus Ex UnrealScript Documentation |
previous class next class | frames no frames |