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 |
//============================================================================= // DialogMonkey.uc // $Author: Mfox $ // $Date: 2/24/03 3:23p $ // $Revision: 2 $ //============================================================================= class DialogMonkey extends UIHelper; //------------------------------------------------------------------------------ // Main hook into the dialog system function DialogControllerPlayer GetDialogControllerPlayer() { local DialogGameInfo DGI; local DialogEngine DE; DGI = DialogGameInfo(GetPlayerOwner().Level.Game); if( DGI != None ) DE = DGI.GetDialogEngine(); // DE = DialogGameInfo(GetPlayerOwner().Level.Game).GetDialogEngine(); return DialogControllerPlayer( DE.StringToDC( GetPlayerOwner(), Dialog.PlayerSpeakerString )); } //------------------------------------------------------------------------------ // UI Accessors function string GetText1() { if( GetDialogControllerPlayer() == None ) return ""; else return GetDialogControllerPlayer().Text[0]; } function string GetText2() { if( GetDialogControllerPlayer() == None ) return ""; else return GetDialogControllerPlayer().Text[1]; } function string GetText3() { if( GetDialogControllerPlayer() == None ) return ""; else return GetDialogControllerPlayer().Text[2]; } function string GetText4() { if( GetDialogControllerPlayer() == None ) return ""; else return GetDialogControllerPlayer().Text[3]; } function string GetText5() { if( GetDialogControllerPlayer() == None ) return ""; else return GetDialogControllerPlayer().Text[4]; } function string GetText6() { if( GetDialogControllerPlayer() == None ) return ""; else return GetDialogControllerPlayer().Text[5]; } function string GetText7() { if( GetDialogControllerPlayer() == None ) return ""; else return GetDialogControllerPlayer().Text[6]; } //------------------------------------------------------------------------------ defaultproperties { } |
Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |