Exemplo n.º 1
0
    void StartCharactersSavedMenu(int indice = 0)
    {
        List <CustomizationContainerDates> lccd = ToSaveCustomizationContainer.Instance.ccds;

        if (lccd.Count > 0)
        {
            string[] ss = new string[lccd.Count];
            for (int i = 0; i < ss.Length; i++)
            {
                ss[i] = lccd[i].Sid;
            }
            cMenu.FinishHud();
            charDbMenu.StartHud((int x) => { }, ss, selectIndex: indice);
            ChangeBaseCharacter(lccd[indice].PersBase == PersonagemBase.masculino);
            secManager.SetCustomDates(lccd[indice]);

            estado = EstadoDoMenu.characterSaveChanges;
        }
    }
Exemplo n.º 2
0
    private void OnSelectGlobalColor(SelectGlobalColorMessage obj)
    {
        transitoryReg = obj.indexOfGlobal;
        estado        = EstadoDoMenu.globalizationMenu;

        EndGlobalColorMenu();
        globalMenu.StartHud(OpcoesDoGlobalizationMenu,
                            new string[3] {
            "Selecionar a cor e não usar registro", "Selecionar a cor e usar o registro", "Voltar para o menu anterior"
        });

        EditableElements target = activeEditables[cMenu.SelectedOption];

        Debug.Log(target.member + " : " + target.inIndex);

        ColorContainerStruct ccs = secManager.GetColorAssignById(target.member).coresEditaveis[target.inIndex];

        if (ccs.coresEditaveis.registro == obj.indexOfGlobal)
        {
            globalMenu.ChangeSelectionTo(1);
        }
    }