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); }
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); }