home *** CD-ROM | disk | FTP | other *** search
/ 3D Game Programming All in One / 3D Game Programming All in One Disc.iso / 3D2E / RESOURCES / KOOB / control / client / misc / screens.cs < prev    next >
Encoding:
Text File  |  2006-09-25  |  1.3 KB  |  52 lines

  1. //============================================================================
  2. // control/client/misc/screens.cs
  3. //
  4. // Copyright (c) 2003, 2006 by Kenneth C. Finney
  5. //============================================================================
  6. function PlayerInterface::onWake(%this)
  7. {
  8.    $enableDirectInput = "1";
  9.    activateDirectInput();
  10.    
  11.    // Chat box dialog
  12.    Canvas.pushDialog( MainChatBox );///***KCF CHAT
  13.    chatBox.attach(MsgBoxMessageVector);///***KCF CHAT
  14.    
  15.    // just update the key map here
  16.    playerKeymap.push();
  17. }
  18. function PlayerInterface::onSleep(%this)
  19. {
  20.    playerKeymap.pop();
  21. }
  22. function refreshBottomTextCtrl()
  23. {
  24.    BottomPrintText.position = "0 0";
  25. }
  26. function refreshCenterTextCtrl()
  27. {
  28.    CenterPrintText.position = "0 0";
  29. }
  30. function LoadScreen::onAdd(%this)
  31. {
  32.    %this.qLineCount = 0;
  33. }
  34. function LoadScreen::onWake(%this)
  35. {
  36.    CloseMessagePopup();
  37. }
  38. function LoadScreen::onSleep(%this)
  39. {
  40.    // Clear the load info:
  41.    if ( %this.qLineCount !$= "" )
  42.    {
  43.       for ( %line = 0; %line < %this.qLineCount; %line++ )
  44.          %this.qLine[%line] = "";
  45.    }
  46.    %this.qLineCount = 0;
  47.    LOAD_MapName.setText( "" );
  48.    LOAD_MapDescription.setText( "" );
  49.    LoadingProgress.setValue( 0 );
  50.    LoadingProgressTxt.setValue( "WAITING FOR SERVER" );
  51. }
  52.