Exemple #1
0
        /// <summary>
        /// Extends the default window drawing behaviour by drawing the Phinix chat interface.
        /// </summary>
        /// <param name="inRect">Container to draw within</param>
        public override void DoWindowContents(Rect inRect)
        {
            base.DoWindowContents(inRect);

            // Create a tab container to hold the chat and trade list
            TabsContainer tabContainer = new TabsContainer(newTabIndex => currentTabIndex = newTabIndex, currentTabIndex);

            // Create a flex container to hold the chat tab content
            HorizontalFlexContainer chatRow = new HorizontalFlexContainer(DEFAULT_SPACING);

            // Chat container
            chatRow.Add(
                GenerateChat()
                );

            // Right column (settings and user list) container
            chatRow.Add(
                new Container(
                    GenerateRightColumn(),
                    width: RIGHT_COLUMN_CONTAINER_WIDTH
                    )
                );

            // Add the chat row as a tab
            tabContainer.AddTab("Phinix_tabs_chat".Translate(), chatRow);

            // Add the active trades tab
            tabContainer.AddTab("Phinix_tabs_trades".Translate(), GenerateTradeRows());

            // Draw the tabs
            tabContainer.Draw(inRect);
        }
Exemple #2
0
 /// <summary>
 /// Extends the default window drawing behaviour by drawing the Phinix chat interface.
 /// </summary>
 /// <param name="inRect">Container to draw within</param>
 public override void DoWindowContents(Rect inRect)
 {
     // Draw the tabs
     contents.Draw(inRect);
 }