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

📄 frmoption.frm

📁 得用Visual Basic编写的小游戏-俄罗斯方块。
💻 FRM
字号:
VERSION 5.00
Begin VB.Form frmOption 
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "选项"
   ClientHeight    =   3390
   ClientLeft      =   2760
   ClientTop       =   3750
   ClientWidth     =   5235
   Icon            =   "frmOption.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   3390
   ScaleWidth      =   5235
   ShowInTaskbar   =   0   'False
   StartUpPosition =   1  '所有者中心
   Begin VB.CheckBox chkShowNext 
      Caption         =   "显示下一个方块类型"
      Height          =   300
      Left            =   1980
      TabIndex        =   22
      Top             =   765
      Value           =   1  'Checked
      Width           =   2205
   End
   Begin VB.Frame Frame2 
      Caption         =   "按键方案"
      Height          =   1935
      Left            =   120
      TabIndex        =   7
      Top             =   1200
      Width           =   3495
      Begin VB.OptionButton Option4 
         Caption         =   "方案二"
         Height          =   255
         Left            =   2400
         TabIndex        =   9
         Top             =   240
         Width           =   975
      End
      Begin VB.OptionButton option3 
         Caption         =   "方案一"
         Height          =   255
         Left            =   1200
         TabIndex        =   8
         Top             =   255
         Value           =   -1  'True
         Width           =   975
      End
      Begin VB.Line Line3 
         X1              =   240
         X2              =   3240
         Y1              =   600
         Y2              =   600
      End
      Begin VB.Line Line2 
         X1              =   1080
         X2              =   1080
         Y1              =   240
         Y2              =   1680
      End
      Begin VB.Line Line1 
         X1              =   2280
         X2              =   2280
         Y1              =   240
         Y2              =   1680
      End
      Begin VB.Label Label13 
         Caption         =   "“Z”键"
         Height          =   255
         Left            =   2520
         TabIndex        =   21
         Top             =   1440
         Width           =   855
      End
      Begin VB.Label Label12 
         Caption         =   "“W”键"
         Height          =   255
         Left            =   2520
         TabIndex        =   20
         Top             =   1200
         Width           =   735
      End
      Begin VB.Label Label11 
         Caption         =   "“S”键"
         Height          =   255
         Left            =   2520
         TabIndex        =   19
         Top             =   960
         Width           =   735
      End
      Begin VB.Label Label10 
         Caption         =   "“A”键"
         Height          =   255
         Left            =   2520
         TabIndex        =   18
         Top             =   720
         Width           =   855
      End
      Begin VB.Label Label9 
         Caption         =   "“↓”键"
         Height          =   255
         Left            =   1200
         TabIndex        =   17
         Top             =   1440
         Width           =   1215
      End
      Begin VB.Label Label8 
         Caption         =   "“↑”键"
         Height          =   255
         Left            =   1200
         TabIndex        =   16
         Top             =   1200
         Width           =   975
      End
      Begin VB.Label Label7 
         Caption         =   "“→”键"
         Height          =   255
         Left            =   1200
         TabIndex        =   15
         Top             =   960
         Width           =   855
      End
      Begin VB.Label Label6 
         Caption         =   "“←”键"
         Height          =   255
         Left            =   1200
         TabIndex        =   14
         Top             =   720
         Width           =   855
      End
      Begin VB.Label Label5 
         Caption         =   "加速下降"
         Height          =   255
         Left            =   240
         TabIndex        =   13
         Top             =   1440
         Width           =   855
      End
      Begin VB.Label Label4 
         Caption         =   "旋转"
         Height          =   255
         Left            =   240
         TabIndex        =   12
         Top             =   1200
         Width           =   495
      End
      Begin VB.Label Label3 
         Caption         =   "右移"
         Height          =   255
         Left            =   240
         TabIndex        =   11
         Top             =   960
         Width           =   495
      End
      Begin VB.Label Label2 
         Caption         =   "左移"
         Height          =   255
         Left            =   240
         TabIndex        =   10
         Top             =   720
         Width           =   495
      End
   End
   Begin VB.TextBox Text1 
      Height          =   375
      Left            =   3720
      TabIndex        =   6
      Top             =   240
      Width           =   855
   End
   Begin VB.Frame Frame1 
      Caption         =   "旋转方向"
      Height          =   975
      Left            =   120
      TabIndex        =   2
      Top             =   120
      Width           =   1575
      Begin VB.OptionButton optCounterClockWise 
         Caption         =   "逆时针"
         Height          =   255
         Left            =   225
         TabIndex        =   4
         Top             =   585
         Width           =   975
      End
      Begin VB.OptionButton optClockWise 
         Caption         =   "顺时针"
         Height          =   255
         Left            =   225
         TabIndex        =   3
         Top             =   285
         Value           =   -1  'True
         Width           =   975
      End
   End
   Begin VB.CommandButton CancelButton 
      Caption         =   "取消"
      Height          =   375
      Left            =   3885
      TabIndex        =   1
      Top             =   2775
      Width           =   1215
   End
   Begin VB.CommandButton OKButton 
      Caption         =   "确定"
      Height          =   375
      Left            =   3870
      TabIndex        =   0
      Top             =   2295
      Width           =   1215
   End
   Begin VB.Label Label1 
      Caption         =   "加速下落时,一次下落的格数"
      Height          =   375
      Left            =   1935
      TabIndex        =   5
      Top             =   210
      Width           =   1560
   End
End
Attribute VB_Name = "frmOption"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False

Option Explicit

Private Sub CancelButton_Click()
    Unload Me
End Sub

Private Sub Form_Load()
    If frmMain.blnClockWise Then
        optClockWise.Value = True
    Else
        optCounterClockWise.Value = True
    End If
    If frmMain.blnScheme Then
        option3.Value = True
    Else
        Option4.Value = True
    End If
    If frmMain.blnShowNext Then
        chkShowNext.Value = 1
    Else
        chkShowNext.Value = 0
    End If
    Text1.Text = frmMain.intDownDistance
End Sub

Private Sub OKButton_Click()
    frmMain.blnClockWise = optClockWise.Value
    frmMain.blnScheme = option3.Value
    frmMain.blnShowNext = chkShowNext.Value
    frmMain.intDownDistance = Val(Text1)
    Unload Me
End Sub

⌨️ 快捷键说明

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