Overview | Package | Class | Source | Class tree | Glossary | 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 |
//============================================================================= // UWindowSBUpButton - Scrollbar up button //============================================================================= class UWindowSBUpButton extends UWindowButton; var float NextClickTime; function Created() { bNoKeyboard = True; Super.Created(); } function BeforePaint(Canvas C, float X, float Y) { LookAndFeel.SB_SetupUpButton(Self); } function LMouseDown(float X, float Y) { Super.LMouseDown(X, Y); if(bDisabled) return; UWindowVScrollBar(ParentWindow).Scroll(-UWindowVScrollBar(ParentWindow).ScrollAmount); NextClickTime = GetLevel().TimeSeconds + 0.5; } function Tick(float Delta) { if(bMouseDown && (NextClickTime > 0) && (NextClickTime < GetLevel().TimeSeconds)) { UWindowVScrollBar(ParentWindow).Scroll(-UWindowVScrollBar(ParentWindow).ScrollAmount); NextClickTime = GetLevel().TimeSeconds + 0.1; } if(!bMouseDown) { NextClickTime = 0; } } |
Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |