|
|
function [] = train_Inst_Xtra(disp_struct) |
|
|
|
|
|
|
|
|
text_0 = '-Instructions-\n\n\n'; |
|
|
text_1 = 'OK - here''s something *important* to remember.\n\n\n'; |
|
|
text_2 = 'The pictures are RANDOMLY selected for each person, \n\n and are PROBABILISTICALLY associated with the amount of reward. \n\n\n There is NO RELATIONSHIP between the picture type and probability of reward. \n\n\n '; |
|
|
|
|
|
Screen('TextSize', disp_struct.wPtr, 30); |
|
|
Screen('TextFont', disp_struct.wPtr, 'Times'); |
|
|
Screen('TextStyle', disp_struct.wPtr, 0); |
|
|
Screen('TextColor', disp_struct.wPtr, [255 255 255]); |
|
|
Screen('FillRect', disp_struct.wPtr,[0 0 0]); |
|
|
|
|
|
wrap_length = 70; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Screen('TextStyle', disp_struct.wPtr, 1); |
|
|
[nx, ny, textbounds] = DrawFormattedText(disp_struct.wPtr, text_0, 'center', 50, [], wrap_length, [], [], 1.25 ); |
|
|
|
|
|
|
|
|
Screen('TextStyle', disp_struct.wPtr, 0); |
|
|
[nx, ny, textbounds] = DrawFormattedText(disp_struct.wPtr, text_1, 'center', ny, [], wrap_length, [], [], 1.25 ); |
|
|
[nx, ny, textbounds] = DrawFormattedText(disp_struct.wPtr, text_2, 'center', ny, [], wrap_length, [], [], 1.25 ); |
|
|
|
|
|
|
|
|
Screen(disp_struct.wPtr, 'Flip'); |
|
|
WaitSecs(0.5); |
|
|
|
|
|
|
|
|
RestrictKeysForKbCheck(KbName('SPACE')); |
|
|
|
|
|
KbWait([],2); |
|
|
end |