hedgewars/uVariables.pas
changeset 13370 e202d58236b1
parent 13174 061d55939e47
child 13404 8ce83caec236
equal deleted inserted replaced
13369:2eb09b27fbba 13370:e202d58236b1
  2575     trammod: array[TAmmoStrId] of ansistring;   // description of the weapon
  2575     trammod: array[TAmmoStrId] of ansistring;   // description of the weapon
  2576     trluaammo: array[TAmmoStrId] of ansistring; // name of the weapon (Lua overwrite)
  2576     trluaammo: array[TAmmoStrId] of ansistring; // name of the weapon (Lua overwrite)
  2577     trluaammoc: array[TAmmoStrId] of ansistring; // caption of the weapon (Lua overwrite)
  2577     trluaammoc: array[TAmmoStrId] of ansistring; // caption of the weapon (Lua overwrite)
  2578     trluaammod: array[TAmmoStrId] of ansistring;  // description of the weapon (Lua overwrite)
  2578     trluaammod: array[TAmmoStrId] of ansistring;  // description of the weapon (Lua overwrite)
  2579     trluaammoa: array[TAmmoStrId] of ansistring; // description appendix of the weapon (Lua only)
  2579     trluaammoa: array[TAmmoStrId] of ansistring; // description appendix of the weapon (Lua only)
       
  2580     trluaammoe: array[TAmmoStrId] of boolean;   // whether to render extra text (Lua overwrite)
  2580     trmsg:   array[TMsgStrId]  of ansistring;   // message of the event
  2581     trmsg:   array[TMsgStrId]  of ansistring;   // message of the event
  2581     trgoal:  array[TGoalStrId] of ansistring;   // message of the goal
  2582     trgoal:  array[TGoalStrId] of ansistring;   // message of the goal
  2582     cTestLua : Boolean;
  2583     cTestLua : Boolean;
  2583 
  2584 
  2584 procedure preInitModule;
  2585 procedure preInitModule;
  2642 
  2643 
  2643 procedure initModule;
  2644 procedure initModule;
  2644 var s: shortstring;
  2645 var s: shortstring;
  2645     i: integer;
  2646     i: integer;
  2646     t: TSound;
  2647     t: TSound;
       
  2648     a: TAmmoStrId;
  2647 begin
  2649 begin
  2648     // init LastVoice
  2650     // init LastVoice
  2649     LastVoice.snd:= sndNone;
  2651     LastVoice.snd:= sndNone;
  2650     LastVoice.voicepack:= nil;
  2652     LastVoice.voicepack:= nil;
  2651 
  2653 
  2906     LuaNoEndTurnTaunts:= false;
  2908     LuaNoEndTurnTaunts:= false;
  2907 
  2909 
  2908     for t:= Low(TSound) to High(TSound) do
  2910     for t:= Low(TSound) to High(TSound) do
  2909         MaskedSounds[t]:= false;
  2911         MaskedSounds[t]:= false;
  2910 
  2912 
       
  2913     for a:= Low(TAmmoStrId) to High(TAmmoStrId) do
       
  2914         trluaammoe[a]:= true;
       
  2915 
  2911     UIDisplay:= uiAll;
  2916     UIDisplay:= uiAll;
  2912     LocalMessage:= 0;
  2917     LocalMessage:= 0;
  2913 
  2918 
  2914     cStereoDepth:= 0;
  2919     cStereoDepth:= 0;
  2915     cViewLimitsDebug:= false;
  2920     cViewLimitsDebug:= false;