public override void OnInit() { base.OnInit(); #region source macros UI.Windows.OnInit.ImageComponent { this.tempImagePlayOnShow = false; if (this.imageLocalizationKey.IsNone() == false) { if ((this.imageResource.controlType & ResourceAuto.ControlType.Init) != 0) { this.SetImage(this.imageLocalizationKey); } } else { WindowSystemResources.LoadAuto(this, onDataLoaded: () => { this.tempImagePlayOnShow = true; if (this.IsVisible() == true) { if (this.playOnShow == true) { this.Play(); } } }, onComplete: null, onShowHide: false); } this.imageCrossFadeModule.Init(this); } #endregion }
public override void DoShowBegin(AppearanceParameters parameters) { #region source macros UI.Windows.DoShowBegin.ImageComponent { if (this.imageResourceWait == true && this.imageResource.IsLoadable() == true) { WindowSystemResources.LoadAuto(this, onDataLoaded: () => { this.tempImagePlayOnShow = true; if (this.playOnShow == true) { this.Play(); } }, onComplete: () => { base.DoShowBegin(parameters); }, onShowHide: true, onFailed: () => { base.DoShowBegin(parameters); }); } else { base.DoShowBegin(parameters); } } #endregion }
public override void OnShowBegin() { base.OnShowBegin(); #region source macros UI.Windows.OnShowBegin.ImageComponent { if (this.imageLocalizationKey.IsNone() == false) { if ((this.imageResource.controlType & ResourceBase.ControlType.Show) != 0) { this.SetImage(this.imageLocalizationKey); } } else { WindowSystemResources.LoadAuto(this, onDataLoaded: () => { if (this.playOnShow == true) { this.Play(); } }, onComplete: null, onShowHide: true); } if (this.tempImagePlayOnShow == true) { if (this.playOnShow == true) { this.Play(); } } } #endregion }
public override void OnInit() { base.OnInit(); this.button.onClick.RemoveListener(this.OnClick); this.button.onClick.AddListener(this.OnClick); if (this.setDefaultNavigationModeOnStart == true) { this.SetNavigationMode(this.defaultNavigationMode); } #region macros UI.Windows.OnInit.TextComponent /* * This code is auto-generated by Macros Module * Do not change anything */ { if (this.textLocalizationKey.IsNone() == false) { this.SetText(this.textLocalizationKey); } } #endregion #region macros UI.Windows.OnInit.ImageComponent /* * This code is auto-generated by Macros Module * Do not change anything */ { this.tempImagePlayOnShow = false; if (this.imageLocalizationKey.IsNone() == false) { this.SetImage(this.imageLocalizationKey); } else { WindowSystemResources.LoadAuto(this, onDataLoaded: () => { this.tempImagePlayOnShow = true; if (this.IsVisible() == true) { if (this.playOnShow == true) { this.Play(); } } }, onComplete: null, onShowHide: false); } this.imageCrossFadeModule.Init(this); } #endregion }
public override void OnShowBegin() { base.OnShowBegin(); //this.onStateActive = true; if (this.selectByDefault == true) { this.Select(); } #region macros UI.Windows.OnShowBegin.TextComponent #endregion #region macros UI.Windows.OnShowBegin.ImageComponent /* * This code is auto-generated by Macros Module * Do not change anything */ { WindowSystemResources.LoadAuto(this, onDataLoaded: () => { if (this.playOnShow == true) { this.Play(); } }, onComplete: null, onShowHide: true); if (this.tempImagePlayOnShow == true) { if (this.playOnShow == true) { this.Play(); } } } #endregion }
public override void OnShowBegin(AppearanceParameters parameters) { #region source macros UI.Windows.OnShowBegin.ImageComponent { if (this.imageCrossFadeModule.IsValid() == true) { this.imageCrossFadeModule.Prepare(this); } if (this.imageLocalizationKey.IsNone() == false) { if ((this.imageResource.controlType & ResourceAuto.ControlType.Show) != 0) { this.SetImage(this.imageLocalizationKey); } } else { WindowSystemResources.LoadAuto(this, onDataLoaded: () => { if (this.playOnShow == true) { this.Play(); } }, onComplete: null, onShowHide: true); } if (this.tempImagePlayOnShow == true) { if (this.playOnShow == true) { this.Play(); } } } #endregion base.OnShowBegin(parameters); }
public override void OnShowBegin() { base.OnShowBegin(); #region source macros UI.Windows.OnShowBegin.ImageComponent { WindowSystemResources.LoadAuto(this, onDataLoaded: () => { if (this.playOnShow == true) { this.Play(); } }, onComplete: null, onShowHide: true); if (this.tempImagePlayOnShow == true) { if (this.playOnShow == true) { this.Play(); } } } #endregion }