コード例 #1
0
        public Entity AddSelectedListener(ISelectedListener newListener)
        {
            var component = CreateComponent <SelectedListenerComponent>(UIComponentIds.SelectedListener);

            component.Listener = newListener;
            return(AddComponent(UIComponentIds.SelectedListener, component));
        }
コード例 #2
0
        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;
        }
コード例 #3
0
 public virtual void Inject(
     SignalBus signalBus,
     ISelectedListener <MenuEncounterSelectedEventArgs> encounterSelectedListener)
 {
     SignalBus = signalBus;
     EncounterSelectedListener = encounterSelectedListener;
 }
コード例 #4
0
 public virtual void Inject(
     ISelectedListener<EncounterSelectedEventArgs> encounterSelectedListener,
     BaseCharacterColorThemeSelector colorThemeSelectionPopup)
 {
     EncounterSelectedListener = encounterSelectedListener;
     ColorThemeSelectionPopup = colorThemeSelectionPopup;
 }
コード例 #5
0
 public virtual void Inject(
     IStatusWriter statusWriter,
     ISelectedListener <UserEncounterSelectedEventArgs> encounterSelectedListener)
 {
     EncounterSelectedListener = encounterSelectedListener;
     StatusWriter = statusWriter;
 }
コード例 #6
0
 public virtual void Inject(
     IKeyedSpriteSelector spriteSelector,
     ISelectedListener <EncounterSelectedEventArgs> encounterSelectedListener)
 {
     SpriteSelector            = spriteSelector;
     EncounterSelectedListener = encounterSelectedListener;
 }
コード例 #7
0
        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);
            }
        }
コード例 #8
0
        public Entity ReplaceSelectedListener(ISelectedListener newListener)
        {
            var component = CreateComponent <SelectedListenerComponent>(UIComponentIds.SelectedListener);

            component.Listener = newListener;
            ReplaceComponent(UIComponentIds.SelectedListener, component);
            return(this);
        }
コード例 #9
0
 public virtual void Inject(ISelectedListener <PanelSelectedEventArgs> panelSelectedListener)
 {
     PanelSelectedListener           = panelSelectedListener;
     PanelSelectedListener.Selected += OnPanelSelected;
     if (PanelSelectedListener.CurrentValue != null)
     {
         OnPanelSelected(this, PanelSelectedListener.CurrentValue);
     }
 }
コード例 #10
0
 [Inject] public virtual void Inject(
     IEncounterLocker encounterLocker,
     IEncounterUnlocker encounterUnlocker,
     ISelectedListener <WriterSceneInfoSelectedEventArgs> sceneSelectedListener)
 {
     EncounterLocker       = encounterLocker;
     EncounterUnlocker     = encounterUnlocker;
     SceneSelectedListener = sceneSelectedListener;
 }
コード例 #11
0
 public virtual void Inject(
     SignalBus signalBus,
     IEncounterLocksReader encounterLocksReader,
     ISelectedListener <MenuSceneInfoSelectedEventArgs> sceneSelectedListener)
 {
     SignalBus             = signalBus;
     EncounterLocksReader  = encounterLocksReader;
     SceneSelectedListener = sceneSelectedListener;
 }
コード例 #12
0
 public virtual void Inject(
     ISelectedListener <UserEncounterSelectedEventArgs> encounterSelectedListener,
     ISelector <UserSectionSelectedEventArgs> sectionSelector,
     ISelectedListener <UserSectionSelectedEventArgs> sectionSelectedListener)
 {
     EncounterSelectedListener = encounterSelectedListener;
     SectionSelector           = sectionSelector;
     SectionSelectedListener   = sectionSelectedListener;
 }
コード例 #13
0
 public virtual void Inject(
     ISelectedListener <EncounterSelectedEventArgs> encounterSelectedListener,
     IIconSpriteRetriever iconSpriteRetriever,
     BaseIconSelector iconSelectionPopup)
 {
     EncounterSelectedListener = encounterSelectedListener;
     IconSpriteRetriever       = iconSpriteRetriever;
     IconSelectionPopup        = iconSelectionPopup;
 }
コード例 #14
0
 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);
     }
 }
コード例 #15
0
 public virtual void Inject(
     ISelectedListener <LoadingWriterSceneInfoSelectedEventArgs> writerSceneInfoSelectedListener,
     IMenuSceneStarter menuSceneStarter,
     IMenuEncountersInfoReader menuInfoReader,
     BaseConfirmationPopup confirmationPopup)
 {
     WriterSceneInfoSelectedListener = writerSceneInfoSelectedListener;
     MenuSceneStarter  = menuSceneStarter;
     MenuInfoReader    = menuInfoReader;
     ConfirmationPopup = confirmationPopup;
 }
コード例 #16
0
 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;
 }
コード例 #17
0
 public virtual void Inject(
     AnimationMonitor animationMonitor,
     ISelector <LoadingReaderSceneInfoSelectedEventArgs> loadingReaderSceneInfoSelector,
     ISelectedListener <WriterSceneInfoSelectedEventArgs> writerSceneInfoSelector,
     ICurve curve)
 {
     AnimationMonitor = animationMonitor;
     LoadingReaderSceneInfoSelector = loadingReaderSceneInfoSelector;
     WriterSceneInfoSelector        = writerSceneInfoSelector;
     Curve = curve;
 }
コード例 #18
0
        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);
            }
        }
コード例 #19
0
        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;
            }
        }
コード例 #20
0
        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;
        }
コード例 #21
0
        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);
        }
コード例 #22
0
 public virtual void Inject(ISelectedListener <UserTabSelectedEventArgs> userTabSelector)
 {
     UserTabSelector = userTabSelector;
 }
コード例 #23
0
 public virtual void Inject(ISelectedListener <UserSectionSelectedEventArgs> sectionSelector)
 => SectionSelector = sectionSelector;
コード例 #24
0
 public virtual void Inject(BaseSaveEncounterDisplay savePopup, ISelectedListener <WriterSceneInfoSelectedEventArgs> sceneInfoSelector)
 {
     SavePopup         = savePopup;
     SceneInfoSelector = sceneInfoSelector;
 }
コード例 #25
0
 public virtual void Inject(ISelectedListener <TabSelectedEventArgs> tabSelector)
 => TabSelector = tabSelector;
コード例 #26
0
 public virtual void Inject(IIconSpriteRetriever iconSpriteRetriever,
                            ISelectedListener <EncounterSelectedEventArgs> encounterSelectedListener)
 {
     IconSpriteRetriever       = iconSpriteRetriever;
     EncounterSelectedListener = encounterSelectedListener;
 }
コード例 #27
0
 public void Inject(ISelectedListener <EncounterSelectedEventArgs> encounterSelectedListener, BaseCharactersEditor charactersEditor)
 {
     EncounterSelectedListener = encounterSelectedListener;
     CharactersEditor          = charactersEditor;
 }
コード例 #28
0
 [Inject] public virtual void Inject(ISelectedListener <EncounterMetadataSelectedEventArgs> metadataSelector) => MetadataSelector = metadataSelector;
コード例 #29
0
 public virtual void Inject(ISelectedListener <UserEncounterSelectedEventArgs> encounterSelectedListener)
 => EncounterSelectedListener = encounterSelectedListener;