mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-25 06:15:37 +03:00
fixed 2nd bug at48369
This commit is contained in:
parent
0c345ceebc
commit
34f127b9aa
Binary file not shown.
@ -7375,8 +7375,8 @@ object frmHudMsgGenerator: TfrmHudMsgGenerator
|
|||||||
ColorHighLight = 8623776
|
ColorHighLight = 8623776
|
||||||
ColorShadow = 8623776
|
ColorShadow = 8623776
|
||||||
Caption = 'Generate'
|
Caption = 'Generate'
|
||||||
ModalResult = 1
|
|
||||||
TabOrder = 4
|
TabOrder = 4
|
||||||
|
ModalResult = 1
|
||||||
end
|
end
|
||||||
object cmdCancel: TFlatButton
|
object cmdCancel: TFlatButton
|
||||||
Left = 334
|
Left = 334
|
||||||
@ -7388,8 +7388,8 @@ object frmHudMsgGenerator: TfrmHudMsgGenerator
|
|||||||
ColorHighLight = 8623776
|
ColorHighLight = 8623776
|
||||||
ColorShadow = 8623776
|
ColorShadow = 8623776
|
||||||
Caption = 'Cancel'
|
Caption = 'Cancel'
|
||||||
ModalResult = 2
|
|
||||||
TabOrder = 5
|
TabOrder = 5
|
||||||
|
ModalResult = 2
|
||||||
end
|
end
|
||||||
object pnlText: TPanel
|
object pnlText: TPanel
|
||||||
Left = 6
|
Left = 6
|
||||||
@ -7430,7 +7430,7 @@ object frmHudMsgGenerator: TfrmHudMsgGenerator
|
|||||||
ColorFlat = clWhite
|
ColorFlat = clWhite
|
||||||
TabOrder = 1
|
TabOrder = 1
|
||||||
Text = '12,0'
|
Text = '12,0'
|
||||||
OnChange = txtTimeToShowChange
|
OnExit = txtTimeToShowExit
|
||||||
OnKeyPress = txtTimeToShowKeyPress
|
OnKeyPress = txtTimeToShowKeyPress
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -47,10 +47,10 @@ type
|
|||||||
procedure cmdSelectColorClick(Sender: TObject);
|
procedure cmdSelectColorClick(Sender: TObject);
|
||||||
procedure txtTextChange(Sender: TObject);
|
procedure txtTextChange(Sender: TObject);
|
||||||
procedure txtTimeToShowKeyPress(Sender: TObject; var Key: Char);
|
procedure txtTimeToShowKeyPress(Sender: TObject; var Key: Char);
|
||||||
procedure txtTimeToShowChange(Sender: TObject);
|
|
||||||
procedure chkXCenterClick(Sender: TObject);
|
procedure chkXCenterClick(Sender: TObject);
|
||||||
procedure chkYCenterClick(Sender: TObject);
|
procedure chkYCenterClick(Sender: TObject);
|
||||||
procedure txtPosExit(Sender: TObject);
|
procedure txtPosExit(Sender: TObject);
|
||||||
|
procedure txtTimeToShowExit(Sender: TObject);
|
||||||
private
|
private
|
||||||
eDown: Boolean;
|
eDown: Boolean;
|
||||||
eStartPos: TPoint;
|
eStartPos: TPoint;
|
||||||
@ -210,20 +210,6 @@ begin
|
|||||||
Key := ',';
|
Key := ',';
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TfrmHudMsgGenerator.txtTimeToShowChange(Sender: TObject);
|
|
||||||
var eVal: Real;
|
|
||||||
begin
|
|
||||||
try
|
|
||||||
eVal := Round(StrToFloat(txtTimeToShow.Text));
|
|
||||||
if eVal < 0 then begin
|
|
||||||
eVal := 0.0;
|
|
||||||
txtTimeToShow.Text := FloatToStr(eVal);
|
|
||||||
end;
|
|
||||||
except
|
|
||||||
txtTimeToShow.Text := '12,0';
|
|
||||||
end;
|
|
||||||
end;
|
|
||||||
|
|
||||||
procedure TfrmHudMsgGenerator.chkXCenterClick(Sender: TObject);
|
procedure TfrmHudMsgGenerator.chkXCenterClick(Sender: TObject);
|
||||||
var eChar: Char;
|
var eChar: Char;
|
||||||
begin
|
begin
|
||||||
@ -276,4 +262,18 @@ begin
|
|||||||
txtYPos.OnKeyPress(txtXPos, eChar);
|
txtYPos.OnKeyPress(txtXPos, eChar);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
procedure TfrmHudMsgGenerator.txtTimeToShowExit(Sender: TObject);
|
||||||
|
var eVal: Real;
|
||||||
|
begin
|
||||||
|
try
|
||||||
|
eVal := Round(StrToFloat(txtTimeToShow.Text));
|
||||||
|
if eVal < 0 then begin
|
||||||
|
eVal := 0.0;
|
||||||
|
txtTimeToShow.Text := '0,0';
|
||||||
|
end;
|
||||||
|
except
|
||||||
|
txtTimeToShow.Text := '12,0';
|
||||||
|
end;
|
||||||
|
end;
|
||||||
|
|
||||||
end.
|
end.
|
||||||
|
@ -1706,6 +1706,7 @@ procedure TfrmMain.mnuHudmessageClick(Sender: TObject);
|
|||||||
function Dot(eIn: string): string;
|
function Dot(eIn: string): string;
|
||||||
begin
|
begin
|
||||||
Result := StringReplace(eIn, ',', '.', [rfReplaceAll]);
|
Result := StringReplace(eIn, ',', '.', [rfReplaceAll]);
|
||||||
|
Result := StringReplace(eIn, '.00', '.0', [rfReplaceAll]);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
var eStr: string;
|
var eStr: string;
|
||||||
|
Loading…
Reference in New Issue
Block a user