Example #1
0
//      public TreeNode<CustomMenuItem> help_AboutUnityItem;

//      public TreeNode<CustomMenuItem> help_ManageLicenseItem;

//      public TreeNode<CustomMenuItem> help_UnityManualItem;
//      public TreeNode<CustomMenuItem> help_ScriptingReferenceItem;

//      public TreeNode<CustomMenuItem> help_UnityConnectItem;
//      public TreeNode<CustomMenuItem> help_UnityForumItem;
//      public TreeNode<CustomMenuItem> help_UnityAnswersItem;
//      public TreeNode<CustomMenuItem> help_UnityFeedbackItem;

//      public TreeNode<CustomMenuItem> help_CheckForUpdatesItem;
//      public TreeNode<CustomMenuItem> help_DownloadBetaItem;

//      public TreeNode<CustomMenuItem> help_ReleaseNotesItem;
//      public TreeNode<CustomMenuItem> help_ReportABugItem;
        #endregion

        #endregion



        /// <summary>
        /// Initializes a new instance of the <see cref="UI.Windows.MainWindow.MainMenu.MainMenuUI"/> class.
        /// </summary>
        /// <param name="script">Main menu script.</param>
        public MainMenuUI(MainMenuScript script)
        {
            DebugEx.VerboseFormat("Created MainMenuUI(script = {0}) object", script);

            mScript = script;

            mScrollAreaContent          = null;
            mScrollAreaContentTransform = null;
        }
Example #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="MainMenuUI"/> class.
        /// </summary>
        public MainMenuUI(MainMenuScript script)
        {
            mScript = script;

            mButtonSpriteState = new SpriteState();

            mButtonSpriteState.disabledSprite    = Assets.Windows.MainWindow.MainMenu.Textures.button;
            mButtonSpriteState.highlightedSprite = Assets.Windows.MainWindow.MainMenu.Textures.buttonHighlighted;
            mButtonSpriteState.pressedSprite     = Assets.Windows.MainWindow.MainMenu.Textures.buttonPressed;

            mScrollAreaContent          = null;
            mScrollAreaContentTransform = null;
        }