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

📄 simpleinstrumentpanel.gls

📁 实现gl studio在vc中的仪表开发
💻 GLS
📖 第 1 页 / 共 3 页
字号:
    CullBackFace: 0
    AlphaMode: ALPHA_MODE_256_LEVEL
    AntiAlias: 0
    DepthTest: 2
    Color: 0 0 0 255
    TextureIndex: -1
    TextureRepeat: 1
    TextureMap: TEXTURE_MAP_REPLACE
    BlendColor: 255 255 255 255
    TextureMinFilter: TEXTURE_FILTER_LINEAR
    TextureMagFilter: TEXTURE_FILTER_LINEAR
    PolygonMode: POLY_MODE_OUTLINE
    PolygonEnd: POLY_CLOSED
    PolygonOffset: 0
    Shading: FLAT
    LineStippleMultiplier: 1
    LineStipplePattern: 65535
    Blink: 0
    BlinkRate: 2
    LightingEnabled: 0
    MaterialIndex: 0
    Vertices: 8
-29.5    -20.5        0 255 255 255 255
29.5    -20.5        0 255 255 255 255
29.5     20.5        0 255 255 255 255
-29.5     20.5        0 255 255 255 255
-29.5    -20.5        0 255 255 255 255
29.5    -20.5        0 255 255 255 255
29.5     20.5        0 255 255 255 255
-29.5     20.5        0 255 255 255 255
    TexturePoints: 
5.5   -599.5        0
5.5   -640.5        0
-35.5   -640.5        0
-35.5   -599.5        0
    PerformGroupCullCheck: 0
    CullTestChildren: 1
    DetentVal: 1
    WhichObjectBackground: 0
    FirstDetentSnapback: 0
    LastDetentSnapback: 1
    EmitDetentValEvent: 1
    DetentVal: 1
    ObjectCallbackCode: #$STRING_START$#bool rval = false;
if (ObjectEventIs(ev, "DetentVal"))
{
if (!Testing())
{
    if (self->DetentVal() == 1)
    {
      _newMFDMode ="HSI";
    }
    else if (self->DetentVal() == 2)
    {
      _newMFDMode ="HVR";
    }
    else if (self->DetentVal() == 3)
    {
      _newMFDMode ="TEST";
    }
}
rval = true;
}
return rval;

#$STRING_END$#
    ProtectionMode: PUBLIC
    Locked: 0
    IsStatic: 0
        ObjectClass: GLPolygon
    {
      Name: mfdModeHSI
      Location: 822      129 0
      Visible: 1
      Pickable: 1
      RotationOrigin: 0        0 0
      Rotation:               0 0 0 
      DynamicTranslate:               0 0 0 
      DynamicScale:               1 1 1 
      DCSMatrix: 6.123031769e-017 1 0 0 -1 6.123031769e-017 0 0 0 0 1 0 0 0 0 1 
      LineWidth: 1
      CullBackFace: 0
      AlphaMode: ALPHA_MODE_256_LEVEL
      AntiAlias: 0
      DepthTest: 2
      Color: 255 10 48 255
      TextureIndex: 0
      TextureRepeat: 1
      TextureMap: TEXTURE_MAP_REPLACE
      BlendColor: 255 255 255 255
      TextureMinFilter: TEXTURE_FILTER_LINEAR
      TextureMagFilter: TEXTURE_FILTER_LINEAR
      PolygonMode: POLY_MODE_FILLED
      PolygonEnd: POLY_CLOSED
      PolygonOffset: 0
      Shading: FLAT
      LineStippleMultiplier: 1
      LineStipplePattern: 65535
      Blink: 0
      BlinkRate: 2
      LightingEnabled: 0
      MaterialIndex: 0
      Vertices: 4
20      -20        0 249 255 244 255
20       20        0 249 255 244 255
-20       20        0 249 255 244 255
-20      -20        0 249 255 244 255
      TexturePoints: 
760      836        0
760 -188.0000153        0
-263.9995117     -188        0
-263.9995117      836        0
      TextureCoords: 4
0.1640625 0.7226566076        0
0.203125 0.7226566076        0
0.203125 0.7617191076        0
0.1640625 0.7617191076        0
      Normals: 4
0        0        1
0        0        1
0        0        1
0        0        1
      ProtectionMode: PUBLIC
      Locked: 0
      EndMarker: mfdModeHSI
    }
    ObjectClass: GLPolygon
    {
      Name: mfdModeHVR
      Location: 834      128 0
      Visible: 1
      Pickable: 1
      RotationOrigin: 0        0 0
      Rotation:               0 0 0 
      DynamicTranslate:               0 0 0 
      DynamicScale:               1 1 1 
      DCSMatrix: 6.123031769e-017 1 0 0 -1 6.123031769e-017 0 0 0 0 1 0 0 0 0 1 
      LineWidth: 1
      CullBackFace: 0
      AlphaMode: ALPHA_MODE_256_LEVEL
      AntiAlias: 0
      DepthTest: 2
      Color: 255 10 48 255
      TextureIndex: 0
      TextureRepeat: 1
      TextureMap: TEXTURE_MAP_REPLACE
      BlendColor: 255 255 255 255
      TextureMinFilter: TEXTURE_FILTER_LINEAR
      TextureMagFilter: TEXTURE_FILTER_LINEAR
      PolygonMode: POLY_MODE_FILLED
      PolygonEnd: POLY_CLOSED
      PolygonOffset: 0
      Shading: FLAT
      LineStippleMultiplier: 1
      LineStipplePattern: 65535
      Blink: 0
      BlinkRate: 2
      LightingEnabled: 0
      MaterialIndex: 0
      Vertices: 4
15      -15        0 249 255 244 255
15       15        0 249 255 244 255
-15       15        0 249 255 244 255
-15      -15        0 249 255 244 255
      TexturePoints: 
1753      838        0
1753     -186        0
729.0004883     -186        0
729.0004883      838        0
      TextureCoords: 4
0.1669921875 1.697266459        0
0.1962890625 1.697266459        0
0.1962890625 1.726563334        0
0.1669921875 1.726563334        0
      Normals: 4
0        0        1
0        0        1
0        0        1
0        0        1
      ProtectionMode: PUBLIC
      Locked: 0
      EndMarker: mfdModeHVR
    }
    ObjectClass: GLPolygon
    {
      Name: mfdModeTest
      Location: 841      130 0
      Visible: 1
      Pickable: 1
      RotationOrigin: 0        0 0
      Rotation:               0 0 0 
      DynamicTranslate:               0 0 0 
      DynamicScale:               1 1 1 
      DCSMatrix: 6.123031769e-017 1 0 0 -1 6.123031769e-017 0 0 0 0 1 0 0 0 0 1 
      LineWidth: 1
      CullBackFace: 0
      AlphaMode: ALPHA_MODE_256_LEVEL
      AntiAlias: 0
      DepthTest: 2
      Color: 255 10 48 255
      TextureIndex: 0
      TextureRepeat: 1
      TextureMap: TEXTURE_MAP_REPLACE
      BlendColor: 255 255 255 255
      TextureMinFilter: TEXTURE_FILTER_LINEAR
      TextureMagFilter: TEXTURE_FILTER_LINEAR
      PolygonMode: POLY_MODE_FILLED
      PolygonEnd: POLY_CLOSED
      PolygonOffset: 0
      Shading: FLAT
      LineStippleMultiplier: 1
      LineStipplePattern: 65535
      Blink: 0
      BlinkRate: 2
      LightingEnabled: 0
      MaterialIndex: 0
      Vertices: 4
20      -20        0 249 255 244 255
20       20        0 249 255 244 255
-20       20        0 249 255 244 255
-20      -20        0 249 255 244 255
      TexturePoints: 
699      835        0
699 -189.0000153        0
-324.9995117     -189        0
-324.9995117      835        0
      TextureCoords: 4
0.1650390625 0.6630862355        0
0.2041015625 0.6630862355        0
0.2041015625 0.7021487355        0
0.1650390625 0.7021487355        0
      Normals: 4
0        0        1
0        0        1
0        0        1
0        0        1
      ProtectionMode: PUBLIC
      Locked: 0
      EndMarker: mfdModeTest
    }

    Preview: 1
    EndMarker: mfdModeGlsSwitch
  }
  ObjectClass: Component
  {
    Name: mfdDevice
    Location: 474      238 0
    Visible: 1
    Pickable: 1
    RotationOrigin: 0        0 0
    Rotation:               0 0 0 
    DynamicTranslate:               0 0 0 
    DynamicScale:               1 1 1 
    DCSMatrix:               1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 
    LineWidth: 1
    CullBackFace: 0
    AlphaMode: ALPHA_MODE_256_LEVEL
    AntiAlias: 0
    DepthTest: 2
    Color: 0 0 0 255
    TextureIndex: -1
    TextureRepeat: 1
    TextureMap: TEXTURE_MAP_REPLACE
    BlendColor: 255 255 255 255
    TextureMinFilter: TEXTURE_FILTER_LINEAR
    TextureMagFilter: TEXTURE_FILTER_LINEAR
    PolygonMode: POLY_MODE_OUTLINE
    PolygonEnd: POLY_CLOSED
    PolygonOffset: 0
    Shading: FLAT
    LineStippleMultiplier: 1
    LineStipplePattern: 65535
    Blink: 0
    BlinkRate: 2
    LightingEnabled: 0
    MaterialIndex: 0
    Vertices: 8
0        0        0 255 255 255 255
466        0        0 255 255 255 255
466      367        0 255 255 255 255
0      367        0 255 255 255 255
0        0        0 255 255 255 255
466        0        0 255 255 255 255
466      367        0 255 255 255 255
0      367        0 255 255 255 255
    TexturePoints: 
0        0        0
0        0        0
0        0        0
0        0        0
    PerformGroupCullCheck: 0
    CullTestChildren: 1
    EditorTransformMatrix:               1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 
    Scale:               1 1 1 
    ComponentFileName: ./MFD.dll
    AbsolutePlacement: 1
    UsingLiveComponent: 1
    GenerateForDLL: 1
    UseParentsLighting: 1
    LiveComponentObjectName: MFDClass
    ProtectionMode: PUBLIC
    Locked: 0
    IsStatic: 0
    EndMarker: mfdDevice
  }
  ObjectClass: Component
  {
    Name: adiDevice
    Location: 80.77344513 300.3866882 -241.0195313
    Visible: 1
    Pickable: 1
    RotationOrigin: -7.629394531e-006 4.577636719e-005 0
    Rotation:               0 0 0 
    DynamicTranslate:               0 0 0 
    DynamicScale:               1 1 1 
    DCSMatrix:               1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 
    LineWidth: 1
    CullBackFace: 0
    AlphaMode: ALPHA_MODE_256_LEVEL
    AntiAlias: 0
    DepthTest: 2
    Color: 0 0 0 255
    TextureIndex: 0
    TextureRepeat: 1
    TextureMap: TEXTURE_MAP_REPLACE
    BlendColor: 255 255 255 255
    TextureMinFilter: TEXTURE_FILTER_LINEAR
    TextureMagFilter: TEXTURE_FILTER_LINEAR
    PolygonMode: POLY_MODE_OUTLINE
    PolygonEnd: POLY_CLOSED
    PolygonOffset: 0
    Shading: FLAT
    LineStippleMultiplier: 1
    LineStipplePattern: 65535
    Blink: 0
    BlinkRate: 2
    LightingEnabled: 0
    MaterialIndex: 0
    Vertices: 8
-0.7734375 -0.38671875 -151.9804688 255 255 255 255
184.8515625 -0.38671875 -151.9804688 255 255 255 255
184.8515625 197.6132813 -151.9804688 255 255 255 255
-0.7734375 197.6132813 -151.9804688 255 255 255 255
-0.7734375 -0.38671875 0.38671875 255 255 255 255
184.8515625 -0.38671875 0.38671875 255 255 255 255
184.8515625 197.6132813 0.38671875 255 255 255 255
-0.7734375 197.6132813 0.38671875 255 255 255 255
    TexturePoints: 
-7.629394531e-006 4.577636719e-005        0
-7.629394531e-006 4.577636719e-005        0
-7.629394531e-006 4.577636719e-005        0
-7.629394531e-006 4.577636719e-005        0
    PerformGroupCullCheck: 0
    CullTestChildren: 1
    EditorTransformMatrix:      0.38671875 0 0 0 0 0.38671875 0 0 0 0 0.3867187798 0 0 0 0 1 
    Scale:               1 1 1 
    ComponentFileName: ./_ADI.gls
    AbsolutePlacement: 1
    UsingLiveComponent: 0
    GenerateForDLL: 1
    UseParentsLighting: 1
    LiveComponentObjectName: _ADIClass
    ProtectionMode: PUBLIC
    Locked: 0
    IsStatic: 0
    EndMarker: adiDevice
  }
  ObjectClass: Component
  {
    Name: altimeterDevice
    Location: 266      305 0
    Visible: 1
    Pickable: 1
    RotationOrigin: 0        0 0
    Rotation:               0 0 0 
    DynamicTranslate:               0 0 0 
    DynamicScale:               1 1 1 
    DCSMatrix:               1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 
    LineWidth: 1
    CullBackFace: 0
    AlphaMode: ALPHA_MODE_256_LEVEL
    AntiAlias: 0
    DepthTest: 2
    Color: 0 0 0 255
    TextureIndex: 1
    TextureRepeat: 1
    TextureMap: TEXTURE_MAP_REPLACE
    BlendColor: 255 255 255 255
    TextureMinFilter: TEXTURE_FILTER_LINEAR
    TextureMagFilter: TEXTURE_FILTER_LINEAR
    PolygonMode: POLY_MODE_OUTLINE
    PolygonEnd: POLY_CLOSED
    PolygonOffset: 0
    Shading: FLAT
    LineStippleMultiplier: 1
    LineStipplePattern: 65535
    Blink: 0
    BlinkRate: 2
    LightingEnabled: 0
    MaterialIndex: 0
    Vertices: 8
0        0        0 255 255 255 255
188.9626465        0        0 255 255 255 255
188.9626465      191        0 255 255 255 255
0      191        0 255 255 255 255
0        0        0 255 255 255 255
188.9626465        0        0 255 255 255 255
188.9626465      191        0 255 255 255 255
0      191        0 255 255 255 255
    TexturePoints: 
0        0        0
0        0        0
0        0        0
0        0        0
    PerformGroupCullCheck: 0
    CullTestChildren: 1
    EditorTransformMatrix:    0.5093333125 0 0 0 0 0.5093333125 0 0 0 0 1 0 0 0 0 1 
    Scale:               1 1 1 
    ComponentFileName: ./_Altimeter.gls
    AbsolutePlacement: 1
    UsingLiveComponent: 0
    GenerateForDLL: 1
    UseParentsLighting: 1
    LiveComponentObjectName: _AltimeterClass
    ProtectionMode: PUBLIC
    Locked: 0
    IsStatic: 0
    EndMarker: altimeterDevice
  }

}

⌨️ 快捷键说明

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