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

📄 frule.frm

📁 一个用VB编的小游戏
💻 FRM
字号:
VERSION 5.00
Begin VB.Form fRule 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "Scenario.Initialize(Step 2:School Rules)"
   ClientHeight    =   3105
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   3600
   ControlBox      =   0   'False
   Icon            =   "fRule.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   3105
   ScaleWidth      =   3600
   StartUpPosition =   3  'Windows Default
   Begin VB.ComboBox cmbDay 
      Height          =   300
      Left            =   1080
      Style           =   2  'Dropdown List
      TabIndex        =   9
      Top             =   2280
      Width           =   1575
   End
   Begin VB.CommandButton cmd 
      Caption         =   "<-Back"
      Height          =   375
      Index           =   0
      Left            =   1200
      TabIndex        =   8
      Top             =   2640
      Width           =   1095
   End
   Begin VB.CommandButton cmd 
      Caption         =   "Finish!"
      Height          =   375
      Index           =   1
      Left            =   2400
      TabIndex        =   7
      Top             =   2640
      Width           =   1095
   End
   Begin VB.CheckBox chkBan 
      Caption         =   "禁止娱乐活动"
      Height          =   255
      Left            =   240
      TabIndex        =   6
      Top             =   1920
      Width           =   1455
   End
   Begin VB.Frame frm 
      Caption         =   "违反校纪处罚力度"
      Height          =   1335
      Left            =   120
      TabIndex        =   1
      Top             =   120
      Width           =   3375
      Begin VB.OptionButton optStrict 
         Caption         =   "不承诺放弃使用武力"
         Height          =   255
         Index           =   3
         Left            =   240
         TabIndex        =   5
         Top             =   960
         Width           =   2895
      End
      Begin VB.OptionButton optStrict 
         Caption         =   "法律许可范围内最大限度地惩罚"
         Height          =   255
         Index           =   2
         Left            =   240
         TabIndex        =   4
         Top             =   720
         Width           =   2895
      End
      Begin VB.OptionButton optStrict 
         Caption         =   "政教与检讨并行"
         Height          =   255
         Index           =   1
         Left            =   240
         TabIndex        =   3
         Top             =   480
         Value           =   -1  'True
         Width           =   2895
      End
      Begin VB.OptionButton optStrict 
         Caption         =   "大事化小,小事化了"
         Height          =   255
         Index           =   0
         Left            =   240
         TabIndex        =   2
         Top             =   240
         Width           =   2895
      End
   End
   Begin VB.CheckBox chkWorkDay 
      Caption         =   "星期六补课"
      Height          =   255
      Left            =   240
      TabIndex        =   0
      Top             =   1560
      Value           =   1  'Checked
      Width           =   1455
   End
   Begin VB.Label lbl 
      AutoSize        =   -1  'True
      Caption         =   "第一天是"
      Height          =   180
      Left            =   240
      TabIndex        =   10
      Top             =   2280
      Width           =   720
   End
End
Attribute VB_Name = "fRule"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub cmd_Click(Index As Integer)
Select Case Index
Case 0
  Unload Me
  fScenSel.Show
Case 1
  gameData.gnrBan = (chkBan.Value = 1)
  gameData.gnrWorkday = (chkBan.Value = 1)
  For i = 0 To 3
    If optStrict(i).Value Then gameData.gnrStrict = i + 1
  Next
  gameData.gnrWeekday = cmbDay.ListIndex
  Unload Me
  If gameData.gnrWeekday = 0 Or (gameData.gnrWeekday = 6 And gameData.gnrWorkday = False) Then
    fRest.Show
  Else
    fGameSel.Show
  End If
End Select
End Sub

Private Sub Form_Load()
Me.Move (Screen.Width - Me.Width) / 2, (Screen.Height - Me.Height) / 2 - 200
With cmbDay
  .Clear
  .AddItem "星期日"
  .AddItem "星期一"
  .AddItem "星期二"
  .AddItem "星期三"
  .AddItem "星期四"
  .AddItem "星期五"
  .AddItem "星期六"
  .ListIndex = 0
End With
End Sub

⌨️ 快捷键说明

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