private void Dispose() { background = null; roomNameBG = null; chattingView = null; chattingInput = null; roomChangeToggle = null; roomNameView = null; roomListViewer = null; }
private void InitializeComponent() { #region UI RESOURCE INITIALIZE SOURCE CODE /// <summary> /// roomNameInput UI Resource Initialize /// </summary> roomNameInput = new TextInputField("ChatInputFont"); roomNameInput.Position = new Vector3(275, 50, 0); roomNameInput.FieldTexture = D3D9Manager.Instance.FindTexture("RoomNameInput"); roomNameInput.MaxLength = 10; roomNameInput.StringColor = new Color(127, 127, 127); roomNameInput.StringOffset = new Vector3(25, 8, 0); roomNameInput.OnEnter += RoomNameInput_OnEnter; /// <summary> /// createButton UI Resource Initialize /// </summary> createButton = new Button(); createButton.ButtonTexture = D3D9Manager.Instance.FindTexture("RoomCreateButton"); createButton.Position = new Vector3(650, 50, 0); createButton.Scale = new Vector3(1.0f, 1.0f, 1.0f); createButton.IsMouseOverResize = true; createButton.OnButtonClick += roomNameInput.EnterText; /// <summary> /// roomListViewer UI Resource Initialize /// </summary> roomListViewer = new NetworkRoomListViewer(); roomListViewer.Position = new Vector3(-5, 80, 0); GameObjectManager.Instance.AddObject(roomNameInput); GameObjectManager.Instance.AddObject(createButton); GameObjectManager.Instance.AddObject(roomListViewer); #endregion }
private void Dispose() { roomNameInput = null; createButton = null; roomListViewer = null; }
private void InitializeComponent() { #region UI RESOURCE INITIALIZE SOURCE CODE /// <summary> /// background UI Resource Initialize /// </summary> background = new TextureObject(); background.Position = new Vector3(ClientWindow.Width / 2, ClientWindow.Height / 2, 0); background.Scale = new Vector3(1, 1, 1); background.Texture = D3D9Manager.Instance.CreateTexture("Background", "./Resource/Background3.png"); /// <summary> /// roomNameBG UI Resource Initialize /// </summary> roomNameBG = new TextureObject(); roomNameBG.Position = new Vector3(320, 56, 0); roomNameBG.Scale = new Vector3(1, 1, 1); roomNameBG.Texture = D3D9Manager.Instance.CreateTexture("RoomNameBG", "./Resource/RoomName.png"); /// <summary> /// roomChangeToggle UI Resource Initialize /// </summary> roomChangeToggle = new Button(); roomChangeToggle.ButtonTexture = D3D9Manager.Instance.CreateTexture("RoomChange", "./Resource/RoomChange.png"); roomChangeToggle.Position = new Vector3(1087, 58, 0); roomChangeToggle.Scale = new Vector3(1.0f, 1.0f, 1.0f); roomChangeToggle.IsMouseOverResize = true; roomChangeToggle.OnButtonClick += RoomChangeToggle_OnClick; /// <summary> /// chattingView UI Resource Initialize /// </summary> chattingView = new TextList("ChatListFont"); chattingView.TextDepth = 25; chattingView.Position = new Vector3(30, D3D9Manager.Instance.WindowHeight - 160, 0); /// <summary> /// chattingInput UI Resource Initialize /// </summary> chattingInput = new TextInputField("ChatInputFont"); chattingInput.Position = new Vector3(549, D3D9Manager.Instance.WindowHeight - 100, 0); chattingInput.FieldTexture = D3D9Manager.Instance.FindTexture("ChatInput"); chattingInput.MaxLength = 60; chattingInput.StringColor = new Color(127, 127, 127); chattingInput.StringOffset = new Vector3(16, 3, 0); chattingInput.OnEnter += ChattingInput_OnEnter; /// <summary> /// roomNameView UI Resource Initialize /// </summary> roomNameView = new TextBox(); roomNameView.Position = new Vector3(50, 20, 0); roomNameView.Text = ClientManager.Instance.CurrentChatRoom; roomNameView.StringColor = new Color(255, 255, 255, 255); roomNameView.FontKey = "RoomTitleFont"; /// <summary> /// roomListViewer UI Resource Initialize /// </summary> roomListViewer = new NetworkRoomListViewer(); roomListViewer.Position = new Vector3(1087, 300, 0); roomListViewer.IsActive = false; GameObjectManager.Instance.AddObject(background); GameObjectManager.Instance.AddObject(roomNameBG); GameObjectManager.Instance.AddObject(chattingView); GameObjectManager.Instance.AddObject(chattingInput); GameObjectManager.Instance.AddObject(roomChangeToggle); GameObjectManager.Instance.AddObject(roomNameView); GameObjectManager.Instance.AddObject(roomListViewer); #endregion }