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 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 00125 00126 00127 00128 00129 00130 00131 00132 00133 00134 00135 00136 00137 00138 00139 00140 00141 00142 00143 00144 00145 00146 00147 00148 00149 00150 00151 00152 00153 00154 00155 00156 00157 00158 00159 00160 00161 00162 00163 00164 00165 00166 00167 00168 00169 00170 00171 00172 00173 00174 00175 00176 00177 |
// ============================================================================ // JBLocalMessageScreen // Copyright 2004 by Mychaeel <mychaeel@planetjailbreak.com> // $Id: JBLocalMessageScreen.uc,v 1.8 2004/05/17 22:47:31 mychaeel Exp $ // // Displays on-screen messages. // ============================================================================ class JBLocalMessageScreen extends JBLocalMessage notplaceable; // ============================================================================ // Variables // ============================================================================ var int FontSizeTeam; // font size for capture and release messages var int FontSizeArena; // font size for arena messages var int FontSizeKeyboard; // font size for keyboard information messages var int FontSizeLastMan; // font size for last man message var float PosYTeam; // position for capture and release messages var float PosYArena; // position for arena messages var float PosYKeyboardArena; // position for keyboard arena messages var float PosYKeyboardCamera; // position for keyboard camera messages var float PosYLastMan; // position for last man message var Color ColorTextTeam; // color for capture and release messages var Color ColorTextArena; // color for arena messages var Color ColorTextKeyboard; // color for keyboard information messages var Color ColorTextLastMan; // color for last man message var int LifetimeTeam; // lifetime of capture and release messages var int LifetimeArena; // lifetime of arena messages var int LifetimeKeyboard; // lifetime of keyboard information messages var int LifetimeLastMan; // lifetime of last man message // ============================================================================ // ClientReceive // // Clears previous messages of the same message group from the screen. // ============================================================================ static function ClientReceive(PlayerController PlayerController, optional int Switch, optional PlayerReplicationInfo PlayerReplicationInfo1, optional PlayerReplicationInfo PlayerReplicationInfo2, optional Object ObjectOptional) { local JBInterfaceHud JBInterfaceHud; JBInterfaceHud = JBInterfaceHud(PlayerController.myHUD); if (Switch >= 400 && Switch <= 499) { JBInterfaceHud.ClearMessageByClass(Default.Class, 400); JBInterfaceHud.ClearMessageByClass(Default.Class, 401); JBInterfaceHud.ClearMessageByClass(Default.Class, 402); JBInterfaceHud.ClearMessageByClass(Default.Class, 403); } Super.ClientReceive(PlayerController, Switch, PlayerReplicationInfo1, PlayerReplicationInfo2, ObjectOptional); } // ============================================================================ // GetColor // // Returns the color to use for the given message. // ============================================================================ static function Color GetColor(optional int Switch, optional PlayerReplicationInfo PlayerReplicationInfo1, optional PlayerReplicationInfo PlayerReplicationInfo2) { if (Switch <= 399) return Default.ColorTextTeam; else if (Switch <= 499) return Default.ColorTextArena; else if (Switch <= 599) return Default.ColorTextKeyboard; else if (Switch <= 699) return Default.ColorTextLastMan; return Super.GetColor(Switch, PlayerReplicationInfo1, PlayerReplicationInfo2); } // ============================================================================ // GetPos // // Returns the position to use for the given message. // ============================================================================ static function GetPos(int Switch, out EDrawPivot OutDrawPivot, out EStackMode OutStackMode, out float OutPosX, out float OutPosY) { Super.GetPos(Switch, OutDrawPivot, OutStackMode, OutPosX, OutPosY); if (Switch <= 399) OutPosY = Default.PosYTeam; else if (Switch <= 499) OutPosY = Default.PosYArena; else if (Switch == 500) OutPosY = Default.PosYKeyboardArena; else if (Switch == 510) OutPosY = Default.PosYKeyboardCamera; else if (Switch <= 699) OutPosY = Default.PosYLastMan; } // ============================================================================ // GetFontSize // // Returns the font size to use for the given message. // ============================================================================ static function int GetFontSize(int Switch, PlayerReplicationInfo PlayerReplicationInfo1, PlayerReplicationInfo PlayerReplicationInfo2, PlayerReplicationInfo PlayerReplicationInfoLocal) { if (Switch <= 399) return Default.FontSizeTeam; else if (Switch <= 499) return Default.FontSizeArena; else if (Switch <= 599) return Default.FontSizeKeyboard; else if (Switch <= 699) return Default.FontSizeLastMan; return Super.GetFontSize(Switch, PlayerReplicationInfo1, PlayerReplicationInfo2, PlayerReplicationInfoLocal); } // ============================================================================ // GetLifeTime // // Returns the lifetime of the given message. // ============================================================================ static function float GetLifeTime(int Switch) { if (Switch <= 399) return Default.LifetimeTeam; else if (Switch <= 499) return Default.LifetimeArena; else if (Switch <= 599) return Default.LifetimeKeyboard; else if (Switch <= 699) return Default.LifetimeLastMan; return Super.GetLifeTime(Switch); } // ============================================================================ // Defaults // ============================================================================ defaultproperties { bIsConsoleMessage = False; StackMode = SM_Down; FontSizeTeam = 0; // larger FontSizeArena = 0; // larger FontSizeKeyboard = -2; // small FontSizeLastMan = 0; // larger ColorTextTeam = (R=000,G=160,B=255,A=255); ColorTextArena = (R=032,G=064,B=255,A=255); ColorTextKeyboard = (R=255,G=255,B=255,A=255); ColorTextLastMan = (R=255,G=255,B=000,A=255); PosYTeam = 0.13; PosYArena = 0.70; PosYKeyboardArena = 0.13; PosYKeyboardCamera = 0.04; PosYLastMan = 0.16; LifetimeTeam = 3; LifetimeArena = 3; LifetimeKeyboard = 6; LifetimeLastMan = 1; bFadeMessage = True; bIsPartiallyUnique = True; bIsSpecial = True; } |
Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |