Changeset 474 for trunk/LocalPlayer
- Timestamp:
- Dec 4, 2023, 7:18:18 PM (12 months ago)
- Location:
- trunk/LocalPlayer
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LocalPlayer/Help.pas
r471 r474 2044 2044 begin 2045 2045 InputDlg.Caption := Phrases.Lookup('SEARCH'); 2046 InputDlg.E Input.Text := SearchContent;2046 InputDlg.EditInput.Text := SearchContent; 2047 2047 InputDlg.CenterToRect(BoundsRect); 2048 2048 InputDlg.ShowModal; 2049 if (InputDlg.ModalResult = mrOK) and (Length(InputDlg.E Input.Text) >= 2) then2050 begin 2051 Search(InputDlg.E Input.Text);2049 if (InputDlg.ModalResult = mrOK) and (Length(InputDlg.EditInput.Text) >= 2) then 2050 begin 2051 Search(InputDlg.EditInput.Text); 2052 2052 case SearchResult.Count of 2053 2053 0: begin 2054 2054 Gtk2Fix; 2055 2055 SimpleMessage(Format(HelpText.Lookup('NOMATCHES'), 2056 [InputDlg.E Input.Text]));2056 [InputDlg.EditInput.Text])); 2057 2057 end; 2058 2058 1: … … 2060 2060 ShowNewContent(FWindowMode, Category, Index); 2061 2061 else begin 2062 NewSearchContent := InputDlg.E Input.Text;2062 NewSearchContent := InputDlg.EditInput.Text; 2063 2063 ShowNewContent(FWindowMode, hkMisc, Integer(miscSearchResult)); 2064 2064 end; -
trunk/LocalPlayer/Nego.pas
r471 r474 741 741 begin // choose amount 742 742 InputDlg.Caption := Phrases.Lookup('TITLE_AMOUNT'); 743 InputDlg.E Input.Text := '';743 InputDlg.EditInput.Text := ''; 744 744 InputDlg.CenterToRect(BoundsRect); 745 745 InputDlg.ShowModal; 746 746 if InputDlg.ModalResult <> mrOK then 747 747 Exit; 748 val(InputDlg.E Input.Text, A, I);748 val(InputDlg.EditInput.Text, A, I); 749 749 if (I <> 0) or (A <= 0) or (A >= MaxMoneyPrice) then 750 750 Exit; … … 771 771 Max := MyRO.Ship[DipMem[Me].pContact].Parts[MainScreen.ModalSelectDlg.Result]; 772 772 InputDlg.Caption := Phrases.Lookup('TITLE_NUMBER'); 773 InputDlg.E Input.Text := '';773 InputDlg.EditInput.Text := ''; 774 774 InputDlg.CenterToRect(BoundsRect); 775 775 InputDlg.ShowModal; 776 776 if InputDlg.ModalResult <> mrOK then 777 777 Exit; 778 val(InputDlg.E Input.Text, A, I);778 val(InputDlg.EditInput.Text, A, I); 779 779 if (I <> 0) or (A <= 0) then 780 780 Exit; … … 853 853 begin // choose amount 854 854 InputDlg.Caption := Phrases.Lookup('TITLE_AMOUNT'); 855 InputDlg.E Input.Text := '';855 InputDlg.EditInput.Text := ''; 856 856 InputDlg.CenterToRect(BoundsRect); 857 857 InputDlg.ShowModal; 858 858 if InputDlg.ModalResult <> mrOK then 859 859 Exit; 860 val(InputDlg.E Input.Text, A, I);860 val(InputDlg.EditInput.Text, A, I); 861 861 if (I <> 0) or (A <= 0) or (A >= MaxMoneyPrice) then 862 862 Exit; … … 873 873 Max := MyRO.Ship[Me].Parts[MainScreen.ModalSelectDlg.Result]; 874 874 InputDlg.Caption := Phrases.Lookup('TITLE_NUMBER'); 875 InputDlg.E Input.Text := '';875 InputDlg.EditInput.Text := ''; 876 876 InputDlg.CenterToRect(BoundsRect); 877 877 InputDlg.ShowModal; 878 878 if InputDlg.ModalResult <> mrOK then 879 879 Exit; 880 val(InputDlg.E Input.Text, A, I);880 val(InputDlg.EditInput.Text, A, I); 881 881 if (I <> 0) or (A <= 0) then 882 882 Exit; -
trunk/LocalPlayer/Select.pas
r473 r474 856 856 begin 857 857 InputDlg.Caption := Phrases.Lookup('TITLE_CITYNAME'); 858 InputDlg.E Input.Text := CityName(MyCity[cix].ID);858 InputDlg.EditInput.Text := CityName(MyCity[cix].ID); 859 859 InputDlg.CenterToRect(BoundsRect); 860 860 InputDlg.ShowModal; 861 if (InputDlg.ModalResult = mrOK) and (InputDlg.E Input.Text <> '') and862 (InputDlg.E Input.Text <> CityName(MyCity[cix].ID)) then861 if (InputDlg.ModalResult = mrOK) and (InputDlg.EditInput.Text <> '') and 862 (InputDlg.EditInput.Text <> CityName(MyCity[cix].ID)) then 863 863 begin 864 864 CityNameInfo.ID := MyCity[cix].ID; 865 CityNameInfo.NewName := InputDlg.E Input.Text;865 CityNameInfo.NewName := InputDlg.EditInput.Text; 866 866 if CityNameInfo.GetCommandDataSize > CommandDataMaxSize then 867 867 Delete(CityNameInfo.NewName, Length(CityNameInfo.NewName) - … … 885 885 begin 886 886 InputDlg.Caption := Phrases.Lookup('TITLE_MODELNAME'); 887 InputDlg.E Input.Text := Tribe[Me].ModelName[mix];887 InputDlg.EditInput.Text := Tribe[Me].ModelName[mix]; 888 888 InputDlg.CenterToRect(BoundsRect); 889 889 InputDlg.ShowModal; 890 if (InputDlg.ModalResult = mrOK) and (InputDlg.E Input.Text <> '') and891 (InputDlg.E Input.Text <> Tribe[Me].ModelName[mix]) then890 if (InputDlg.ModalResult = mrOK) and (InputDlg.EditInput.Text <> '') and 891 (InputDlg.EditInput.Text <> Tribe[Me].ModelName[mix]) then 892 892 begin 893 893 ModelNameInfo.mix := mix; 894 ModelNameInfo.NewName := InputDlg.E Input.Text;894 ModelNameInfo.NewName := InputDlg.EditInput.Text; 895 895 if ModelNameInfo.GetCommandDataSize > CommandDataMaxSize then 896 896 Delete(ModelNameInfo.NewName, Length(ModelNameInfo.NewName) -
Note:
See TracChangeset
for help on using the changeset viewer.