hedgewars/uVariables.pas
changeset 7180 53ffc8853008
parent 7103 1c1afb5a1565
child 7198 5debd5fe526e
equal deleted inserted replaced
7176:fb4b0c6dfdbd 7180:53ffc8853008
    50     UserNick        : shortstring = '';
    50     UserNick        : shortstring = '';
    51     recordFileName  : shortstring = '';
    51     recordFileName  : shortstring = '';
    52     cReadyDelay     : Longword    = 5000;
    52     cReadyDelay     : Longword    = 5000;
    53     cStereoMode     : TStereoMode = smNone;
    53     cStereoMode     : TStereoMode = smNone;
    54     cOnlyStats      : boolean = False;
    54     cOnlyStats      : boolean = False;
       
    55     cRecPrefix      : shortstring = '';
    55 //////////////////////////
    56 //////////////////////////
    56     cMapName        : shortstring = '';
    57     cMapName        : shortstring = '';
    57 
    58 
    58     isCursorVisible : boolean;
    59     isCursorVisible : boolean;
    59     isInLag         : boolean;
    60     isInLag         : boolean;
    60     isPaused        : boolean;
    61     isPaused        : boolean;
    61     isInMultiShoot  : boolean;
    62     isInMultiShoot  : boolean;
    62     isSpeed         : boolean;
    63     isSpeed         : boolean;
    63 
    64 
    64     fastUntilLag    : boolean;
    65     fastUntilLag    : boolean;
       
    66     fastScrolling   : boolean;
    65     autoCameraOn    : boolean;
    67     autoCameraOn    : boolean;
    66 
    68 
    67     GameTicks       : LongWord;
    69     GameTicks       : LongWord;
    68     GameState       : TGameState;
    70     GameState       : TGameState;
    69     GameType        : TGameType;
    71     GameType        : TGameType;
  2435 
  2437 
  2436     // stereoscopic framebuffer and textures
  2438     // stereoscopic framebuffer and textures
  2437     framel, framer, depthl, depthr: GLuint;
  2439     framel, framer, depthl, depthr: GLuint;
  2438     texl, texr: GLuint;
  2440     texl, texr: GLuint;
  2439 
  2441 
       
  2442     // video recorder framebuffer and texture
       
  2443     defaultFrame, depthv: GLuint;
       
  2444     texv: GLuint;
       
  2445 
  2440     VisualGearLayers: array[0..6] of PVisualGear;
  2446     VisualGearLayers: array[0..6] of PVisualGear;
  2441     lastVisualGearByUID: PVisualGear;
  2447     lastVisualGearByUID: PVisualGear;
  2442     vobFrameTicks, vobFramesCount, vobCount: Longword;
  2448     vobFrameTicks, vobFramesCount, vobCount: Longword;
  2443     vobVelocity, vobFallSpeed: LongInt;
  2449     vobVelocity, vobFallSpeed: LongInt;
  2444     vobSDFrameTicks, vobSDFramesCount, vobSDCount: Longword;
  2450     vobSDFrameTicks, vobSDFramesCount, vobSDCount: Longword;
  2559     cCaseFactor     := 5;  {0..9}
  2565     cCaseFactor     := 5;  {0..9}
  2560     cLandMines      := 4;
  2566     cLandMines      := 4;
  2561     cExplosives     := 2;
  2567     cExplosives     := 2;
  2562 
  2568 
  2563     GameState       := Low(TGameState);
  2569     GameState       := Low(TGameState);
  2564     GameType        := gmtLocal;
  2570 //    GameType        := gmtLocal;
  2565     zoom            := cDefaultZoomLevel;
  2571     zoom            := cDefaultZoomLevel;
  2566     ZoomValue       := cDefaultZoomLevel;
  2572     ZoomValue       := cDefaultZoomLevel;
  2567     WeaponTooltipTex:= nil;
  2573     WeaponTooltipTex:= nil;
  2568     cLaserSighting  := false;
  2574     cLaserSighting  := false;
  2569     cVampiric       := false;
  2575     cVampiric       := false;
  2575     isInLag         := false;
  2581     isInLag         := false;
  2576     isPaused        := false;
  2582     isPaused        := false;
  2577     isInMultiShoot  := false;
  2583     isInMultiShoot  := false;
  2578     isSpeed         := false;
  2584     isSpeed         := false;
  2579     fastUntilLag    := false;
  2585     fastUntilLag    := false;
       
  2586     fastScrolling   := false;
  2580     autoCameraOn    := true;
  2587     autoCameraOn    := true;
  2581     cScriptName     := '';
  2588     cScriptName     := '';
  2582     cSeed           := '';
  2589     cSeed           := '';
  2583     cVolumeDelta    := 0;
  2590     cVolumeDelta    := 0;
  2584     cHasFocus       := true;
  2591     cHasFocus       := true;