Exemplo n.º 1
0
    void Choices_Command(string[] param)
    {
        string[] choiceText     = new string[param.Length / 2];
        int[]    choiceWaypoint = new int[param.Length / 2];
        string[] labelNames     = new string[param.Length / 2];
        int      tempIndex      = 0;



        for (int i = 0; i < param.Length; i++)
        {
            if (i % 2 == 0)
            {
                choiceText[tempIndex] = param[i];
            }
            else
            {
                labelNames[tempIndex] = param[i];
                if (waypoints.ContainsKey(param[i]))
                {
                    choiceWaypoint[tempIndex] = waypoints[param[i]];
                }
                else
                {
                    choiceWaypoint[tempIndex] = 0;
                }
                tempIndex++;
            }
        }
        OldVSNController.GetInstance().SetLabelNames(labelNames);
        screen.SetChoices(choiceText, choiceWaypoint);
    }