Exemplo n.º 1
0
    private void OnSelect_CardComboPriorityCardContainer(ILevelEditorPanel_CardComboPriorityCardContainer c_selected)
    {
        foreach (ILevelEditorPanel_CardComboPriorityCardContainer c in ILevelEditorPanel_CardComboPriorityCardContainers)
        {
            if (c_selected != c)
            {
                c.IsSelected = false;
            }
        }

        Cur_Selected_ILevelEditorPanel_CardComboPriorityCardContainer = c_selected;
        NoticeManager.Instance.ShowInfoPanelCenter(LanguageManager.Instance.GetText("LevelEditorPanel_MouseMiddleButtonToSelect"), 0f, 0.5f);
    }
Exemplo n.º 2
0
    public void Initialize_Right()
    {
        ILevelEditorPanel_CardComboPriorityCardContainers.Clear();
        Cur_Selected_ILevelEditorPanel_CardComboPriorityCardContainer = null;

        foreach (LevelEditorPanel_CardCombo lep_cc in LevelEditorPanel_CardComboList.LevelEditorPanel_CardCombos)
        {
            ILevelEditorPanel_CardComboPriorityCardContainers.Add(lep_cc);
        }

        ILevelEditorPanel_CardComboPriorityCardContainers.Add(LevelEditorPanel_CardPriority);

        foreach (ILevelEditorPanel_CardComboPriorityCardContainer c in ILevelEditorPanel_CardComboPriorityCardContainers)
        {
            c.OnSelect = OnSelect_CardComboPriorityCardContainer;
        }

        foreach (ILevelEditorPanel_CardComboPriorityCardContainer c in ILevelEditorPanel_CardComboPriorityCardContainers)
        {
            c.IsSelected = false;
        }
    }