Ai
1 Star 0 Fork 0

phy0292/cheat-engine

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
asktorunluascript.pas 1.78 KB
一键复制 编辑 原始数据 按行查看 历史
Dark Byte 提交于 2020-12-11 06:39 +08:00 . dark mode support
unit askToRunLuaScript;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, FileUtil, SynEdit, Forms, Controls, Graphics, Dialogs,
StdCtrls, ExtCtrls, LuaSyntax, betterControls;
type
{ TfrmLuaScriptQuestion }
TfrmLuaScriptQuestion = class(TForm)
Button1: TButton;
Button2: TButton;
GroupBox5: TGroupBox;
Label16: TLabel;
Panel1: TPanel;
rbAlways: TRadioButton;
rbSignedOnly: TRadioButton;
rbAlwaysAsk: TRadioButton;
rbNever: TRadioButton;
script: TSynEdit;
procedure FormCreate(Sender: TObject);
procedure FormDestroy(Sender: TObject);
private
{ private declarations }
synhighlighter: TSynLuaSyn;
function getLuaScriptAction: integer;
procedure setLuaScriptAction(a: integer);
public
{ public declarations }
property LuaScriptAction: integer read getLuaScriptAction write setLuaScriptAction;
end;
implementation
{$R *.lfm}
{ TfrmLuaScriptQuestion }
function TfrmLuaScriptQuestion.getLuaScriptAction: integer;
begin
result:=0;
if rbAlways.checked then result:=0 else
if rbSignedOnly.checked then result:=1 else
if rbAlwaysAsk.checked then result:=2 else
if rbNever.checked then result:=3;
end;
procedure TfrmLuaScriptQuestion.setLuaScriptAction(a: integer);
begin
case a of
0: rbAlways.checked:=true;
1: rbSignedOnly.checked:=true;
2: rbAlwaysAsk.checked:=true;
3: rbNever.checked:=true;
end;
end;
procedure TfrmLuaScriptQuestion.FormCreate(Sender: TObject);
begin
synhighlighter:=TSynLuaSyn.Create(self);
script.Highlighter:=synhighlighter;
end;
procedure TfrmLuaScriptQuestion.FormDestroy(Sender: TObject);
begin
script.Highlighter:=nil;
if synhighlighter<>nil then
synhighlighter.free;
end;
end.
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/phy0292/cheat-engine.git
git@gitee.com:phy0292/cheat-engine.git
phy0292
cheat-engine
cheat-engine
master

搜索帮助