Changeset 509 for trunk/LocalPlayer/MessgEx.pas
- Timestamp:
- Dec 26, 2023, 10:32:19 AM (11 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LocalPlayer/MessgEx.pas
r506 r509 82 82 var 83 83 I: Integer; 84 NewHeight: Integer; 84 85 begin 85 86 if IconKind = mikEnemyArmy then … … 151 152 152 153 SplitText(True); 153 Height := 72 + Border + TopSpace + Lines * MessageLineSpacing;154 NewHeight := 72 + Border + TopSpace + Lines * MessageLineSpacing; 154 155 if GameMode = cMovie then 155 Height :=Height - 32;156 NewHeight := NewHeight - 32; 156 157 if Kind = mkModel then 157 Height :=Height + 36;158 NewHeight := NewHeight + 36; 158 159 if IconKind in [mikMyArmy, mikEnemyArmy] then 159 160 begin 160 161 if nLostArmy > LostUnitsPerLine * 6 then 161 Height :=Height + 6 * 48162 NewHeight := NewHeight + 6 * 48 162 163 else 163 Height := Height + ((nLostArmy - 1) div LostUnitsPerLine 164 + 1) * 48; 165 end; 164 NewHeight := NewHeight + ((nLostArmy - 1) div LostUnitsPerLine + 1) * 48; 165 end; 166 Height := NewHeight; 167 166 168 case CenterTo of 167 169 0: … … 391 393 ImpImage(Canvas, Width div 2 - 28, 24, -7) 392 394 else 393 ImpImage(Canvas, Width div 2 - 28, 24, 24 + IconIndex) 395 ImpImage(Canvas, Width div 2 - 28, 24, 24 + IconIndex); 394 396 end; 395 397 mikModel: … … 412 414 Tribe[IconIndex].faceHGr.Data.Canvas, 413 415 1 + Tribe[IconIndex].facepix mod 10 * 65, 414 1 + Tribe[IconIndex].facepix div 10 * 49) 416 1 + Tribe[IconIndex].facepix div 10 * 49); 415 417 end; 416 418 mikPureIcon:
Note:
See TracChangeset
for help on using the changeset viewer.