StateSwitch_addSurroundingCues_words.m 1.13 KB
Newer Older
Julian Kosciessa's avatar
Julian Kosciessa committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
function StateSwitch_addSurroundingCues_words(expInfo, screenInfo, indRun, indBlock, indTrial)
    % adds the surrounding cues for the next flip
%     expInfo.Cues = {'Tier?'; 'einsilbig?'; 'gerade?'; 'H?'};
    for indAtt = 1:4
        switch indAtt 
            case 1
                smallIm = [0 0 screenInfo.screenRect(3)/2 screenInfo.screenRect(4)/2];
            case 2
                smallIm = [screenInfo.screenRect(3)/2 0 screenInfo.screenRect(3) screenInfo.screenRect(4)/2];
            case 3
                smallIm = [0 screenInfo.screenRect(4)/2 screenInfo.screenRect(3)/2 screenInfo.screenRect(4)];
            case 4
                smallIm = [screenInfo.screenRect(3)/2 screenInfo.screenRect(4)/2 screenInfo.screenRect(3) screenInfo.screenRect(4)];
        end
        if ismember(indAtt, expInfo.AttCuesRun{indRun}{indBlock,indTrial})
            oldTextSize = Screen('TextSize', screenInfo.curWindow, 30);
            DrawFormattedText(screenInfo.curWindow, expInfo.Cues{indAtt}, 'center', 'center', [], [], [],[],[],[],smallIm);
            Screen('TextSize', screenInfo.curWindow, oldTextSize); clear oldTextSize;
        end
    end
end