📄 frmpause.frm
字号:
Left = 1440
TabIndex = 8
Top = 2040
Width = 735
End
Begin VB.Label Label3
BackStyle = 0 'Transparent
Caption = "Shield:"
BeginProperty Font
Name = "Comic Sans MS"
Size = 9.75
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Height = 255
Left = 1440
TabIndex = 7
Top = 1320
Width = 735
End
Begin VB.Label Label2
BackStyle = 0 'Transparent
Caption = "Mp:"
BeginProperty Font
Name = "Comic Sans MS"
Size = 9.75
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Height = 255
Left = 1440
TabIndex = 6
Top = 960
Width = 375
End
Begin VB.Label lblh
BackStyle = 0 'Transparent
Caption = "Hp:"
BeginProperty Font
Name = "Comic Sans MS"
Size = 9.75
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Height = 255
Left = 1440
TabIndex = 5
Top = 600
Width = 375
End
Begin VB.Label lblhname
BackStyle = 0 'Transparent
Caption = "Hero"
BeginProperty Font
Name = "Comic Sans MS"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Height = 375
Left = 1440
TabIndex = 4
Top = 240
Width = 1575
End
Begin VB.Label lblstep
BackStyle = 0 'Transparent
Caption = "0"
BeginProperty Font
Name = "Comic Sans MS"
Size = 9.75
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Height = 255
Left = 1560
TabIndex = 3
Top = 3240
Width = 1455
End
Begin VB.Label lbltim
BackStyle = 0 'Transparent
Caption = "0"
BeginProperty Font
Name = "Comic Sans MS"
Size = 9.75
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Height = 255
Left = 1560
TabIndex = 2
Top = 2880
Width = 1215
End
Begin VB.Label Label1
BackStyle = 0 'Transparent
Caption = "Steps Taken:"
BeginProperty Font
Name = "Comic Sans MS"
Size = 9
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Height = 255
Left = 240
TabIndex = 1
Top = 3240
Width = 1215
End
Begin VB.Label lbltime
BackStyle = 0 'Transparent
Caption = "Time Played:"
BeginProperty Font
Name = "Comic Sans MS"
Size = 9
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Height = 255
Left = 240
TabIndex = 0
Top = 2880
Width = 1215
End
Begin VB.Image imghero
Height = 960
Left = 120
Picture = "frmpause.frx":08CA
Top = 120
Width = 960
End
Begin VB.Label lblcred
BackColor = &H00000000&
Caption = " Credits"
BeginProperty Font
Name = "Comic Sans MS"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Height = 375
Left = 3120
TabIndex = 21
Top = 1920
Width = 1215
End
End
Attribute VB_Name = "frmpause"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_Load()
Dim ti As Integer
lblpower = power
lblmp = mp
lblhp = life
lbldefen = defense
lblmoney = money
lblrespect = respect
lblhname.Caption = nam
ti = Int(ptime / 60)
lbltim.Caption = ti & " Minutes"
lblstep = steps
End Sub
Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
lblun.BackColor = vbBlack
lblquit.BackColor = vbBlack
lblsave.BackColor = vbBlack
lblcred.BackColor = vbBlack
End Sub
Private Sub lblcred_Click()
frmcred.Show
End Sub
Private Sub lblcred_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
lblcred.BackColor = &HE0E0E0
End Sub
Private Sub lblquit_Click()
End
End Sub
Private Sub lblquit_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
lblsave.BackColor = vbBlack
lblquit.BackColor = &HE0E0E0
End Sub
Private Sub lblsave_Click()
If frmrpg.imglag.Visible = False Then
lage = True
Else
lage = False
End If
Open ("C:\Windows\" & Right(nam, Len(nam) / 2) & ".txt") For Output As #1
Print #1, nam
Print #1, life
Print #1, power
Print #1, defense
Print #1, mp
Print #1, money
Print #1, frmrpg.imgme.Top
Print #1, frmrpg.imgme.Left
Print #1, steps
Print #1, lage
Print #1, respect
Print #1, ovm
Close #1
MsgBox "Game Saved"
End Sub
Private Sub lblsave_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
lblsave.BackColor = &HE0E0E0
lblquit.BackColor = vbBlack
End Sub
Private Sub lblun_Click()
If beach = True Then
Unload frmpause
frmntown2.Show
frmstat.Show
frmntown2.SetFocus
End If
If frmplain.imgsup.Visible = False And frmntown.imgfl.Visible = True Then
Unload frmpause
frmntown.Show
frmstat.Show
frmntown.SetFocus
End If
If frmrpg.imgdrag.Visible = True Then
Unload frmpause
frmrpg.Show
frmstat.Show
frmrpg.SetFocus
End If
If frmntown.imgfl.Visible = False And beach = False Then
Unload frmpause
frmbeach.Show
frmstat.Show
frmbeach.SetFocus
End If
If frmrpg.imgdrag.Visible = False And frmplain.imgsup.Visible = True Then
Unload frmpause
frmplain.Show
frmstat.Show
frmplain.SetFocus
End If
End Sub
Private Sub lblun_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
lblun.BackColor = &HE0E0E0
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -