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

📄 snddefedit.frm

📁 超级C&C有没有搞错,VB还能编出这种即时策略游戏来!没错,这就是我们的超级C&C!虽然游戏经常无故退出,但是原码仍有很多可圈可点的地方.祝你早日编出中国的超级RA,超级KKND,超级星际,超级家园
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Form1 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "Sound Editor"
   ClientHeight    =   1890
   ClientLeft      =   5175
   ClientTop       =   1755
   ClientWidth     =   4455
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   1890
   ScaleWidth      =   4455
   Begin VB.TextBox Text2 
      Height          =   285
      Left            =   2760
      TabIndex        =   2
      Top             =   840
      Width           =   1575
   End
   Begin VB.TextBox Text1 
      Height          =   285
      Left            =   2760
      TabIndex        =   1
      Top             =   240
      Width           =   1575
   End
   Begin VB.ListBox List1 
      Height          =   1620
      Left            =   120
      TabIndex        =   0
      Top             =   120
      Width           =   2535
   End
   Begin VB.Label Label2 
      Caption         =   "Filename"
      Height          =   255
      Left            =   2760
      TabIndex        =   4
      Top             =   600
      Width           =   1575
   End
   Begin VB.Label Label1 
      Caption         =   "Name"
      Height          =   255
      Left            =   2760
      TabIndex        =   3
      Top             =   0
      Width           =   1575
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_Load()
On Error Resume Next
Call Load
Call UpdateList
List1.ListIndex = 0
End Sub

Private Sub Form_Unload(Cancel As Integer)
Call Save
End Sub

Private Sub List1_Click()
Call UpdateProperties
End Sub

Private Sub List1_KeyUp(KeyCode As Integer, Shift As Integer)
If KeyCode = 46 Then
  MaxSoundFiles = MaxSoundFiles - 1
  For i = List1.ListIndex To MaxSoundFiles + 1
    Soundfiles(i).filename = Soundfiles(i + 1).filename
    Soundfiles(i).tracktitle = Soundfiles(i + 1).tracktitle
  Next i
  List1.ListIndex = List1.ListIndex - 1
  Call UpdateList
  Call UpdateProperties
End If
End Sub

Private Sub Text1_KeyUp(KeyCode As Integer, Shift As Integer)
mnum = List1.ListIndex
If mnum > 0 Then
 Soundfiles(mnum).tracktitle = Text1.Text
  Call UpdateList
Else
  MaxSoundFiles = MaxSoundFiles + 1
  currtext = Text1.Text
  Call UpdateList
  List1.ListIndex = MaxMusicFiles
  Call UpdateList
  Text1.Text = currtext
  Text1.SelStart = Len(Text1.Text)
  Soundfiles(mnum).tracktitle = Text1.Text
End If
End Sub

Private Sub Text2_KeyUp(KeyCode As Integer, Shift As Integer)
mnum = List1.ListIndex
If mnum > 0 Then
  Soundfiles(mnum).filename = Text2.Text
End If
End Sub

⌨️ 快捷键说明

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