Example #1
0
 void Awake()
 {
     instance    = this;
     tweenRot    = GetComponent <TweenRotation>();
     button      = GetComponent <UIButton>();
     buttonEvent = new EventDelegate(this, "OnCustomModeOn");
     button.onClick.Add(buttonEvent);
 }
Example #2
0
        public MultiplayerPage(GameSettings settings)
        {
            _settings = settings;

            var mode = new CustomMode(settings.BoardWidth, settings.BoardHeight, settings.Bomb);
            int playerWindowWidth = (int)(Constants.WINDOW_WIDTH * Constants.SCREENS_RATIO);

            _playerProps = new DrawingProperties(
                settings.BoardWidth, settings.BoardHeight, mode.SquareSize, playerWindowWidth
                );

            _opponentProps = new DrawingProperties(
                settings.BoardHeight, settings.BoardWidth, Constants.OPPONENT_SQUARE_SIZE,
                (int)(Constants.WINDOW_WIDTH * (1 - Constants.SCREENS_RATIO)))
            {
                MarginLeftOffset = playerWindowWidth,
                IsRotated        = true
            };
        }
Example #3
0
 public void send_updateCustomModeSettings(CustomMode customMode, Dictionary<string, string> paramMap)
 #endif
 {
   oprot_.WriteMessageBegin(new TMessage("updateCustomModeSettings", TMessageType.Call, seqid_));
   updateCustomModeSettings_args args = new updateCustomModeSettings_args();
   args.CustomMode = customMode;
   args.ParamMap = paramMap;
   args.Write(oprot_);
   oprot_.WriteMessageEnd();
   #if SILVERLIGHT
   return oprot_.Transport.BeginFlush(callback, state);
   #else
   oprot_.Transport.Flush();
   #endif
 }
Example #4
0
 public IAsyncResult send_updateCustomModeSettings(AsyncCallback callback, object state, CustomMode customMode, Dictionary<string, string> paramMap)
Example #5
0
      public void updateCustomModeSettings(CustomMode customMode, Dictionary<string, string> paramMap)
      {
        #if !SILVERLIGHT
        send_updateCustomModeSettings(customMode, paramMap);
        recv_updateCustomModeSettings();

        #else
        var asyncResult = Begin_updateCustomModeSettings(null, null, customMode, paramMap);
        End_updateCustomModeSettings(asyncResult);

        #endif
      }
Example #6
0
 public IAsyncResult Begin_updateCustomModeSettings(AsyncCallback callback, object state, CustomMode customMode, Dictionary<string, string> paramMap)
 {
   return send_updateCustomModeSettings(callback, state, customMode, paramMap);
 }
Example #7
0
 private void SetMode(InkCanvasEditingMode _mode, CustomMode _CustomMode)
 {
     SetStroke();
     _InkCanvas.EditingMode = _mode;
     _CurCustomMode         = _CustomMode;
 }
Example #8
0
 private void SetMode(InkCanvasEditingMode _mode, CustomMode _CustomMode)
 {
     SetStroke();
     _InkCanvas.EditingMode = _mode;
     _CurCustomMode = _CustomMode;
 }