⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 frmstate.frm

📁 一个RPG游戏源代码
💻 FRM
📖 第 1 页 / 共 3 页
字号:
      BackStyle       =   0  'Transparent
      Caption         =   "附加敏捷力:"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   12
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H0080C0FF&
      Height          =   240
      Left            =   6720
      TabIndex        =   8
      Top             =   6120
      Width           =   1545
   End
   Begin VB.Image imgjiantou1 
      Height          =   240
      Index           =   0
      Left            =   8760
      Picture         =   "frmstate.frx":984D
      Top             =   3720
      Visible         =   0   'False
      Width           =   240
   End
   Begin VB.Image imgjiantou1 
      Height          =   240
      Index           =   1
      Left            =   8760
      Picture         =   "frmstate.frx":9DD7
      Top             =   4200
      Visible         =   0   'False
      Width           =   240
   End
   Begin VB.Image imgjiantou1 
      Height          =   240
      Index           =   2
      Left            =   8760
      Picture         =   "frmstate.frx":A361
      Top             =   4680
      Visible         =   0   'False
      Width           =   240
   End
   Begin VB.Label lbldianshu 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "3"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   12
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H000000FF&
      Height          =   240
      Left            =   8280
      TabIndex        =   7
      Top             =   2760
      Visible         =   0   'False
      Width           =   150
   End
   Begin VB.Label Label13 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "自由点数值:"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   12
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H0080C0FF&
      Height          =   240
      Left            =   6720
      TabIndex        =   6
      Top             =   2760
      Visible         =   0   'False
      Width           =   1545
   End
   Begin VB.Label Label15 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "人物生命值:"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   12
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H0080C0FF&
      Height          =   240
      Left            =   6720
      TabIndex        =   5
      Top             =   3240
      Width           =   1545
   End
   Begin VB.Label lblrenxue 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "10"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   12
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H0080C0FF&
      Height          =   240
      Left            =   8280
      TabIndex        =   4
      Top             =   3240
      Width           =   285
   End
   Begin VB.Image imgjiantou1 
      Height          =   240
      Index           =   3
      Left            =   8760
      Picture         =   "frmstate.frx":A8EB
      Top             =   3240
      Visible         =   0   'False
      Width           =   240
   End
   Begin VB.Image Image2 
      Height          =   525
      Left            =   1665
      Picture         =   "frmstate.frx":AE75
      Top             =   2115
      Width           =   795
   End
   Begin VB.Label Label17 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "金钱:"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   12
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H0080C0FF&
      Height          =   240
      Left            =   3120
      TabIndex        =   3
      Top             =   2760
      Width           =   780
   End
   Begin VB.Label lblmoney 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "500"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   12
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H0080C0FF&
      Height          =   240
      Left            =   3840
      TabIndex        =   2
      Top             =   2760
      Width           =   405
   End
   Begin VB.Label lblmission 
      Caption         =   "情节1"
      Height          =   255
      Left            =   6360
      TabIndex        =   1
      Top             =   1800
      Visible         =   0   'False
      Width           =   855
   End
   Begin VB.Label lblxuexian 
      Caption         =   "30"
      Height          =   255
      Left            =   7320
      TabIndex        =   0
      Top             =   1800
      Visible         =   0   'False
      Width           =   1095
   End
End
Attribute VB_Name = "frmstate"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_Load()
InitDirectDraw frmstate, 640, 480, 16
End Sub

Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
imgjiantou1(0).Picture = LoadPicture(App.Path + "\bar\right1.ico")
imgjiantou1(1).Picture = LoadPicture(App.Path + "\bar\right1.ico")
imgjiantou1(2).Picture = LoadPicture(App.Path + "\bar\right1.ico")
imgjiantou1(3).Picture = LoadPicture(App.Path + "\bar\right1.ico")
End Sub

Private Sub imgjiantou1_MouseMove(Index As Integer, Button As Integer, Shift As Integer, X As Single, Y As Single)
imgjiantou1(Index).Picture = LoadPicture(App.Path + "\bar\right2.ico")
End Sub

Private Sub imgbutton_Click()
   Select Case lblfrm.Caption
        Case "frmmap1":
        Load frmmap1
        frmmap1.Show
        Me.Hide
        Case "frmbuy"
        frmbuy.Show
        Me.Hide
    End Select
End Sub

Private Sub imgjiantou1_Click(Index As Integer)
Select Case Index
    Case 0: If lbldianshu.Caption > 0 Then lblrengong.Caption = CInt(lblrengong.Caption) + CInt(1)
    Case 1: If lbldianshu.Caption > 0 Then lblrenfang.Caption = CInt(lblrenfang.Caption) + CInt(1)
    Case 2: If lbldianshu.Caption > 0 Then lblrenmin.Caption = CInt(lblrenmin.Caption) + CInt(1)
    Case 3: If lbldianshu.Caption > 0 Then lblrenxue.Caption = CInt(lblrenxue.Caption) + CInt(1)
End Select
lbldianshu.Caption = lbldianshu.Caption - 1
End Sub



Private Sub lbldianshu_Change()
If lbldianshu.Caption <= 0 Then
Label13.Visible = False
lbldianshu.Caption = 0
lbldianshu.Visible = False
imgjiantou1(0).Visible = False
imgjiantou1(1).Visible = False
imgjiantou1(2).Visible = False
imgjiantou1(3).Visible = False
End If
End Sub

Private Sub lbljing_Change()
        If CInt(lbljing.Caption) >= CInt(lblnext.Caption) Then
            Select Case lbldeng.Caption
            Case 1: lblnext.Caption = lblnext.Caption + 60
            Case 2: lblnext.Caption = lblnext.Caption + 90
            Case 3: lblnext.Caption = lblnext.Caption + 120
            Case 4: lblnext.Caption = lblnext.Caption + 180
            Case 5: lblnext.Caption = lblnext.Caption + 220
            Case 6: lblnext.Caption = lblnext.Caption + 250
            Case 7: lblnext.Caption = lblnext.Caption + 280
            Case 8: lblnext.Caption = lblnext.Caption + 320
            Case 9: lblnext.Caption = lblnext.Caption + 470
            Case 10: lblnext.Caption = lblnext.Caption + 540
            Case 11: lblnext.Caption = lblnext.Caption + 620
            Case 12: lblnext.Caption = lblnext.Caption + 700
            Case 13: lblnext.Caption = lblnext.Caption + 760
            Case 14: lblnext.Caption = lblnext.Caption + 840
            Case 15: lblnext.Caption = lblnext.Caption + 930
            Case 16: lblnext.Caption = lblnext.Caption + 1000
            Case 17: lblnext.Caption = lblnext.Caption + 1070
            Case 18: lblnext.Caption = lblnext.Caption + 1130
            Case 19: lblnext.Caption = lblnext.Caption + 1190
            Case 20: lblnext.Caption = lblnext.Caption + 1250
            Case 21: lblnext.Caption = lblnext.Caption + 1310
            Case 22: lblnext.Caption = lblnext.Caption + 1400
            End Select
            lbldeng.Caption = lbldeng.Caption + 1
            Label7.Visible = True
            Label13.Visible = True
            lbldianshu.Caption = lbldianshu.Caption + 3
            lbldianshu.Visible = True
            imgjiantou1(0).Visible = True
            imgjiantou1(1).Visible = True
            imgjiantou1(2).Visible = True
            imgjiantou1(3).Visible = True
        End If
End Sub

Private Sub lblrenfang_Change()
lblfang.Caption = CInt(lblrenfang.Caption) + CInt(lblwulifang.Caption)
End Sub
Private Sub lblrengong_Change()
lblgong.Caption = CInt(lblrengong.Caption) + CInt(lblwuligong.Caption)
End Sub
Private Sub lblrenmin_Change()
lblmin.Caption = CInt(lblrenmin.Caption) + CInt(lblwulimin.Caption)
End Sub
Private Sub lblrenxue_Change()
lblxuexian.Caption = CInt(lblrenxue.Caption) * 3
End Sub
Private Sub lblwulifang_Change()
lblfang.Caption = CInt(lblrenfang.Caption) + CInt(lblwulifang.Caption)
End Sub
Private Sub lblwuligong_Change()
lblgong.Caption = CInt(lblrengong.Caption) + CInt(lblwuligong.Caption)
End Sub
Private Sub lblwulimin_Change()
lblmin.Caption = CInt(lblrenmin.Caption) + CInt(lblwulimin.Caption)
End Sub

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -