Changeset 143 for trunk/Direct.pas
- Timestamp:
- May 8, 2018, 4:37:34 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Direct.pas
r112 r143 53 53 procedure TDirectDlg.DlgNotify(ID: integer); 54 54 var 55 hMem: Cardinal;56 p: pointer;55 // hMem: Cardinal; 56 // p: pointer; 57 57 s: string; 58 58 begin … … 71 71 begin 72 72 s := Format(Phrases.Lookup('BUSY_MOD'), 73 [Brain [ID - ntInitModule].Name]);73 [Brains[ID - ntInitModule].Name]); 74 74 while BiColorTextWidth(Canvas, s) + 64 > ClientWidth do 75 75 Delete(s, Length(s), 1); … … 98 98 ntDLLError .. ntDLLError + 128: 99 99 SimpleMessage(Format(Phrases.Lookup('DLLERROR'), 100 [Brain [ID - ntDLLError].FileName]));100 [Brains[ID - ntDLLError].FileName])); 101 101 ntAIError: 102 102 SimpleMessage(Format(Phrases.Lookup('AIERROR'), [NotifyMessage])); 103 103 ntClientError .. ntClientError + 128: 104 104 SimpleMessage(Format(Phrases.Lookup('CLIENTERROR'), 105 [Brain [ID - ntClientError].FileName]));105 [Brains[ID - ntClientError].FileName])); 106 106 ntEndInfo: 107 107 begin … … 157 157 begin 158 158 Info := Format(Phrases2.Lookup('BUSY_DEINIT'), 159 [Brain [ID - ntDeinitModule].Name]);159 [Brains[ID - ntDeinitModule].Name]); 160 160 while BiColorTextWidth(Canvas, Info) + 64 > ClientWidth do 161 161 Delete(Info, Length(Info), 1); … … 183 183 Info := ''; 184 184 GameServer.Init(Notify); 185 Brain [bixNoTerm].Client := NoTerm.Client;186 Brain [bixSuper_Virtual].Client := nil;187 Brain [bixTerm].Client := LocalPlayer.Client;188 Brain [bixNoTerm].Name := Phrases.Lookup('AIT');189 Brain [bixSuper_Virtual].Name := Phrases.Lookup('SUPER');190 Brain [bixTerm].Name := Phrases.Lookup('HUMAN');191 Brain [bixRandom].Name := Phrases.Lookup('RANDOMAI');185 BrainNoTerm.Client := NoTerm.Client; 186 BrainNoTerm.Name := Phrases.Lookup('AIT'); 187 BrainSuperVirtual.Client := nil; 188 BrainSuperVirtual.Name := Phrases.Lookup('SUPER'); 189 BrainTerm.Client := LocalPlayer.Client; 190 BrainTerm.Name := Phrases.Lookup('HUMAN'); 191 BrainRandom.Name := Phrases.Lookup('RANDOMAI'); 192 192 Canvas.Font.Assign(UniFont[ftNormal]); 193 193 Canvas.Brush.Style := bsClear; … … 214 214 begin 215 215 Hide; 216 if nBrain= 3 then216 if Brains.Count = 3 then 217 217 begin 218 218 Application.MessageBox(PChar(Phrases.Lookup('NOAI')), 'C-evo', 0); … … 268 268 begin 269 269 Application.MessageBox(PChar(Format(Phrases.Lookup('AIEXCEPTION'), 270 [Brain [Msg.WParam].Name])), 'C-evo', 0);270 [Brains[Msg.WParam].Name])), 'C-evo', 0); 271 271 end; 272 272
Note:
See TracChangeset
for help on using the changeset viewer.