hedgewars/uConsts.pas
changeset 769 788efc1d649f
parent 760 23aaafa40b4e
child 775 23c253aae336
equal deleted inserted replaced
768:2886dafa5bcf 769:788efc1d649f
   237 
   237 
   238       SpritesData: array[TSprite] of record
   238       SpritesData: array[TSprite] of record
   239                      FileName: String[31];
   239                      FileName: String[31];
   240                      Path, AltPath: TPathType;
   240                      Path, AltPath: TPathType;
   241                      Texture: PTexture;
   241                      Texture: PTexture;
       
   242                      Surface: PSDL_Surface;
   242                      Width, Height: LongInt;
   243                      Width, Height: LongInt;
   243                      hasAlpha: boolean;
   244                      saveSurf: boolean;
   244                      end = (
   245                      end = (
   245                      (FileName:  'BlueWater'; Path: ptGraphics; AltPath: ptNone; Texture: nil;
   246                      (FileName:  'BlueWater'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil;
   246                       Width: 256; Height: 48; hasAlpha: false),// sprWater
   247                       Width: 256; Height: 48; saveSurf: false),// sprWater
   247                      (FileName:     'Clouds'; Path: ptCurrTheme;AltPath: ptGraphics; Texture: nil;
   248                      (FileName: 'Clouds'; Path: ptCurrTheme;AltPath: ptGraphics; Texture: nil; Surface: nil;
   248                       Width: 256; Height:128; hasAlpha: false),// sprCloud
   249                       Width: 256; Height:128; saveSurf: false),// sprCloud
   249                      (FileName:       'Bomb'; Path: ptGraphics; AltPath: ptNone; Texture: nil;
   250                      (FileName:       'Bomb'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil;
   250                       Width:  16; Height: 16; hasAlpha: false),// sprBomb
   251                       Width:  16; Height: 16; saveSurf: false),// sprBomb
   251                      (FileName:  'BigDigits'; Path: ptGraphics; AltPath: ptNone; Texture: nil;
   252                      (FileName:  'BigDigits'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil;
   252                       Width:  32; Height: 32; hasAlpha:  true),// sprBigDigit
   253                       Width:  32; Height: 32; saveSurf: false),// sprBigDigit
   253                      (FileName:      'Frame'; Path: ptGraphics; AltPath: ptNone; Texture: nil;
   254                      (FileName:      'Frame'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil;
   254                       Width:   4; Height: 32; hasAlpha:  true),// sprFrame
   255                       Width:   4; Height: 32; saveSurf: false),// sprFrame
   255                      (FileName:        'Lag'; Path: ptGraphics; AltPath: ptNone; Texture: nil;
   256                      (FileName:        'Lag'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil;
   256                       Width:  65; Height: 65; hasAlpha:  true),// sprLag
   257                       Width:  65; Height: 65; saveSurf: false),// sprLag
   257                      (FileName:      'Arrow'; Path: ptGraphics; AltPath: ptNone; Texture: nil;
   258                      (FileName:      'Arrow'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil;
   258                       Width:  16; Height: 16; hasAlpha: false),// sprCursor
   259                       Width:  16; Height: 16; saveSurf: false),// sprCursor
   259                      (FileName:    'Grenade'; Path: ptGraphics; AltPath: ptNone; Texture: nil;
   260                      (FileName:    'Grenade'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil;
   260                       Width:  32; Height: 32; hasAlpha: false),// sprGrenade
   261                       Width:  32; Height: 32; saveSurf: false),// sprGrenade
   261                      (FileName:    'Targetp'; Path: ptGraphics; AltPath: ptNone; Texture: nil;
   262                      (FileName:    'Targetp'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil;
   262                       Width:  32; Height: 32; hasAlpha: false),// sprTargetP
   263                       Width:  32; Height: 32; saveSurf: false),// sprTargetP
   263                      (FileName:        'UFO'; Path: ptGraphics; AltPath: ptNone; Texture: nil;
   264                      (FileName:        'UFO'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil;
   264                       Width:  32; Height: 32; hasAlpha: false),// sprUFO
   265                       Width:  32; Height: 32; saveSurf: false),// sprUFO
   265                      (FileName: 'SmokeTrace'; Path: ptGraphics; AltPath: ptNone; Texture: nil;
   266                      (FileName: 'SmokeTrace'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil;
   266                       Width:  32; Height: 32; hasAlpha:  true),// sprSmokeTrace
   267                       Width:  32; Height: 32; saveSurf: false),// sprSmokeTrace
   267                      (FileName:   'RopeHook'; Path: ptGraphics; AltPath: ptNone; Texture: nil;
   268                      (FileName:   'RopeHook'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil;
   268                       Width:  32; Height: 32; hasAlpha: false),// sprRopeHook
   269                       Width:  32; Height: 32; saveSurf: false),// sprRopeHook
   269                      (FileName:     'Expl50'; Path: ptGraphics; AltPath: ptNone; Texture: nil;
   270                      (FileName:     'Expl50'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil;
   270                       Width:  64; Height: 64; hasAlpha: false),// sprExplosion50
   271                       Width:  64; Height: 64; saveSurf: false),// sprExplosion50
   271                      (FileName:    'MineOff'; Path: ptGraphics; AltPath: ptNone; Texture: nil;
   272                      (FileName:    'MineOff'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil;
   272                       Width:  16; Height: 16; hasAlpha: false),// sprMineOff
   273                       Width:  16; Height: 16; saveSurf: false),// sprMineOff
   273                      (FileName:     'MineOn'; Path: ptGraphics; AltPath: ptNone; Texture: nil;
   274                      (FileName:     'MineOn'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil;
   274                       Width:  16; Height: 16; hasAlpha: false),// sprMineOn
   275                       Width:  16; Height: 16; saveSurf: false),// sprMineOn
   275                      (FileName:       'Case'; Path: ptGraphics; AltPath: ptNone; Texture: nil;
   276                      (FileName:       'Case'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil;
   276                       Width:  32; Height: 32; hasAlpha: false),// sprCase
   277                       Width:  32; Height: 32; saveSurf: false),// sprCase
   277                      (FileName:   'FirstAid'; Path: ptGraphics; AltPath: ptNone; Texture: nil;
   278                      (FileName:   'FirstAid'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil;
   278                       Width:  48; Height: 48; hasAlpha: false),// sprFAid
   279                       Width:  48; Height: 48; saveSurf: false),// sprFAid
   279                      (FileName:   'dynamite'; Path: ptGraphics; AltPath: ptNone; Texture: nil;
   280                      (FileName:   'dynamite'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil;
   280                       Width:  32; Height: 32; hasAlpha: false),// sprDynamite
   281                       Width:  32; Height: 32; saveSurf: false),// sprDynamite
   281                      (FileName:      'Power'; Path: ptGraphics; AltPath: ptNone; Texture: nil;
   282                      (FileName:      'Power'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil;
   282                       Width:  32; Height: 32; hasAlpha:  true),// sprPower
   283                       Width:  32; Height: 32; saveSurf: false),// sprPower
   283                      (FileName:     'ClBomb'; Path: ptGraphics; AltPath: ptNone; Texture: nil;
   284                      (FileName:     'ClBomb'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil;
   284                       Width:  16; Height: 16; hasAlpha: false),// sprClusterBomb
   285                       Width:  16; Height: 16; saveSurf: false),// sprClusterBomb
   285                      (FileName: 'ClParticle'; Path: ptGraphics; AltPath: ptNone; Texture: nil;
   286                      (FileName: 'ClParticle'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil;
   286                       Width:  16; Height: 16; hasAlpha: false),// sprClusterParticle
   287                       Width:  16; Height: 16; saveSurf: false),// sprClusterParticle
   287                      (FileName:      'Flame'; Path: ptGraphics; AltPath: ptNone; Texture: nil;
   288                      (FileName:      'Flame'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil;
   288                       Width:  16; Height: 16; hasAlpha: false),// sprFlame
   289                       Width:  16; Height: 16; saveSurf: false),// sprFlame
   289                      (FileName:   'horizont'; Path: ptCurrTheme; AltPath: ptNone; Texture: nil;
   290                      (FileName:   'horizont'; Path: ptCurrTheme;AltPath: ptNone; Texture: nil; Surface: nil;
   290                       Width:   0; Height:  0; hasAlpha: false),// sprHorizont
   291                       Width:   0; Height:  0; saveSurf: false),// sprHorizont
   291                      (FileName:        'Sky'; Path: ptCurrTheme; AltPath: ptNone; Texture: nil;
   292                      (FileName:        'Sky'; Path: ptCurrTheme;AltPath: ptNone; Texture: nil; Surface: nil;
   292                       Width:   0; Height:  0; hasAlpha: false),// sprSky
   293                       Width:   0; Height:  0; saveSurf: false),// sprSky
   293                      (FileName:  'BrdrLines'; Path: ptAmmoMenu; AltPath: ptNone; Texture: nil;
   294                      (FileName:  'BrdrLines'; Path: ptAmmoMenu; AltPath: ptNone; Texture: nil; Surface: nil;
   294                       Width: 202; Height:  1; hasAlpha: false),// sprAMBorders
   295                       Width: 202; Height:  1; saveSurf: false),// sprAMBorders
   295                      (FileName:       'Slot'; Path: ptAmmoMenu; AltPath: ptNone; Texture: nil;
   296                      (FileName:       'Slot'; Path: ptAmmoMenu; AltPath: ptNone; Texture: nil; Surface: nil;
   296                       Width: 202; Height: 33; hasAlpha: false),// sprAMSlot
   297                       Width: 202; Height: 33; saveSurf: false),// sprAMSlot
   297                      (FileName:   'AmmoName'; Path: ptAmmoMenu; AltPath: ptNone; Texture: nil;
   298                      (FileName:   'AmmoName'; Path: ptAmmoMenu; AltPath: ptNone; Texture: nil; Surface: nil;
   298                       Width: 202; Height: 33; hasAlpha: false),// sprAMSlotName
   299                       Width: 202; Height: 33; saveSurf: false),// sprAMSlotName
   299                      (FileName:      'Ammos'; Path: ptAmmoMenu; AltPath: ptNone; Texture: nil;
   300                      (FileName:      'Ammos'; Path: ptAmmoMenu; AltPath: ptNone; Texture: nil; Surface: nil;
   300                       Width:  32; Height: 32; hasAlpha: false),// sprAMAmmos
   301                       Width:  32; Height: 32; saveSurf: false),// sprAMAmmos
   301                      (FileName:   'SlotKeys'; Path: ptAmmoMenu; AltPath: ptNone; Texture: nil;
   302                      (FileName:   'SlotKeys'; Path: ptAmmoMenu; AltPath: ptNone; Texture: nil; Surface: nil;
   302                       Width:  32; Height: 32; hasAlpha: false),// sprAMSlotKeys
   303                       Width:  32; Height: 32; saveSurf: false),// sprAMSlotKeys
   303                      (FileName:  'Selection'; Path: ptAmmoMenu; AltPath: ptNone; Texture: nil;
   304                      (FileName:  'Selection'; Path: ptAmmoMenu; AltPath: ptNone; Texture: nil; Surface: nil;
   304                       Width:  32; Height: 32; hasAlpha: false),// sprAMSelection
   305                       Width:  32; Height: 32; saveSurf: false),// sprAMSelection
   305                      (FileName:     'Finger'; Path: ptGraphics; AltPath: ptNone; Texture: nil;
   306                      (FileName:     'Finger'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil;
   306                       Width:  32; Height: 48; hasAlpha: false),// sprFinger
   307                       Width:  32; Height: 48; saveSurf: false),// sprFinger
   307                      (FileName:    'AirBomb'; Path: ptGraphics; AltPath: ptNone; Texture: nil;
   308                      (FileName:    'AirBomb'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil;
   308                       Width:  32; Height: 32; hasAlpha: false),// sprAirBomb
   309                       Width:  32; Height: 32; saveSurf: false),// sprAirBomb
   309                      (FileName:   'Airplane'; Path: ptGraphics; AltPath: ptNone; Texture: nil;
   310                      (FileName:   'Airplane'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil;
   310                       Width: 125; Height: 42; hasAlpha: false),// sprAirplane
   311                       Width: 125; Height: 42; saveSurf: false),// sprAirplane
   311                      (FileName: 'amAirplane'; Path: ptGraphics; AltPath: ptNone; Texture: nil;
   312                      (FileName: 'amAirplane'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil;
   312                       Width:  64; Height: 32; hasAlpha:  true),// sprAirplane
   313                       Width:  64; Height: 32; saveSurf: false),// sprAirplane
   313                      (FileName:   'amGirder'; Path: ptGraphics; AltPath: ptNone; Texture: nil;
   314                      (FileName:   'amGirder'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil;
   314                       Width: 160; Height:160; hasAlpha: false),// sprAmGirder
   315                       Width: 160; Height:160; saveSurf:  true),// sprAmGirder
   315                      (FileName:     'hhMask'; Path: ptGraphics; AltPath: ptNone; Texture: nil;
   316                      (FileName:     'hhMask'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil;
   316                       Width:  32; Height: 32; hasAlpha: false),// sprHHTelepMask
   317                       Width:  32; Height: 32; saveSurf:  true),// sprHHTelepMask
   317                      (FileName:     'Switch'; Path: ptGraphics; AltPath: ptNone; Texture: nil;
   318                      (FileName:     'Switch'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil;
   318                       Width:  32; Height: 32; hasAlpha:  true),// sprSwitch
   319                       Width:  32; Height: 32; saveSurf: false),// sprSwitch
   319                      (FileName:  'Parachute'; Path: ptGraphics; AltPath: ptNone; Texture: nil;
   320                      (FileName:  'Parachute'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil;
   320                       Width:  48; Height: 48; hasAlpha:  true),// sprParachute
   321                       Width:  48; Height: 48; saveSurf: false),// sprParachute
   321                      (FileName:     'Target'; Path: ptGraphics; AltPath: ptNone; Texture: nil;
   322                      (FileName:     'Target'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil;
   322                       Width:  32; Height: 32; hasAlpha: false),// sprTarget
   323                       Width:  32; Height: 32; saveSurf: false),// sprTarget
   323                      (FileName:   'RopeNode'; Path: ptGraphics; AltPath: ptNone; Texture: nil;
   324                      (FileName:   'RopeNode'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil;
   324                       Width:   6; Height:  6; hasAlpha: false),// sprRopeNode
   325                       Width:   6; Height:  6; saveSurf: false),// sprRopeNode
   325                      (FileName:    'Console'; Path: ptGraphics; AltPath: ptNone; Texture: nil;
   326                      (FileName:    'Console'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil;
   326                       Width: 256; Height:256; hasAlpha: false),// sprConsoleBG
   327                       Width: 256; Height:256; saveSurf: false),// sprConsoleBG
   327                      (FileName:   'thinking'; Path: ptGraphics; AltPath: ptNone; Texture: nil;
   328                      (FileName:   'thinking'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil;
   328                       Width:  32; Height: 32; hasAlpha: false),// sprQuestion
   329                       Width:  32; Height: 32; saveSurf: false),// sprQuestion
   329                      (FileName:   'PowerBar'; Path: ptGraphics; AltPath: ptNone; Texture: nil;
   330                      (FileName:   'PowerBar'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil;
   330                       Width: 256; Height: 32; hasAlpha: false),// sprPowerBar
   331                       Width: 256; Height: 32; saveSurf: false),// sprPowerBar
   331                      (FileName:    'WindBar'; Path: ptGraphics; AltPath: ptNone; Texture: nil;
   332                      (FileName:    'WindBar'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil;
   332                       Width: 151; Height: 17; hasAlpha: false),// sprWindBar
   333                       Width: 151; Height: 17; saveSurf: false),// sprWindBar
   333                      (FileName:      'WindL'; Path: ptGraphics; AltPath: ptNone; Texture: nil;
   334                      (FileName:      'WindL'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil;
   334                       Width:  80; Height: 13; hasAlpha: false),// sprWindL
   335                       Width:  80; Height: 13; saveSurf: false),// sprWindL
   335                      (FileName:      'WindR'; Path: ptGraphics; AltPath: ptNone; Texture: nil;
   336                      (FileName:      'WindR'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil;
   336                       Width:  80; Height: 13; hasAlpha: false) // sprWindR
   337                       Width:  80; Height: 13; saveSurf: false) // sprWindR
   337                      );
   338                      );
   338 
   339 
   339       Soundz: array[TSound] of record
   340       Soundz: array[TSound] of record
   340                                        FileName: String[31];
   341                                        FileName: String[31];
   341                                        Path    : TPathType;
   342                                        Path    : TPathType;