Changeset 460 for trunk/LocalPlayer/Select.pas
- Timestamp:
- Nov 28, 2023, 3:16:24 PM (12 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LocalPlayer/Select.pas
r457 r460 5 5 6 6 uses 7 Protocol, ClientTools, Term,ScreenTools, PVSB, BaseWin,7 Protocol, ClientTools, ScreenTools, PVSB, BaseWin, 8 8 LCLIntf, LCLType, Messages, SysUtils, Classes, Graphics, Controls, Forms, 9 9 ExtCtrls, ButtonB, ButtonBase, Menus, Types; … … 92 92 adAll = $10000; 93 93 94 var95 ListDlg: TListDlg;96 ModalSelectDlg: TModalSelectDlg;97 98 94 99 95 implementation 100 96 101 97 uses 102 CityScreen, Help, UnitStat, Tribes, Inp, CmdList;98 Term, CityScreen, Help, UnitStat, Tribes, Inp, CmdList; 103 99 104 100 {$R *.lfm} … … 871 867 Server(CommandWithData(cSetCityName, CityNameInfo.GetCommandDataSize), 872 868 Me, 0, CityNameInfo); 873 if CityDlg.Visible then869 if MainScreen.CityDlg.Visible then 874 870 begin 875 CityDlg.FormShow(nil);876 CityDlg.Invalidate;871 MainScreen.CityDlg.FormShow(nil); 872 MainScreen.CityDlg.Invalidate; 877 873 end; 878 874 Result := True; … … 900 896 Server(CommandWithData(cSetModelName, ModelNameInfo.GetCommandDataSize), 901 897 Me, 0, ModelNameInfo); 902 if UnitStatDlg.Visible then898 if MainScreen.UnitStatDlg.Visible then 903 899 begin 904 UnitStatDlg.FormShow(nil);905 UnitStatDlg.Invalidate;900 MainScreen.UnitStatDlg.FormShow(nil); 901 MainScreen.UnitStatDlg.Invalidate; 906 902 end; 907 903 Result := True; … … 941 937 kModels, kChooseModel: 942 938 if lix <> mixAll then 943 UnitStatDlg.ShowNewContent_OwnModel(wmPersistent, lix);939 MainScreen.UnitStatDlg.ShowNewContent_OwnModel(wmPersistent, lix); 944 940 kEModels: 945 UnitStatDlg.ShowNewContent_EnemyModel(wmPersistent,941 MainScreen.UnitStatDlg.ShowNewContent_EnemyModel(wmPersistent, 946 942 Code[1, ScrollBar.Position + Selected]); 947 943 kAllEModels, kChooseEModel: 948 944 if lix <> mixAll then 949 UnitStatDlg.ShowNewContent_EnemyModel(wmPersistent, lix);945 MainScreen.UnitStatDlg.ShowNewContent_EnemyModel(wmPersistent, lix); 950 946 kAdvance, kFarAdvance, kScience, kChooseTech, kChooseETech, kStealTech: 951 947 if lix = adMilitary then 952 HelpDlg.ShowNewContent(wmPersistent, hkText,953 HelpDlg.TextIndex('MILRES'))948 MainScreen.HelpDlg.ShowNewContent(wmPersistent, hkText, 949 MainScreen.HelpDlg.TextIndex('MILRES')) 954 950 else if lix < adMilitary then 955 HelpDlg.ShowNewContent(wmPersistent, hkAdv, lix);951 MainScreen.HelpDlg.ShowNewContent(wmPersistent, hkAdv, lix); 956 952 kProject: 957 953 if lix = cpImp + imTrGoods then 958 HelpDlg.ShowNewContent(wmPersistent, hkText,959 HelpDlg.TextIndex('TRADINGGOODS'))954 MainScreen.HelpDlg.ShowNewContent(wmPersistent, hkText, 955 MainScreen.HelpDlg.TextIndex('TRADINGGOODS')) 960 956 else if lix and (cpImp + cpType) = 0 then 961 UnitStatDlg.ShowNewContent_OwnModel(wmPersistent,957 MainScreen.UnitStatDlg.ShowNewContent_OwnModel(wmPersistent, 962 958 lix and cpIndex) 963 959 else if (lix and cpType = 0) and (lix <> cpImp + imTrGoods) then 964 HelpDlg.ShowNewContent(wmPersistent, hkImp,960 MainScreen.HelpDlg.ShowNewContent(wmPersistent, hkImp, 965 961 lix and cpIndex); 966 962 kGov: 967 HelpDlg.ShowNewContent(wmPersistent, hkMisc,963 MainScreen.HelpDlg.ShowNewContent(wmPersistent, hkMisc, 968 964 Integer(miscGovList)); 969 965 kShipPart, kEShipPart: … … 1887 1883 procedure TListDlg.RemoveUnit; 1888 1884 begin 1889 if ListDlg.Visible and (Kind = kModels) then1885 if Visible and (Kind = kModels) then 1890 1886 SmartUpdateContent; 1891 1887 end;
Note:
See TracChangeset
for help on using the changeset viewer.