public override void OnEnter(UIController controller, ExpressionUI previousUI) { _expressionInfo = controller.ExpressionInfo; _messages = controller.Messages; _finishButton = controller.ContentFrame.Q <Button>("button-finish"); _finishButton.clickable = new Clickable(OnFinishClicked); SetupMaterialList(controller); SetupTargetRenderer(controller); void OnFinishClicked() { Build(); controller.SetFrame <Finish>(); } ErrorValidate(); }
public override void OnEnter(UIController controller, ExpressionUI previousUI) { _dirtyAssets.Clear(); _expressionInfo = controller.ExpressionInfo; var createAnimation = controller.ContentFrame.Q <Toggle>("create-animation"); var finishButton = controller.ContentFrame.Q <Button>("button-finish"); createAnimation.value = _createAnimation; createAnimation.RegisterValueChangedCallback(evt => _createAnimation = evt.newValue); finishButton.clickable = new Clickable(OnFinishClicked); controller.Messages.SetActive(true, "generic-toggle-create-animation"); void OnFinishClicked() { Build(); controller.SetFrame <Finish>(); } }
public override void OnEnter(UIController controller, ExpressionUI previousUI) { _controller = controller; _expressionInfo = controller.ExpressionInfo; var finishButton = controller.ContentFrame.Q <Button>("button-finish"); finishButton.clickable = new Clickable(OnFinishClicked); SetupTargetObjectsList(controller); void OnFinishClicked() { Build(); controller.SetFrame <Finish>(); } ErrorValidate(); }
public override void OnEnter(UIController controller, ExpressionUI previousUI) { controller.Close(); }