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 00120 00121 00122 00123 00124 |
//============================================================================= // ButtonWindow. //============================================================================= class ButtonWindow extends TextWindow native noexport; // ---------------------------------------------------------------------- struct ButtonDisplayInfo { var texture tx; var color tlColor; var color txColor; }; // ---------------------------------------------------------------------- // Variables var const bool bButtonPressed; var const bool bMousePressed; var const bool bAutoRepeat; var const bool bEnableRightMouseClick; var const float activateDelay; var const float initialDelay; var const float repeatRate; var const texture curTexture; var const color curTileColor; var const color curTextColor; var private sound pressSound; var private sound clickSound; var private int activateTimer; var private float repeatTime; var private EInputKey lastInputKey; var private ButtonDisplayInfo info[6]; // ---------------------------------------------------------------------- // Intrinsics native(1590) final function ActivateButton(EInputKey key); native(1591) final function SetActivateDelay(optional float newDelay); native(1592) final function SetButtonTextures(optional texture normal, optional texture pressed, optional texture normalFocus, optional texture pressedFocus, optional texture normalInsensitive, optional texture pressedInsensitive); native(1593) final function SetButtonColors(optional color normal, optional color pressed, optional color normalFocus, optional color pressedFocus, optional color normalInsensitive, optional color pressedInsensitive); native(1594) final function SetTextColors(optional color normal, optional color pressed, optional color normalFocus, optional color pressedFocus, optional color normalInsensitive, optional color pressedInsensitive); native(1595) final function EnableAutoRepeat(optional bool bEnable, optional float initialDelay, optional float repeatRate); native(1596) final function EnableRightMouseClick(optional bool bEnable); native(1597) final function SetButtonSounds(optional sound pressSound, optional sound clickSound); native(1598) final function PressButton(optional EInputKey key); // ---------------------------------------------------------------------- event bool AcceleratorKeyPressed(string key) { local bool retval; retval = Super.AcceleratorKeyPressed(key); if (!retval) { PressButton(); retval = true; } return retval; } // ---------------------------------------------------------------------- event bool VirtualKeyPressed(EInputKey key, bool bRepeat) { local bool retval; retval = Super.VirtualKeyPressed(key, bRepeat); if ((key == IK_Enter) || (key == IK_Space)) { PressButton(key); retval = TRUE; } return retval; } defaultproperties { } |
Overview | Package | Class | Source | Class tree | Glossary | Deus Ex UnrealScript Documentation |
previous class next class | frames no frames |