mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-12-22 14:37:29 +08:00
[exgui] Implement ServerProperties procedures
This commit is contained in:
parent
b29fb68ec6
commit
42ea994e41
Binary file not shown.
@ -4,7 +4,7 @@ interface
|
|||||||
|
|
||||||
uses
|
uses
|
||||||
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
|
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
|
||||||
Dialogs, Menus, StdCtrls;
|
Dialogs, StdCtrls, Menus;
|
||||||
|
|
||||||
type
|
type
|
||||||
TfmServerProperties = class(TForm)
|
TfmServerProperties = class(TForm)
|
||||||
@ -44,31 +44,44 @@ var
|
|||||||
|
|
||||||
implementation
|
implementation
|
||||||
|
|
||||||
|
uses Main;
|
||||||
|
|
||||||
{$R *.dfm}
|
{$R *.dfm}
|
||||||
|
|
||||||
procedure TfmServerProperties.bnSaveClick(Sender: TObject);
|
procedure TfmServerProperties.bnSaveClick(Sender: TObject);
|
||||||
|
var
|
||||||
|
Idx: Integer;
|
||||||
begin
|
begin
|
||||||
// TODO: TfmServerProperties.bnSaveClick
|
Idx:= StrToInt(fmMain.lbServers.Items.Strings[fmMain.lbServers.ItemIndex]);
|
||||||
|
Servers[Idx].ServerPassword:= edServerPassword.Text;
|
||||||
|
Servers[Idx].RconPassword:= edRconPassword.Text;
|
||||||
|
Close;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TfmServerProperties.bnCancelClick(Sender: TObject);
|
procedure TfmServerProperties.bnCancelClick(Sender: TObject);
|
||||||
begin
|
begin
|
||||||
// TODO: TfmServerProperties.bnCancelClick
|
Close;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TfmServerProperties.bnConnectClick(Sender: TObject);
|
procedure TfmServerProperties.bnConnectClick(Sender: TObject);
|
||||||
|
var
|
||||||
|
Idx: Integer;
|
||||||
begin
|
begin
|
||||||
// TODO: TfmServerProperties.bnConnectClick
|
Idx:= StrToInt(fmMain.lbServers.Items.Strings[fmMain.lbServers.ItemIndex]);
|
||||||
|
Servers[Idx].ServerPassword:= edServerPassword.Text;
|
||||||
|
Servers[Idx].RconPassword:= edRconPassword.Text;
|
||||||
|
fmMain.ConnectClick(fmMain);
|
||||||
|
Close;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TfmServerProperties.pmCopyPopup(Sender: TObject);
|
procedure TfmServerProperties.pmCopyPopup(Sender: TObject);
|
||||||
begin
|
begin
|
||||||
// TODO: TfmServerProperties.pmCopyPopup
|
piCopy.Enabled:= edAddress.Text <> '- - -';
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TfmServerProperties.piCopyClick(Sender: TObject);
|
procedure TfmServerProperties.piCopyClick(Sender: TObject);
|
||||||
begin
|
begin
|
||||||
// TODO: TfmServerProperties.piCopyClick
|
fmMain.SetClipBoardStr(edAddress.Text);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
end.
|
end.
|
||||||
|
Loading…
Reference in New Issue
Block a user