Changeset 244 for branches/highdpi/Start.pas
- Timestamp:
- May 21, 2020, 6:42:45 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/highdpi/Start.pas
r212 r244 61 61 62 62 TStartDlg = class(TDrawDlg) 63 PopupMenu1: T PopupMenu;63 PopupMenu1: TDpiPopupMenu; 64 64 StartBtn: TButtonA; 65 65 Down1Btn: TButtonC; … … 1299 1299 if PlayerPopupIndex < 0 then 1300 1300 begin // change default AI 1301 BrainDefault := Brains[T MenuItem(Sender).Tag];1301 BrainDefault := Brains[TDpiMenuItem(Sender).Tag]; 1302 1302 SmartInvalidate(xDefault, yDefault, xDefault + 64, yDefault + 64); 1303 1303 end … … 1306 1306 if Assigned(PlayersBrain[PlayerPopupIndex]) then 1307 1307 PlayersBrain[PlayerPopupIndex].Flags := PlayersBrain[PlayerPopupIndex].Flags and not fUsed; 1308 if T MenuItem(Sender).Tag = -1 then begin1308 if TDpiMenuItem(Sender).Tag = -1 then begin 1309 1309 PlayersBrain[PlayerPopupIndex] := nil; 1310 1310 PlayerSlots[PlayerPopupIndex].DiffUpBtn.Visible := False; … … 1316 1316 MultiControl := MultiControl and not (1 shl PlayerPopupIndex); 1317 1317 end else begin 1318 PlayersBrain[PlayerPopupIndex] := Brains[T MenuItem(Sender).Tag];1318 PlayersBrain[PlayerPopupIndex] := Brains[TDpiMenuItem(Sender).Tag]; 1319 1319 PlayerSlots[PlayerPopupIndex].DiffUpBtn.Visible := PlayersBrain[PlayerPopupIndex].Kind in [btTerm, btRandom, btAI]; 1320 1320 PlayerSlots[PlayerPopupIndex].DiffDownBtn.Visible := PlayersBrain[PlayerPopupIndex].Kind in [btTerm, btRandom, btAI]; … … 1360 1360 var 1361 1361 J: Integer; 1362 MenuItem: T MenuItem;1363 begin 1364 MenuItem := T MenuItem.Create(PopupMenu1);1362 MenuItem: TDpiMenuItem; 1363 begin 1364 MenuItem := TDpiMenuItem.Create(PopupMenu1); 1365 1365 if not Assigned(Brain) then MenuItem.Caption := Phrases.Lookup('NOMOD') 1366 1366 else MenuItem.Caption := Brain.Name; … … 1381 1381 I: Integer; 1382 1382 FixedLines: integer; 1383 MenuItem: T MenuItem;1383 MenuItem: TDpiMenuItem; 1384 1384 AIBrains: TBrains; 1385 1385 begin … … 1411 1411 end; 1412 1412 if PlayerPopupIndex > 0 then begin 1413 MenuItem := T MenuItem.Create(PopupMenu1);1413 MenuItem := TDpiMenuItem.Create(PopupMenu1); 1414 1414 MenuItem.Caption := '-'; 1415 1415 PopupMenu1.Items.Add(MenuItem);
Note:
See TracChangeset
for help on using the changeset viewer.