Ai
1 Star 0 Fork 0

phy0292/cheat-engine

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
CommentsUnit.pas 2.42 KB
一键复制 编辑 原始数据 按行查看 历史
Dark Byte 提交于 2020-12-17 23:02 +08:00 . some more fixes for dark mode
unit CommentsUnit;
{$MODE Delphi}
interface
uses
{$ifdef windows}
windows,
{$endif}
LCLIntf, Messages, SysUtils, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, ExtCtrls, LResources, ComCtrls, LuaHandler, CEFuncProc, betterControls;
type
{ TComments }
TComments = class(TForm)
Memo1: TMemo;
PageControl1: TPageControl;
Panel1: TPanel;
Button1: TButton;
tsComment: TTabSheet;
procedure btnExecuteScriptClick(Sender: TObject);
procedure Button1Click(Sender: TObject);
procedure FormCreate(Sender: TObject);
procedure FormDestroy(Sender: TObject);
procedure FormShow(Sender: TObject);
procedure mLuaScriptChange(Sender: TObject);
procedure Panel1Resize(Sender: TObject);
procedure FormClose(Sender: TObject; var Action: TCloseAction);
private
{ Private declarations }
{$ifdef windows}
procedure WMGetMinMaxInfo(var Message: TMessage); message WM_GETMINMAXINFO;
{$endif}
public
{ Public declarations }
end;
var
Comments: TComments;
implementation
uses MainUnit;
{$ifdef windows}
procedure TComments.WMGetMinMaxInfo(var Message: TMessage);
var MMInfo: ^MINMAXINFO;
begin //the constraint function of the form behaves weird when draging from the top or left side, so I have to do this myself.
MMInfo:=pointer(message.LParam);
MMInfo.ptMinTrackSize:=point(300,240);
end;
{$endif}
procedure TComments.Button1Click(Sender: TObject);
begin
close;
end;
procedure TComments.FormCreate(Sender: TObject);
begin
pagecontrol1.ActivePage:=tsComment;
LoadFormPosition(self);
end;
procedure TComments.FormDestroy(Sender: TObject);
begin
SaveFormPosition(self);
end;
procedure TComments.FormShow(Sender: TObject);
begin
memo1.font.height:=GetFontData(font.reference.Handle).Height;
memo1.font.color:=font.color;
end;
procedure TComments.mLuaScriptChange(Sender: TObject);
begin
end;
procedure TComments.btnExecuteScriptClick(Sender: TObject);
begin
end;
procedure TComments.Panel1Resize(Sender: TObject);
begin
end;
procedure TComments.FormClose(Sender: TObject; var Action: TCloseAction);
begin
if (memo1.Lines.Count>0) then
mainform.Commentbutton.font.style:=mainform.Commentbutton.font.style+[fsBold]
else
mainform.Commentbutton.font.style:=mainform.Commentbutton.font.style-[fsBold]
end;
initialization
{$i CommentsUnit.lrs}
end.
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/phy0292/cheat-engine.git
git@gitee.com:phy0292/cheat-engine.git
phy0292
cheat-engine
cheat-engine
master

搜索帮助