Beispiel #1
0
        public void SetScreenSize(int width, int height)
        {
            ChatWindow.ChangeScreenSize(new HiveContracts.Point(width, height));
            var size   = Layout.size == default ? new HiveContracts.Point(45, 45) : Layout.size;
            var origin = Layout.origin == default ? new HiveContracts.Point(width / 2, height / 2) : Layout.origin;

            UserPile.ChangeScreenSize(width, height, false);
            OpponentPile.ChangeScreenSize(width, height, true);

            Layout = new Layout(Layout.flat, size, origin);
        }