1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
|
Private Sub Form_Load()
'Exemple d'utilisation :
'on charge limage
Picture22.Picture = LoadPicture("\Themes\Brise matinale\Jeu\menu.gif")
'Le magenta devient transparent
beTransparent Picture22
'Qd la couleur n'est pas spécifiée en deuxieme argument, cest le magenta qui est rendu transparent codecouleur:FF00FF
Dim i As Long
Dim Ending As String
For i = 1 To 4
If i = 1 Then Ending = ".gif"
If i = 2 Then Ending = ".jpg"
If i = 3 Then Ending = ".png"
If i = 4 Then Ending = ".bmp"
If FileExiste(Rep_Theme & "\Jeu\Text" & Ending) Then txtQ.Picture = LoadPNG(App.Path & Rep_Theme & "\Jeu\text" & Ending)
If FileExiste(Rep_Theme & "\info" & Ending) Then frmMirage.Picture = LoadPNG(App.Path & Rep_Theme & "\info" & Ending)
If FileExiste(Rep_Theme & "\Jeu\Info" & Ending) Then Image1.Picture = LoadPNG(App.Path & Rep_Theme & "\Jeu\Info" & Ending)
If FileExiste(Rep_Theme & "\Jeu\inventaire" & Ending) Then Image3.Picture = LoadPNG(App.Path & Rep_Theme & "\Jeu\inventaire" & Ending)
If FileExiste(Rep_Theme & "\Jeu\menu" & Ending) Then Image2.Picture = LoadPNG(App.Path & Rep_Theme & "\Jeu\menu" & Ending)
If FileExiste(Rep_Theme & "\Jeu\Carte" & Ending) Then imgcarte.Picture = LoadPNG(App.Path & Rep_Theme & "\Jeu\Carte" & Ending)
Next i
twippy = Screen.TwipsPerPixelY
twippx = Screen.TwipsPerPixelX
svie.FillColor = RGB(208, 11, 0)
smana.FillColor = RGB(208, 11, 0)
'If frmMainMenu.chk_fullscreen.value = Checked Then
'If (Screen.Height / Screen.TwipsPerPixelY) >= 758 Then txtMyTextBox.Top = 567
'frmMirage.Height = Screen.Height / Screen.TwipsPerPixelY
'frmMirage.Width = Screen.Width / Screen.TwipsPerPixelX
'picScreen.Height = Screen.Height / Screen.TwipsPerPixelY
'picScreen.Width = Screen.Width / Screen.TwipsPerPixelX
'End If
monnom(0).Font = ReadINI("POLICE", "Police", (App.Path & "\Config\Ecriture.ini"))
monnom(0).FontSize = ReadINI("POLICE", "PoliceSize", (App.Path & "\Config\Ecriture.ini"))
maclasse(0).Font = ReadINI("POLICE", "Police", (App.Path & "\Config\Ecriture.ini"))
maclasse(0).FontSize = ReadINI("POLICE", "PoliceSize", (App.Path & "\Config\Ecriture.ini"))
txtMyTextBox.Font = ReadINI("POLICE", "PoliceChat", (App.Path & "\Config\Ecriture.ini"))
fra_info.Visible = False
fra_menu.Visible = False
fra_fenetre.Visible = False
End Sub |
Partager