示例#1
0
        public void CreateLoginDialog(int X, int Y)
        {
            MemoryStream TexStream = new MemoryStream(ContentManager.GetResourceFromLongID(0xe500000002));
            Texture2D DiagTexture = Texture2D.FromFile(m_ScreenMgr.GraphicsDevice, TexStream);

            string IP = GlobalSettings.Default.LoginServerIP;
            int Port = GlobalSettings.Default.LoginServerPort;

            UILoginDialog LoginDiag = new UILoginDialog(IP, Port, X, Y, DiagTexture, this, "LoginDialog");
            m_NetUIElements.Add(LoginDiag);
        }
示例#2
0
        public void CreateLoginDialog(float X, float Y)
        {
            MemoryStream TexStream = new MemoryStream(ContentManager.GetResourceFromLongID((ulong)FileIDs.UIFileIDs.dialog_backgroundtemplate));
            Texture2D DiagTexture = Texture2D.FromFile(m_ScreenMgr.GraphicsDevice, TexStream);

            string IP = GlobalSettings.Default.LoginServerIP;
            int Port = GlobalSettings.Default.LoginServerPort;

            UILoginDialog LoginDiag = new UILoginDialog(IP, Port, X, Y, DiagTexture, this, "LoginDialog");
            m_NetUIElements.Add(LoginDiag);
        }