mirror of
				https://github.com/brmlab/ratbox.git
				synced 2025-10-30 21:43:58 +01:00 
			
		
		
		
	Pridan FullScreen mod
This commit is contained in:
		
							parent
							
								
									ac93644b9c
								
							
						
					
					
						commit
						d2d329fabd
					
				
					 5 changed files with 85 additions and 10 deletions
				
			
		|  | @ -16,9 +16,10 @@ SearchString=True | ||||||
| 
 | 
 | ||||||
| [OpenFile] | [OpenFile] | ||||||
| File[1]="FMain.form" | File[1]="FMain.form" | ||||||
| File[2]="FMain.class:663.0" | File[2]="FMain.class:958.0" | ||||||
| Active=2 | Active=2 | ||||||
| Count=2 | File[3]="Form1.form" | ||||||
|  | Count=3 | ||||||
| 
 | 
 | ||||||
| [Watches] | [Watches] | ||||||
| Count=0 | Count=0 | ||||||
|  |  | ||||||
							
								
								
									
										34
									
								
								FMain.class
									
										
									
									
									
								
							
							
						
						
									
										34
									
								
								FMain.class
									
										
									
									
									
								
							|  | @ -77,6 +77,7 @@ PUBLIC SUB BtnKonec_Click() | ||||||
| END | END | ||||||
| 
 | 
 | ||||||
| PUBLIC SUB TimerSystime_Timer() | PUBLIC SUB TimerSystime_Timer() | ||||||
|  | WAIT  | ||||||
|   TxtSysTime.Text = Format$(Now, "dd.mm.yy") & "  " & Format$(Now, "hh:nn:ss") |   TxtSysTime.Text = Format$(Now, "dd.mm.yy") & "  " & Format$(Now, "hh:nn:ss") | ||||||
|   SysWDT = SysWDT + 1 |   SysWDT = SysWDT + 1 | ||||||
|   IF SysWDT = 11 THEN |   IF SysWDT = 11 THEN | ||||||
|  | @ -102,7 +103,7 @@ PUBLIC SUB TimerSystime_Timer() | ||||||
|   ELSE  |   ELSE  | ||||||
|    CheckBox4.BackColor = Color.Red |    CheckBox4.BackColor = Color.Red | ||||||
|   ENDIF  |   ENDIF  | ||||||
| 
 | WAIT  | ||||||
|  IF PotkanAkceBuff = 8 THEN |  IF PotkanAkceBuff = 8 THEN | ||||||
|    CheckBox5.BackColor = Color.Green |    CheckBox5.BackColor = Color.Green | ||||||
|   ELSE  |   ELSE  | ||||||
|  | @ -118,14 +119,16 @@ PUBLIC SUB TimerSystime_Timer() | ||||||
|   ELSE  |   ELSE  | ||||||
|    CheckBox7.BackColor = Color.Red |    CheckBox7.BackColor = Color.Red | ||||||
|   ENDIF  |   ENDIF  | ||||||
| 
 | WAIT  | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| END | END | ||||||
| 
 | 
 | ||||||
| PUBLIC SUB SysLogWrite(Udalost AS String) | PUBLIC SUB SysLogWrite(Udalost AS String) | ||||||
|   TxtSysLog.Text = Format$(Now, "yyyy_mm_dd") & "_" & Format$(Now, "hh:nn:ss") & "_" & udalost & Chr(13) & TxtSysLog.Text |   TxtSysLog.Text = Format$(Now, "yyyy_mm_dd") & "_" & Format$(Now, "hh:nn:ss") & "_" & udalost & Chr(13) & TxtSysLog.Text | ||||||
|  | WAIT  | ||||||
|   PRINT #SysLogFile, Format$(Now, "yyyy_mm_dd") & "_" & Format$(Now, "hh:nn:ss") & "_" & udalost  |   PRINT #SysLogFile, Format$(Now, "yyyy_mm_dd") & "_" & Format$(Now, "hh:nn:ss") & "_" & udalost  | ||||||
|  | WAIT  | ||||||
| END | END | ||||||
| 
 | 
 | ||||||
| PUBLIC SUB WDTLooP() | PUBLIC SUB WDTLooP() | ||||||
|  | @ -245,7 +248,9 @@ PreBtnNastavTimeout_Click | ||||||
|     ExperimentBtnTime3_Click |     ExperimentBtnTime3_Click | ||||||
|     ExperimentNastavBtnTime2_Click |     ExperimentNastavBtnTime2_Click | ||||||
|     WHILE ((PocetCiklu < PrePocetCiklu) AND (PreStop = FALSE))  |     WHILE ((PocetCiklu < PrePocetCiklu) AND (PreStop = FALSE))  | ||||||
|  |   | ||||||
|     EXPSTART: |     EXPSTART: | ||||||
|  |  WAIT  | ||||||
|       IF (ExpChkNahoda.Value = FALSE) AND (ExpChkNeopakovat.Value = FALSE) THEN |       IF (ExpChkNahoda.Value = FALSE) AND (ExpChkNeopakovat.Value = FALSE) THEN | ||||||
|         NextVisStim: |         NextVisStim: | ||||||
|         IF VisStimIdx = 6 THEN VisStimIdx = 0 |         IF VisStimIdx = 6 THEN VisStimIdx = 0 | ||||||
|  | @ -260,6 +265,7 @@ PreBtnNastavTimeout_Click | ||||||
|       IF ExpChkNahoda.Value = TRUE THEN |       IF ExpChkNahoda.Value = TRUE THEN | ||||||
|         IF ExpChkNeopakovat.Value = TRUE THEN  |         IF ExpChkNeopakovat.Value = TRUE THEN  | ||||||
|           WHILE ExpLastStim = VisStimIdx |           WHILE ExpLastStim = VisStimIdx | ||||||
|  |       WAIT  | ||||||
|             RNDNOOPAK: |             RNDNOOPAK: | ||||||
|             SysLogWrite("Experiment_Vybirani_nahodneho_stimulu") |             SysLogWrite("Experiment_Vybirani_nahodneho_stimulu") | ||||||
|             VisStimIdx = Round(Rnd(1, 6), 0) |             VisStimIdx = Round(Rnd(1, 6), 0) | ||||||
|  | @ -273,6 +279,7 @@ PreBtnNastavTimeout_Click | ||||||
|           WEND  |           WEND  | ||||||
|           ExpLastStim = VisStimIdx |           ExpLastStim = VisStimIdx | ||||||
|         ELSE  |         ELSE  | ||||||
|  |          WAIT  | ||||||
|           RNDOPAK: |           RNDOPAK: | ||||||
|           SysLogWrite("Experiment_Vybirani_nahodneho_stimulu") |           SysLogWrite("Experiment_Vybirani_nahodneho_stimulu") | ||||||
|           VisStimIdx = Round(Rnd(1, 6), 0) |           VisStimIdx = Round(Rnd(1, 6), 0) | ||||||
|  | @ -290,6 +297,7 @@ PreBtnNastavTimeout_Click | ||||||
|       SysLogWrite("Experiment_ZOBR_STIMUL: " & VisStimIdx) |       SysLogWrite("Experiment_ZOBR_STIMUL: " & VisStimIdx) | ||||||
|       IF (VisStimIdx < 1) OR (VisStimIdx > 6) THEN GOTO EXPSTART |       IF (VisStimIdx < 1) OR (VisStimIdx > 6) THEN GOTO EXPSTART | ||||||
|       ExperimentPicture.Picture = Picture.Load("/home/tomsuch/" & Str(VisStimIdx) & ".bmp") |       ExperimentPicture.Picture = Picture.Load("/home/tomsuch/" & Str(VisStimIdx) & ".bmp") | ||||||
|  |       Form1.stimul("/home/tomsuch/" & Str(VisStimIdx) & ".bmp") | ||||||
| '      Form1.PictureBox1.Picture = Picture.Load("/home/tomsuch/" & Str(VisStimIdx) & ".bmp")) | '      Form1.PictureBox1.Picture = Picture.Load("/home/tomsuch/" & Str(VisStimIdx) & ".bmp")) | ||||||
| '      Form1.Picture = Picture.Load("/home/tomsuch/" & Str(VisStimIdx) & ".bmp") | '      Form1.Picture = Picture.Load("/home/tomsuch/" & Str(VisStimIdx) & ".bmp") | ||||||
|       Label23.Text = VisStimIdx |       Label23.Text = VisStimIdx | ||||||
|  | @ -336,6 +344,7 @@ PreBtnNastavTimeout_Click | ||||||
|         SysLogWrite("Experiment_ZHAS_STIMUL") |         SysLogWrite("Experiment_ZHAS_STIMUL") | ||||||
|         ExperimentPicture.Picture = Picture.Load("/home/tomsuch/clear.bmp") |         ExperimentPicture.Picture = Picture.Load("/home/tomsuch/clear.bmp") | ||||||
| '        Form1.PictureBox1.Picture = Picture.Load("/home/tomsuch/clear.bmp") | '        Form1.PictureBox1.Picture = Picture.Load("/home/tomsuch/clear.bmp") | ||||||
|  |         Form1.stimul("/home/tomsuch/clear.bmp") | ||||||
|         WAIT  |         WAIT  | ||||||
|       ENDIF  |       ENDIF  | ||||||
|       WAIT  |       WAIT  | ||||||
|  | @ -470,7 +479,7 @@ PreBtnNastavTimeout_Click | ||||||
|   WEND  |   WEND  | ||||||
|   SysLogWrite("Experiment_KONEC") |   SysLogWrite("Experiment_KONEC") | ||||||
|   ExperimentPicture.Picture = Picture.Load("/home/tomsuch/clear.bmp") |   ExperimentPicture.Picture = Picture.Load("/home/tomsuch/clear.bmp") | ||||||
| 
 | Form1.stimul("/home/tomsuch/clear.bmp") | ||||||
| ELSE  | ELSE  | ||||||
| 
 | 
 | ||||||
|   PrePocetCiklu = TxtPrePocetCiklu.Text |   PrePocetCiklu = TxtPrePocetCiklu.Text | ||||||
|  | @ -487,7 +496,7 @@ PreLastBuffer = 0 | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| WHILE ((PocetCiklu < PrePocetCiklu) AND (PreStop = FALSE))  | WHILE ((PocetCiklu < PrePocetCiklu) AND (PreStop = FALSE))  | ||||||
| 
 | WAIT  | ||||||
| PocetCiklu = PocetCiklu + 1 | PocetCiklu = PocetCiklu + 1 | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  | @ -609,7 +618,7 @@ GOTO preapres | ||||||
| ELSE  | ELSE  | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| 
 | WAIT  | ||||||
| ENDIF  | ENDIF  | ||||||
| 
 | 
 | ||||||
| ' PreEaventPotkan = FALSE | ' PreEaventPotkan = FALSE | ||||||
|  | @ -955,3 +964,18 @@ SysLogWrite("Pre_Nastavuji_Timeout: " & Val(TxtPreTimeout.Text)) | ||||||
|   PreTimeout = Val(TxtPreTimeout.Text) |   PreTimeout = Val(TxtPreTimeout.Text) | ||||||
| 
 | 
 | ||||||
| END | END | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | PUBLIC SUB remstart() | ||||||
|  | 
 | ||||||
|  | BtnPreStart_Click | ||||||
|  | 
 | ||||||
|  | END  | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | PUBLIC SUB BtnExpFull_Click() | ||||||
|  | 
 | ||||||
|  |    Form1.Visible = TRUE | ||||||
|  | 
 | ||||||
|  | END | ||||||
|  |  | ||||||
|  | @ -725,4 +725,8 @@ | ||||||
|     Move(21,42,98,21) |     Move(21,42,98,21) | ||||||
|     Text = ("Vypnuti slotu:") |     Text = ("Vypnuti slotu:") | ||||||
|   } |   } | ||||||
|  |   { BtnExpFull Button | ||||||
|  |     Move(245,378,315,35) | ||||||
|  |     Text = ("FULLSCREEN") | ||||||
|  |   } | ||||||
| } | } | ||||||
|  |  | ||||||
							
								
								
									
										36
									
								
								Form1.class
									
										
									
									
									
								
							
							
						
						
									
										36
									
								
								Form1.class
									
										
									
									
									
								
							|  | @ -1,14 +1,44 @@ | ||||||
| ' Gambas class file | ' Gambas class file | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  | PUBLIC SUB Form_Open() | ||||||
|  | WAIT  | ||||||
|  |   PictureBox1.Width = Form1.Width | ||||||
|  |   PictureBox1.Height = Form1.Height | ||||||
|  | WAIT  | ||||||
|  | END | ||||||
|  | 
 | ||||||
|  | PUBLIC SUB stimul(xxx AS String) | ||||||
|  |   WAIT  | ||||||
|  |   PictureBox1.Picture = Picture.Load(xxx) | ||||||
|  |   WAIT  | ||||||
|  | END | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
| PUBLIC SUB PictureBox1_DblClick() | PUBLIC SUB PictureBox1_DblClick() | ||||||
| 
 | 
 | ||||||
|    |   Form1.Visible = FALSE | ||||||
|  | WAIT  | ||||||
|  | END | ||||||
|  | 
 | ||||||
|  | PUBLIC SUB Form_Resize() | ||||||
|  | 
 | ||||||
|  |    PictureBox1.Width = Form1.Width | ||||||
|  |   PictureBox1.Height = Form1.Height | ||||||
| 
 | 
 | ||||||
| END | END | ||||||
| 
 | 
 | ||||||
| PUBLIC SUB PictureBox1_MouseDown() | PUBLIC SUB Form_Show() | ||||||
|  | WAIT  | ||||||
|  |    PictureBox1.Width = Form1.Width | ||||||
|  |   PictureBox1.Height = Form1.Height | ||||||
|  | WAIT  | ||||||
|  | END | ||||||
| 
 | 
 | ||||||
|    | 
 | ||||||
|  | 
 | ||||||
|  | PUBLIC SUB PictureBox1_Menu() | ||||||
|  | 
 | ||||||
|  |  FMain.remstart() | ||||||
| 
 | 
 | ||||||
| END | END | ||||||
|  |  | ||||||
							
								
								
									
										16
									
								
								Form1.form
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								Form1.form
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,16 @@ | ||||||
|  | # Gambas Form File 2.0 | ||||||
|  | 
 | ||||||
|  | { Form Form | ||||||
|  |   MoveScaled(0,0,37,35) | ||||||
|  |   Background = &H000000& | ||||||
|  |   Mouse = Mouse.Blank | ||||||
|  |   Text = ("") | ||||||
|  |   Border = Window.None | ||||||
|  |   FullScreen = True | ||||||
|  |   { PictureBox1 PictureBox | ||||||
|  |     MoveScaled(0,0,34,31) | ||||||
|  |     Mouse = Mouse.Blank | ||||||
|  |     Stretch = True | ||||||
|  |     Alignment = Align.Center | ||||||
|  |   } | ||||||
|  | } | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Tomas Suchan
						Tomas Suchan