Exemple #1
0
    internal static void TryToSetClueTextColor(int operatedGridId)
    {
        //根据id换算出col和row
        //根据row遍历两次(正反)
        //再根据col遍历两次(正反)

        Vector2 localPos        = MainGame.ConvertToLocation(operatedGridId, MainGame.maxColumns);
        int     currentColIndex = (int)localPos.x;
        int     currentRowIndex = (int)localPos.y;
        List <ColorableClueNumber> myRowClues = GetClueTextDatas(true, currentRowIndex); //某行的clueTextData

        ApplyGrayNumbers(currentRowIndex, true, myRowClues);

        List <ColorableClueNumber> myColClues = GetClueTextDatas(false, currentColIndex); //某列的clueTextData

        ApplyGrayNumbers(currentColIndex, false, myColClues);
    }