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

📄 form3.frm

📁 石器客端图形补丁编译环境RH9,GCC
💻 FRM
📖 第 1 页 / 共 2 页
字号:
         Width           =   1095
      End
      Begin VB.TextBox Text4 
         Height          =   270
         Left            =   -74040
         TabIndex        =   9
         Top             =   840
         Width           =   1095
      End
      Begin VB.TextBox Text3 
         Height          =   270
         Left            =   -70200
         TabIndex        =   7
         Top             =   480
         Width           =   1095
      End
      Begin VB.TextBox Text2 
         Height          =   270
         Left            =   -72000
         TabIndex        =   5
         Top             =   480
         Width           =   1095
      End
      Begin VB.TextBox Text1 
         Height          =   270
         Left            =   -74040
         TabIndex        =   3
         Top             =   480
         Width           =   1095
      End
      Begin VB.Label Label26 
         Caption         =   "Label26"
         Height          =   255
         Left            =   -74880
         TabIndex        =   70
         Top             =   3240
         Width           =   855
      End
      Begin VB.Label Label25 
         Caption         =   "动作数"
         Height          =   255
         Left            =   -71040
         TabIndex        =   60
         Top             =   480
         Width           =   615
      End
      Begin VB.Label Label24 
         Caption         =   "Spr地址"
         Height          =   255
         Left            =   -73080
         TabIndex        =   58
         Top             =   480
         Width           =   735
      End
      Begin VB.Label Label23 
         Caption         =   "动画ID"
         Height          =   255
         Left            =   -74880
         TabIndex        =   56
         Top             =   480
         Width           =   735
      End
      Begin VB.Label Label22 
         Caption         =   "帧图片"
         Height          =   255
         Left            =   -74880
         TabIndex        =   54
         Top             =   1200
         Width           =   615
      End
      Begin VB.Label Label21 
         Caption         =   "帧数"
         Height          =   255
         Left            =   -74880
         TabIndex        =   49
         Top             =   840
         Width           =   495
      End
      Begin VB.Label Label20 
         Caption         =   "时间"
         Height          =   255
         Left            =   -70920
         TabIndex        =   47
         Top             =   480
         Width           =   375
      End
      Begin VB.Label Label19 
         Caption         =   "动作号"
         Height          =   255
         Left            =   -72960
         TabIndex        =   45
         Top             =   480
         Width           =   615
      End
      Begin VB.Label Label18 
         Caption         =   "方向"
         Height          =   255
         Left            =   -74880
         TabIndex        =   43
         Top             =   480
         Width           =   495
      End
      Begin VB.Label Label17 
         Caption         =   "块长(16进制)"
         Height          =   255
         Left            =   2040
         TabIndex        =   38
         Top             =   840
         Width           =   1095
      End
      Begin VB.Label Label16 
         Caption         =   "高度"
         Height          =   255
         Left            =   120
         TabIndex        =   36
         Top             =   840
         Width           =   495
      End
      Begin VB.Label Label15 
         Caption         =   "宽度"
         Height          =   255
         Left            =   4080
         TabIndex        =   34
         Top             =   480
         Width           =   615
      End
      Begin VB.Label Label14 
         Caption         =   "未知"
         Height          =   255
         Left            =   2040
         TabIndex        =   32
         Top             =   480
         Width           =   615
      End
      Begin VB.Label Label13 
         Caption         =   "压缩"
         Height          =   255
         Left            =   120
         TabIndex        =   30
         Top             =   480
         Width           =   615
      End
      Begin VB.Label Label12 
         Caption         =   "地图号"
         Height          =   255
         Left            =   -72840
         TabIndex        =   23
         Top             =   1560
         Width           =   615
      End
      Begin VB.Label Label11 
         Caption         =   "未知"
         Height          =   255
         Left            =   -74880
         TabIndex        =   22
         Top             =   1920
         Width           =   615
      End
      Begin VB.Label Label10 
         Caption         =   "障碍"
         Height          =   255
         Left            =   -70800
         TabIndex        =   20
         Top             =   1200
         Width           =   615
      End
      Begin VB.Label Label9 
         Caption         =   "南占"
         Height          =   255
         Left            =   -72840
         TabIndex        =   18
         Top             =   1200
         Width           =   615
      End
      Begin VB.Label Label8 
         Caption         =   "东占"
         Height          =   255
         Left            =   -74880
         TabIndex        =   16
         Top             =   1560
         Width           =   615
      End
      Begin VB.Label Label7 
         Caption         =   "高度"
         Height          =   255
         Left            =   -74880
         TabIndex        =   14
         Top             =   1200
         Width           =   735
      End
      Begin VB.Label Label6 
         Caption         =   "宽度"
         Height          =   255
         Left            =   -70800
         TabIndex        =   12
         Top             =   840
         Width           =   375
      End
      Begin VB.Label Label5 
         Caption         =   "Y"
         Height          =   255
         Left            =   -72840
         TabIndex        =   10
         Top             =   840
         Width           =   135
      End
      Begin VB.Label Label4 
         Caption         =   "X"
         Height          =   255
         Left            =   -74880
         TabIndex        =   8
         Top             =   840
         Width           =   135
      End
      Begin VB.Label Label3 
         Caption         =   "块长度"
         Height          =   255
         Left            =   -70800
         TabIndex        =   6
         Top             =   480
         Width           =   615
      End
      Begin VB.Label Label2 
         Caption         =   "Real地址"
         Height          =   255
         Left            =   -72840
         TabIndex        =   4
         Top             =   480
         Width           =   735
      End
      Begin VB.Label Label1 
         AutoSize        =   -1  'True
         Caption         =   "图片ID"
         Height          =   180
         Left            =   -74880
         TabIndex        =   2
         Top             =   480
         Width           =   540
      End
   End
   Begin VB.CommandButton Command3 
      Caption         =   "图片路径"
      Height          =   375
      Left            =   0
      TabIndex        =   0
      Top             =   3720
      Width           =   1215
   End
   Begin VB.Label Label27 
      Caption         =   "0"
      Height          =   255
      Left            =   5880
      TabIndex        =   73
      Top             =   4800
      Width           =   1335
   End
End
Attribute VB_Name = "Form3"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
CommonDialog1.ShowOpen
Text13.Text = CommonDialog1.FileName
End Sub

Private Sub Command10_Click()
Dim Temp_Spradrn As Spradrn
Temp_Spradrn.ActionNum = Val(Text28.Text)
Temp_Spradrn.addr = Val(Text27.Text)
Temp_Spradrn.AnimationNum = Val(Text26.Text)
Temp_Spradrn.SpradrnNotKnow = 2
Open Text29.Text For Binary Access Write As #100
Put #100, LOF(100) + 1, Temp_Spradrn
Close #100
End Sub

Private Sub Command11_Click()
Text26.Text = Form1.Label9.Caption
Text27.Text = Form1.Label12.Caption
Text28.Text = Form1.Label14.Caption
End Sub

Private Sub Command12_Click()
Dim Temp_String As String
Text20.Text = Form1.Label19.Caption
Text21.Text = Form1.Label20.Caption
Text22.Text = Form1.Label22.Caption
Text23.Text = Form1.Label24.Caption
For A = 0 To Form1.List1.ListCount - 1
    Temp_String = Temp_String & Form1.List1.List(A) & ","
Next
Text25.Text = Temp_String
End Sub

Private Sub Command13_Click()
Text14.Text = Form1.Label50.Caption
Text15.Text = Form1.Label52.Caption
Text16.Text = Form1.Label56.Caption
Text17.Text = Form1.Label57.Caption
End Sub

Private Sub Command14_Click()
Text1.Text = Form1.Label27.Caption
Text2.Text = Form1.Label29.Caption
Text3.Text = 16
Text4.Text = Form1.Label33.Caption
Text5.Text = Form1.Label35.Caption
Text6.Text = Form1.Label37.Caption
Text7.Text = Form1.Label39.Caption
Text8.Text = Form1.Label41.Caption
Text9.Text = Form1.Label43.Caption
Text10.Text = Form1.Label45.Caption
Text11.Text = Form1.Label48.Caption
Text12.Text = Form1.Text5.Text
End Sub

Private Sub Command15_Click()
CommonDialog1.ShowSave
Text31.Text = CommonDialog1.FileName
End Sub

Private Sub Command2_Click()
    Dim Temp_MyBmp_Header As BITMAPFILEHEADER
    Dim Temp_MyBmp_Info As BITMAPINFO
    Dim buff() As Byte
    Dim buff1() As Byte
    Dim datalen As Long
    Open Text30.Text For Binary Access Read As #100
    Get #100, , Temp_MyBmp_Header
    Get #100, , Temp_MyBmp_Info
    ReDim buff(1 To Temp_MyBmp_Info.bmiHeader.biHeight * Temp_MyBmp_Info.bmiHeader.biWidth) As Byte
    Get #100, , buff
    Close #100
    
    Open Text31.Text For Binary Access Write As #101

    Dim addr1 As Long

    addr1 = BmptoReal(VarPtr(buff(1)), Temp_MyBmp_Info.bmiHeader.biWidth, Temp_MyBmp_Info.bmiHeader.biHeight, datalen, 1)
    
    Me.Caption = addr1
    
    ReDim buff1(1 To datalen) As Byte
    
    CopyMemory buff1(1), ByVal addr1, datalen
    
    Put #101, LOF(101) + 1, buff1
    Close #100
    Close #101
    Label27.Caption = Val(Label27.Caption) + 1
End Sub

Private Sub Command3_Click()
CommonDialog1.ShowOpen
Text30.Text = CommonDialog1.FileName
End Sub

Private Sub Command4_Click()
Dim Temp_Adrn As adrn
Temp_Adrn.addr = Val(Text2.Text)
Temp_Adrn.Num = Val(Text1.Text)
Temp_Adrn.datalen = Val(Text3.Text)
Temp_Adrn.X = Val(Text4.Text)
Temp_Adrn.Y = Val(Text5.Text)
Temp_Adrn.width = Val(Text6.Text)
Temp_Adrn.height = Val(Text7.Text)
Temp_Adrn.EastCover = Val(Text8.Text)
Temp_Adrn.SouthCover = Val(Text9.Text)
Temp_Adrn.ObstacleFlags = Val(Text10.Text)
Temp_Adrn.MapNum = Val(Text11.Text)
For A = 1 To 45
    Temp_Adrn.AdrnNotKnow(A) = Val(StrQ(Text12.Text, ",", A))
Next
Open Text13.Text For Binary Access Write As #100
Put #100, LOF(100) + 1, Temp_Adrn
Close #100
MsgBox "完成"
Label26.Caption = Temp_Adrn.Num
End Sub

Private Sub Command5_Click()
CommonDialog1.ShowOpen
Text19.Text = CommonDialog1.FileName
End Sub

Private Sub Command6_Click()
Dim Temp_Real As Real
Temp_Real.Compress = Val(Text14.Text)
Temp_Real.datalen = Val("&H" & Text18.Text)
Temp_Real.height = Val(Text17.Text)
Temp_Real.width = Val(Text16.Text)
Temp_Real.hwnd(1) = &H52
Temp_Real.hwnd(2) = &H44
Temp_Real.RealNotKnow = Val(Text15.Text)
Open Text19.Text For Binary Access Write As #5
Put #5, LOF(5) + 1, Temp_Real
Close #5

End Sub

Private Sub Command7_Click()
CommonDialog1.ShowOpen
Text24.Text = CommonDialog1.FileName
End Sub

Private Sub Command8_Click()
Dim Temp_Spr As Spr
Dim Temp_Sequence As Sequence
Temp_Spr.Number = Val(Text23.Text)
Temp_Spr.Direction = Val(Text20.Text)
Temp_Spr.ActionFlags = Val(Text21.Text)
Temp_Spr.Time = Val(Text22.Text)
Open Text24.Text For Binary Access Write As #100
Put #100, LOF(100) + 1, Temp_Spr

For A = 1 To Temp_Spr.Number
    Temp_Sequence.PictureNum = Val(StrQ(Text25.Text, ",", A))
    Put #100, , Temp_Sequence
Next

Close #100
MsgBox "完成"
End Sub

Private Sub Command9_Click()
CommonDialog1.ShowOpen
Text29.Text = CommonDialog1.FileName
End Sub

⌨️ 快捷键说明

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