public Entity AddSelectedListener(ISelectedListener newListener) { var component = CreateComponent <SelectedListenerComponent>(UIComponentIds.SelectedListener); component.Listener = newListener; return(AddComponent(UIComponentIds.SelectedListener, component)); }
public virtual void Inject( ISelectedListener <UserEncounterSelectedEventArgs> userEncounterSelectedListener, ISelector <UserSectionSelectedEventArgs> userSectionSelector, ISelectedListener <UserSectionSelectedEventArgs> userSectionSelectedListener, ISelector <UserTabSelectedEventArgs> userTabSelector, ISelectedListener <UserTabSelectedEventArgs> userTabSelectedListener) { UserEncounterSelectedListener = userEncounterSelectedListener; UserEncounterSelectedListener.Selected += OnEncounterSelected; if (UserEncounterSelectedListener.CurrentValue != null) { OnEncounterSelected(UserEncounterSelectedListener, UserEncounterSelectedListener.CurrentValue); } UserSectionSelector = userSectionSelector; UserSectionSelectedListener = userSectionSelectedListener; UserSectionSelectedListener.Selected += OnSectionSelected; if (UserSectionSelectedListener.CurrentValue != null) { OnSectionSelected(UserSectionSelectedListener, UserSectionSelectedListener.CurrentValue); } UserTabSelectedListener = userTabSelectedListener; UserTabSelector = userTabSelector; UserTabSelectedListener.Selected += OnTabSelected; }
public virtual void Inject( SignalBus signalBus, ISelectedListener <MenuEncounterSelectedEventArgs> encounterSelectedListener) { SignalBus = signalBus; EncounterSelectedListener = encounterSelectedListener; }
public virtual void Inject( ISelectedListener<EncounterSelectedEventArgs> encounterSelectedListener, BaseCharacterColorThemeSelector colorThemeSelectionPopup) { EncounterSelectedListener = encounterSelectedListener; ColorThemeSelectionPopup = colorThemeSelectionPopup; }
public virtual void Inject( IStatusWriter statusWriter, ISelectedListener <UserEncounterSelectedEventArgs> encounterSelectedListener) { EncounterSelectedListener = encounterSelectedListener; StatusWriter = statusWriter; }
public virtual void Inject( IKeyedSpriteSelector spriteSelector, ISelectedListener <EncounterSelectedEventArgs> encounterSelectedListener) { SpriteSelector = spriteSelector; EncounterSelectedListener = encounterSelectedListener; }
public virtual void Inject( AnimationMonitor animationMonitor, SwipeManager swipeManager, ICurve curve, ISelectedListener <UserEncounterSelectedEventArgs> encounterSelectedListener, ISelector <UserSectionSelectedEventArgs> sectionSelector, ISelectedListener <UserSectionSelectedEventArgs> sectionSelectedListener) { foreach (var behaviour in swipableSectionBehaviours) { if (behaviour is ISwipableSection swipableSection) { SwipableSections.Add(swipableSection); } } AnimationMonitor = animationMonitor; SwipeManager = swipeManager; Curve = curve; EncounterSelectedListener = encounterSelectedListener; SectionSelector = sectionSelector; SectionSelectedListener = sectionSelectedListener; SectionSelectedListener.Selected += OnSectionSelected; if (SectionSelectedListener.CurrentValue != null) { OnSectionSelected(SectionSelector, SectionSelectedListener.CurrentValue); } }
public Entity ReplaceSelectedListener(ISelectedListener newListener) { var component = CreateComponent <SelectedListenerComponent>(UIComponentIds.SelectedListener); component.Listener = newListener; ReplaceComponent(UIComponentIds.SelectedListener, component); return(this); }
public virtual void Inject(ISelectedListener <PanelSelectedEventArgs> panelSelectedListener) { PanelSelectedListener = panelSelectedListener; PanelSelectedListener.Selected += OnPanelSelected; if (PanelSelectedListener.CurrentValue != null) { OnPanelSelected(this, PanelSelectedListener.CurrentValue); } }
[Inject] public virtual void Inject( IEncounterLocker encounterLocker, IEncounterUnlocker encounterUnlocker, ISelectedListener <WriterSceneInfoSelectedEventArgs> sceneSelectedListener) { EncounterLocker = encounterLocker; EncounterUnlocker = encounterUnlocker; SceneSelectedListener = sceneSelectedListener; }
public virtual void Inject( SignalBus signalBus, IEncounterLocksReader encounterLocksReader, ISelectedListener <MenuSceneInfoSelectedEventArgs> sceneSelectedListener) { SignalBus = signalBus; EncounterLocksReader = encounterLocksReader; SceneSelectedListener = sceneSelectedListener; }
public virtual void Inject( ISelectedListener <UserEncounterSelectedEventArgs> encounterSelectedListener, ISelector <UserSectionSelectedEventArgs> sectionSelector, ISelectedListener <UserSectionSelectedEventArgs> sectionSelectedListener) { EncounterSelectedListener = encounterSelectedListener; SectionSelector = sectionSelector; SectionSelectedListener = sectionSelectedListener; }
public virtual void Inject( ISelectedListener <EncounterSelectedEventArgs> encounterSelectedListener, IIconSpriteRetriever iconSpriteRetriever, BaseIconSelector iconSelectionPopup) { EncounterSelectedListener = encounterSelectedListener; IconSpriteRetriever = iconSpriteRetriever; IconSelectionPopup = iconSelectionPopup; }
public virtual void Inject(IStringDeserializer <Color> colorStringDeserializer, ISelectedListener <PanelSelectedEventArgs> panelSelectedListener) { ColorDeserializer = colorStringDeserializer; PanelSelectedListener = panelSelectedListener; PanelSelectedListener.Selected += OnPanelSelected; if (PanelSelectedListener.CurrentValue != null) { OnPanelSelected(this, PanelSelectedListener.CurrentValue); } }
public virtual void Inject( ISelectedListener <LoadingWriterSceneInfoSelectedEventArgs> writerSceneInfoSelectedListener, IMenuSceneStarter menuSceneStarter, IMenuEncountersInfoReader menuInfoReader, BaseConfirmationPopup confirmationPopup) { WriterSceneInfoSelectedListener = writerSceneInfoSelectedListener; MenuSceneStarter = menuSceneStarter; MenuInfoReader = menuInfoReader; ConfirmationPopup = confirmationPopup; }
public virtual void Inject( SignalBus signalBus, BaseMessageHandler messageHandler, ISelectedListener <WriterSceneInfoSelectedEventArgs> sceneInfoSelectedListener, [Inject(Id = SaveType.Autosave)] IEncounterWriter encounterWriter) { SignalBus = signalBus; MessageHandler = messageHandler; SceneInfoSelectedListener = sceneInfoSelectedListener; EncounterWriter = encounterWriter; }
public virtual void Inject( AnimationMonitor animationMonitor, ISelector <LoadingReaderSceneInfoSelectedEventArgs> loadingReaderSceneInfoSelector, ISelectedListener <WriterSceneInfoSelectedEventArgs> writerSceneInfoSelector, ICurve curve) { AnimationMonitor = animationMonitor; LoadingReaderSceneInfoSelector = loadingReaderSceneInfoSelector; WriterSceneInfoSelector = writerSceneInfoSelector; Curve = curve; }
public void Inject( IWriterSceneStarter writerSceneStarter, ISelectedListener <ReaderSceneInfoSelectedEventArgs> sceneInfoSelectedListener, ISelectedListener <UserEncounterSelectedEventArgs> encounterSelectedListener) { WriterSceneStarter = writerSceneStarter; SceneInfoSelectedListener = sceneInfoSelectedListener; EncounterSelectedListener = encounterSelectedListener; EncounterSelectedListener.Selected += OnEncounterSelected; if (EncounterSelectedListener.CurrentValue != null) { OnEncounterSelected(EncounterSelectedListener, EncounterSelectedListener.CurrentValue); } }
public virtual void Inject( ILinearEncounterNavigator linearEncounterNavigator, ISelectedListener <UserTabSelectedEventArgs> tabSelector) { LinearEncounterNavigator = linearEncounterNavigator; TabSelector = tabSelector; TabSelector.Selected += OnTabSelected; if (TabSelector.CurrentValue != null) { OnTabSelected(TabSelector, TabSelector.CurrentValue); } if (updateWhenCurrentTabChanged) { LinearEncounterNavigator.EncounterTabPositionChanged += EncounterTabPositionChanged; } }
public virtual void Inject( SignalBus signalBus, BaseConfirmationPopup confirmationPopup, ISelectedListener <WriterSceneInfoSelectedEventArgs> sceneInfoSelector, ISelectedListener <SectionSelectedEventArgs> sectionSelector, ISelectedListener <TabSelectedEventArgs> tabSelector, IReaderSceneStarter sceneStarter, [Inject(Id = SaveType.Local)] IEncounterWriter encounterWriter) { SignalBus = signalBus; ConfirmationPopup = confirmationPopup; SceneInfoSelector = sceneInfoSelector; SectionSelector = sectionSelector; TabSelector = tabSelector; ReaderSceneStarter = sceneStarter; EncounterWriter = encounterWriter; }
public virtual void Inject( ISelector <UserSectionSelectedEventArgs> sectionSelector, ISelectedListener <UserSectionSelectedEventArgs> sectionSelectedListener, ISelector <UserTabSelectedEventArgs> tabSelector, ISelectedListener <UserTabSelectedEventArgs> tabSelectedListener, AndroidBackButton backButton) { SectionSelector = sectionSelector; SectionSelectedListener = sectionSelectedListener; TabSelector = tabSelector; TabSelectedListener = tabSelectedListener; TabSelectedListener.Selected += OnTabSelected; if (TabSelectedListener.CurrentValue != null) { OnTabSelected(this, TabSelectedListener.CurrentValue); } BackButton = backButton; BackButton.Register(OnBackButton); }
public virtual void Inject(ISelectedListener <UserTabSelectedEventArgs> userTabSelector) { UserTabSelector = userTabSelector; }
public virtual void Inject(ISelectedListener <UserSectionSelectedEventArgs> sectionSelector) => SectionSelector = sectionSelector;
public virtual void Inject(BaseSaveEncounterDisplay savePopup, ISelectedListener <WriterSceneInfoSelectedEventArgs> sceneInfoSelector) { SavePopup = savePopup; SceneInfoSelector = sceneInfoSelector; }
public virtual void Inject(ISelectedListener <TabSelectedEventArgs> tabSelector) => TabSelector = tabSelector;
public virtual void Inject(IIconSpriteRetriever iconSpriteRetriever, ISelectedListener <EncounterSelectedEventArgs> encounterSelectedListener) { IconSpriteRetriever = iconSpriteRetriever; EncounterSelectedListener = encounterSelectedListener; }
public void Inject(ISelectedListener <EncounterSelectedEventArgs> encounterSelectedListener, BaseCharactersEditor charactersEditor) { EncounterSelectedListener = encounterSelectedListener; CharactersEditor = charactersEditor; }
[Inject] public virtual void Inject(ISelectedListener <EncounterMetadataSelectedEventArgs> metadataSelector) => MetadataSelector = metadataSelector;
public virtual void Inject(ISelectedListener <UserEncounterSelectedEventArgs> encounterSelectedListener) => EncounterSelectedListener = encounterSelectedListener;