Changeset 361 for branches/highdpi/LocalPlayer/Draft.pas
- Timestamp:
- Apr 9, 2021, 5:56:50 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/highdpi/LocalPlayer/Draft.pas
r349 r361 68 68 begin 69 69 inherited; 70 InitButtons ();70 InitButtons; 71 71 HelpContext := 'CLASSES'; 72 72 Caption := Phrases.Lookup('TITLE_DRAFT'); … … 183 183 Phrases.Lookup('UNITSPEED')); 184 184 DLine(offscreen.Canvas, xTotal - 2, xTotal + 174, y + 16, 185 MainTexture. clBevelShade, MainTexture.clBevelLight);185 MainTexture.ColorBevelShade, MainTexture.ColorBevelLight); 186 186 DLine(offscreen.Canvas, xTotal2 + 176, xTotal2 + 263, y + 16, 187 MainTexture. clBevelShade, MainTexture.clBevelLight);187 MainTexture.ColorBevelShade, MainTexture.ColorBevelLight); 188 188 s := MovementToString(MyRO.DevModel.Speed); 189 189 RisedTextOut(offscreen.Canvas, xTotal2 + 170 + 64 + 30 - … … 199 199 xTotal2 + 148 + 30, y, '='); 200 200 DLine(offscreen.Canvas, xTotal - 2, xTotal + 174, y + 16, 201 MainTexture. clBevelShade, MainTexture.clBevelLight);201 MainTexture.ColorBevelShade, MainTexture.ColorBevelLight); 202 202 DLine(offscreen.Canvas, xTotal2 + 176, xTotal2 + 263, y + 16, 203 MainTexture. clBevelShade, MainTexture.clBevelLight);203 MainTexture.ColorBevelShade, MainTexture.ColorBevelLight); 204 204 s := IntToStr(MyRO.DevModel.Cost); 205 205 RisedTextOut(offscreen.Canvas, xTotal2 + 170 + 64 + 30 - 12 - … … 216 216 xTotal2 + 148 + 30, y, '='); 217 217 DLine(offscreen.Canvas, xTotal - 2, xTotal + 174, y + 16, 218 MainTexture. clBevelShade, MainTexture.clBevelLight);218 MainTexture.ColorBevelShade, MainTexture.ColorBevelLight); 219 219 DLine(offscreen.Canvas, xTotal2 + 176, xTotal2 + 263, y + 16, 220 MainTexture. clBevelShade, MainTexture.clBevelLight);220 MainTexture.ColorBevelShade, MainTexture.ColorBevelLight); 221 221 s := IntToStr(MyRO.DevModel.Cost * BuildCostMod 222 222 [G.Difficulty[me]] div 12); … … 236 236 237 237 ClientHeight := Template.Height - Cut; 238 if ClientHeight > hMainTexturethen238 if ClientHeight > MainTexture.Height then 239 239 // assemble background from 2 texture tiles 240 240 begin 241 241 DpiBitCanvas(Back.Canvas, 0, 0, ClientWidth, 64, 242 MainTexture.Image.Canvas, ( wMainTexture- ClientWidth) div 2,243 hMainTexture- 64);242 MainTexture.Image.Canvas, (MainTexture.Width - ClientWidth) div 2, 243 MainTexture.Height - 64); 244 244 DpiBitCanvas(Back.Canvas, 0, 64, ClientWidth, ClientHeight - 64, 245 MainTexture.Image.Canvas, ( wMainTexture- ClientWidth) div 2,245 MainTexture.Image.Canvas, (MainTexture.Width - ClientWidth) div 2, 246 246 0); 247 247 end 248 248 else 249 249 DpiBitCanvas(Back.Canvas, 0, 0, ClientWidth, ClientHeight, 250 MainTexture.Image.Canvas, ( wMainTexture- ClientWidth) div 2,251 ( hMainTexture- ClientHeight) div 2);250 MainTexture.Image.Canvas, (MainTexture.Width - ClientWidth) div 2, 251 (MainTexture.Height - ClientHeight) div 2); 252 252 ImageOp_B(Back, Template, 0, 0, 0, 0, Template.Width, 64); 253 253 ImageOp_B(Back, Template, 0, 64, 0, 64 + Cut, Template.Width, … … 320 320 RFrame(offscreen.Canvas, xFeature - (21 + 1), 321 321 yFeature + 2 + LinePitch * i - 1, xFeature - (21 - 24), 322 yFeature + 2 + LinePitch * i + 12, MainTexture. clBevelShade,323 MainTexture. clBevelLight);322 yFeature + 2 + LinePitch * i + 12, MainTexture.ColorBevelShade, 323 MainTexture.ColorBevelLight); 324 324 end 325 325 else … … 329 329 RFrame(offscreen.Canvas, xFeature - (9 + 1), 330 330 yFeature + 2 + LinePitch * i - 1, xFeature - (21 - 24), 331 yFeature + 2 + LinePitch * i + 12, MainTexture. clBevelShade,332 MainTexture. clBevelLight);331 yFeature + 2 + LinePitch * i + 12, MainTexture.ColorBevelShade, 332 MainTexture.ColorBevelLight); 333 333 end; 334 334 … … 362 362 363 363 if MyRO.DevModel.Cap[code[i]] > 0 then 364 TextColor := MainTexture. clLitText364 TextColor := MainTexture.ColorLitText 365 365 else 366 366 TextColor := -1;
Note:
See TracChangeset
for help on using the changeset viewer.