unit1.dfm
来自「delphi 最好的3D控件GLScene_Demos」· DFM 代码 · 共 192 行
DFM
192 行
object Form1: TForm1
Left = 74
Top = 84
Width = 706
Height = 453
Caption = 'Form1'
Color = clBtnFace
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -11
Font.Name = 'MS Sans Serif'
Font.Style = []
OldCreateOrder = False
OnCreate = FormCreate
DesignSize = (
698
424)
PixelsPerInch = 96
TextHeight = 13
object Label1: TLabel
Left = 8
Top = 8
Width = 75
Height = 18
Caption = 'Maze Map'
Font.Charset = ANSI_CHARSET
Font.Color = clWindowText
Font.Height = -16
Font.Name = 'Arial'
Font.Style = [fsBold, fsItalic]
ParentFont = False
end
object Label2: TLabel
Left = 304
Top = 8
Width = 62
Height = 18
Caption = '3D View'
Font.Charset = ANSI_CHARSET
Font.Color = clWindowText
Font.Height = -16
Font.Name = 'Arial'
Font.Style = [fsBold, fsItalic]
ParentFont = False
end
object Label3: TLabel
Left = 24
Top = 312
Width = 241
Height = 42
Caption =
'To modify map, edit cells with keyboard :'#13#10'- any non-empty cell ' +
'is a wall'#13#10'- click '#39'process'#39' to commit changes or check '#39'auto'#39
Font.Charset = ANSI_CHARSET
Font.Color = clWindowText
Font.Height = -11
Font.Name = 'Arial'
Font.Style = []
ParentFont = False
end
object GLSceneViewer1: TGLSceneViewer
Left = 296
Top = 32
Width = 393
Height = 385
Camera = GLCamera1
Buffer.FogEnvironment.FogColor.Color = {00000000000000008180003F0000803F}
Buffer.FogEnvironment.FogStart = 1
Buffer.FogEnvironment.FogEnd = 10
Buffer.BackgroundColor = clNavy
Anchors = [akLeft, akTop, akRight, akBottom]
end
object BUForward: TButton
Left = 96
Top = 360
Width = 89
Height = 25
Caption = 'Forward (Z/W)'
TabOrder = 1
OnClick = BUForwardClick
end
object BUTurnLeft: TButton
Left = 8
Top = 376
Width = 81
Height = 25
Caption = 'Turn Left (Q/A)'
TabOrder = 2
OnClick = BUTurnLeftClick
end
object BUTurnRight: TButton
Left = 192
Top = 376
Width = 89
Height = 25
Caption = 'TurnRight (D)'
TabOrder = 3
OnClick = BUTurnRightClick
end
object BUBackward: TButton
Left = 96
Top = 392
Width = 89
Height = 25
Caption = 'Backward (S)'
TabOrder = 4
OnClick = BUBackwardClick
end
object SGMap: TStringGrid
Left = 8
Top = 32
Width = 272
Height = 272
BorderStyle = bsNone
ColCount = 16
DefaultColWidth = 16
DefaultRowHeight = 16
FixedCols = 0
RowCount = 16
FixedRows = 0
Options = [goFixedVertLine, goFixedHorzLine, goVertLine, goHorzLine, goRangeSelect, goEditing, goAlwaysShowEditor]
ScrollBars = ssNone
TabOrder = 5
OnSetEditText = SGMapSetEditText
end
object BBProcess: TButton
Left = 200
Top = 8
Width = 75
Height = 17
Caption = 'Process'
TabOrder = 6
OnClick = BBProcessClick
end
object CBAuto: TCheckBox
Left = 152
Top = 8
Width = 41
Height = 17
Caption = 'Auto'
TabOrder = 7
end
object CBFog: TCheckBox
Left = 640
Top = 8
Width = 49
Height = 17
Caption = 'Fog'
TabOrder = 8
OnClick = CBFogClick
end
object GLScene1: TGLScene
Left = 488
object GLLightSource1: TGLLightSource
Ambient.Color = {CDCC4C3ECDCC4C3ECDCC4C3E0000803F}
ConstAttenuation = 1
Position.Coordinates = {000048420000C8420000C8420000803F}
SpotCutOff = 180
end
object DummyCube1: TGLDummyCube
Position.Coordinates = {00000000000000000000C0400000803F}
CubeSize = 1
object GLCamera1: TGLCamera
DepthOfView = 100
FocalLength = 50
Position.Coordinates = {000000000000003F000000000000803F}
Up.Coordinates = {000000800000803F0000000000000000}
Left = 264
Top = 144
end
end
object Portal1: TGLPortal
Position.Coordinates = {00000000000000BF000000000000803F}
Material.Texture.MappingTCoordinates.Coordinates = {000000000000803F0000000000000000}
MaterialLibrary = GLMaterialLibrary1
end
end
object GLMaterialLibrary1: TGLMaterialLibrary
Left = 528
end
object Timer1: TTimer
OnTimer = Timer1Timer
Left = 568
end
object GLCadencer1: TGLCadencer
Scene = GLScene1
SleepLength = 0
OnProgress = GLCadencer1Progress
Left = 448
end
end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?