/// <summary> /// Initializes a new instance of the <see cref="UI.ToolbarUI"/> class. /// </summary> /// <param name="script">Script.</param> public ToolbarUI(ToolbarScript script) { mScript = script; mLeftButtonSpriteState = new SpriteState(); mLeftButtonActiveSpriteState = new SpriteState(); mMiddleButtonSpriteState = new SpriteState(); mMiddleButtonActiveSpriteState = new SpriteState(); mRightButtonSpriteState = new SpriteState(); mRightButtonActiveSpriteState = new SpriteState(); mPopupSpriteState = new SpriteState(); mScrollAreaContentTransform = null; mToolsTransform = null; mBasePointTransform = null; mPointTransform = null; mPointText = null; mCoordinateSystemTransform = null; mCoordinateSystemText = null; mPlaybackTransform = null; mPopupsTransform = null; mLayersTransform = null; mLayersText = null; mLayoutTransform = null; mLayoutText = null; mLeftButtonSpriteState.disabledSprite = Assets.Windows.MainWindow.Toolbar.Textures.toolLeftButton; mLeftButtonSpriteState.highlightedSprite = Assets.Windows.MainWindow.Toolbar.Textures.toolLeftButton; mLeftButtonSpriteState.pressedSprite = Assets.Windows.MainWindow.Toolbar.Textures.toolLeftButtonPressed; mLeftButtonActiveSpriteState.disabledSprite = Assets.Windows.MainWindow.Toolbar.Textures.toolLeftButtonActive; mLeftButtonActiveSpriteState.highlightedSprite = Assets.Windows.MainWindow.Toolbar.Textures.toolLeftButtonActive; mLeftButtonActiveSpriteState.pressedSprite = Assets.Windows.MainWindow.Toolbar.Textures.toolLeftButtonActivePressed; mMiddleButtonSpriteState.disabledSprite = Assets.Windows.MainWindow.Toolbar.Textures.toolMiddleButton; mMiddleButtonSpriteState.highlightedSprite = Assets.Windows.MainWindow.Toolbar.Textures.toolMiddleButton; mMiddleButtonSpriteState.pressedSprite = Assets.Windows.MainWindow.Toolbar.Textures.toolMiddleButtonPressed; mMiddleButtonActiveSpriteState.disabledSprite = Assets.Windows.MainWindow.Toolbar.Textures.toolMiddleButtonActive; mMiddleButtonActiveSpriteState.highlightedSprite = Assets.Windows.MainWindow.Toolbar.Textures.toolMiddleButtonActive; mMiddleButtonActiveSpriteState.pressedSprite = Assets.Windows.MainWindow.Toolbar.Textures.toolMiddleButtonActivePressed; mRightButtonSpriteState.disabledSprite = Assets.Windows.MainWindow.Toolbar.Textures.toolRightButton; mRightButtonSpriteState.highlightedSprite = Assets.Windows.MainWindow.Toolbar.Textures.toolRightButton; mRightButtonSpriteState.pressedSprite = Assets.Windows.MainWindow.Toolbar.Textures.toolRightButtonPressed; mRightButtonActiveSpriteState.disabledSprite = Assets.Windows.MainWindow.Toolbar.Textures.toolRightButtonActive; mRightButtonActiveSpriteState.highlightedSprite = Assets.Windows.MainWindow.Toolbar.Textures.toolRightButtonActive; mRightButtonActiveSpriteState.pressedSprite = Assets.Windows.MainWindow.Toolbar.Textures.toolRightButtonActivePressed; mPopupSpriteState.disabledSprite = Assets.Windows.MainWindow.Toolbar.Textures.popupButton; mPopupSpriteState.highlightedSprite = Assets.Windows.MainWindow.Toolbar.Textures.popupButton; mPopupSpriteState.pressedSprite = Assets.Windows.MainWindow.Toolbar.Textures.popupButton; }
//private ToolbarScript mScript; /// <summary> /// Initializes a new instance of the <see cref="UI.Windows.MainWindow.Toolbar.ToolbarUI"/> class. /// </summary> /// <param name="script">Toolbar script.</param> public ToolbarUI(ToolbarScript script) { DebugEx.VerboseFormat("Created ToolbarUI(script = {0}) object", script); //mScript = script; }