mirror of
https://github.com/moparisthebest/Simba
synced 2024-11-22 17:22:21 -05:00
The executable is now created in the "trunk", rather than Projects/SAMufasaGUI/.
Maybe fixed the colourpicker-black-screen bug.. not sure. git-svn-id: http://www.villavu.com/repositories/merlijn/mufasa@530 3f818213-9676-44b0-a9b4-5e4c4e03d09d
This commit is contained in:
parent
354ab2aab9
commit
54137b8b83
@ -39,7 +39,7 @@
|
|||||||
<PackageName Value="LCL"/>
|
<PackageName Value="LCL"/>
|
||||||
</Item2>
|
</Item2>
|
||||||
</RequiredPackages>
|
</RequiredPackages>
|
||||||
<Units Count="33">
|
<Units Count="34">
|
||||||
<Unit0>
|
<Unit0>
|
||||||
<Filename Value="project1.lpr"/>
|
<Filename Value="project1.lpr"/>
|
||||||
<IsPartOfProject Value="True"/>
|
<IsPartOfProject Value="True"/>
|
||||||
@ -224,12 +224,16 @@
|
|||||||
<IsPartOfProject Value="True"/>
|
<IsPartOfProject Value="True"/>
|
||||||
<UnitName Value="libloader"/>
|
<UnitName Value="libloader"/>
|
||||||
</Unit32>
|
</Unit32>
|
||||||
|
<Unit33>
|
||||||
|
<Filename Value="../../Units/MMLAddon/PSInc/Wrappers/tpa.inc"/>
|
||||||
|
<IsPartOfProject Value="True"/>
|
||||||
|
</Unit33>
|
||||||
</Units>
|
</Units>
|
||||||
</ProjectOptions>
|
</ProjectOptions>
|
||||||
<CompilerOptions>
|
<CompilerOptions>
|
||||||
<Version Value="8"/>
|
<Version Value="8"/>
|
||||||
<Target>
|
<Target>
|
||||||
<Filename Value="Simba"/>
|
<Filename Value="../../Simba"/>
|
||||||
</Target>
|
</Target>
|
||||||
<SearchPaths>
|
<SearchPaths>
|
||||||
<IncludeFiles Value="$(ProjOutDir)/;$(ProjPath)../../Units/MMLAddon/PSInc/"/>
|
<IncludeFiles Value="$(ProjOutDir)/;$(ProjPath)../../Units/MMLAddon/PSInc/"/>
|
||||||
@ -245,7 +249,6 @@
|
|||||||
<Linking>
|
<Linking>
|
||||||
<Debugging>
|
<Debugging>
|
||||||
<GenerateDebugInfo Value="True"/>
|
<GenerateDebugInfo Value="True"/>
|
||||||
<GenerateDwarf Value="True"/>
|
|
||||||
</Debugging>
|
</Debugging>
|
||||||
</Linking>
|
</Linking>
|
||||||
<Other>
|
<Other>
|
||||||
|
@ -43,7 +43,7 @@ uses
|
|||||||
ColorBox , about, framefunctionlist, ocr, updateform, simbasettings;
|
ColorBox , about, framefunctionlist, ocr, updateform, simbasettings;
|
||||||
|
|
||||||
const
|
const
|
||||||
SimbaVersion = 521;
|
SimbaVersion = 530;
|
||||||
|
|
||||||
type
|
type
|
||||||
|
|
||||||
@ -545,9 +545,9 @@ begin
|
|||||||
exit;
|
exit;
|
||||||
end;
|
end;
|
||||||
AppPath:= MainDir + DS;
|
AppPath:= MainDir + DS;
|
||||||
includePath:= LoadSettingDef('Settings/Includes/Path', IncludeTrailingPathDelimiter(ExpandFileName(MainDir+ DS + '..' + DS + '..' + ds)) + 'Includes' + DS);
|
includePath:= IncludeTrailingPathDelimiter(LoadSettingDef('Settings/Includes/Path', ExpandFileName(MainDir+DS+'Includes' + DS)));
|
||||||
fontPath := LoadSettingDef('Settings/Fonts/Path', IncludeTrailingPathDelimiter(ExpandFileName(MainDir+ DS + '..' + DS + '..' + ds)) + 'Fonts' + DS);
|
fontPath := IncludeTrailingPathDelimiter(LoadSettingDef('Settings/Fonts/Path', ExpandFileName(MainDir+DS+ 'Fonts' + DS)));
|
||||||
PluginsPath := LoadSettingDef('Settings/Plugins/Path', ExpandFileName(MainDir + DS + '..' + DS + '..'+ DS + 'Plugins'+ DS));
|
PluginsPath := IncludeTrailingPathDelimiter(LoadSettingDef('Settings/Plugins/Path', ExpandFileName(MainDir+ DS+ 'Plugins' + DS)));
|
||||||
ScriptErrorLine:= -1;
|
ScriptErrorLine:= -1;
|
||||||
CurrentSyncInfo.SyncMethod:= @Self.SafeCallThread;
|
CurrentSyncInfo.SyncMethod:= @Self.SafeCallThread;
|
||||||
UseCPascal := LoadSettingDef('Settings/Interpreter/UseCPascal', 'False');
|
UseCPascal := LoadSettingDef('Settings/Interpreter/UseCPascal', 'False');
|
||||||
|
@ -84,6 +84,11 @@ begin
|
|||||||
sAngle, eAngle, aStep, aFound);
|
sAngle, eAngle, aStep, aFound);
|
||||||
end; }
|
end; }
|
||||||
|
|
||||||
|
procedure ps_SetDTMName(DTM : integer; name : string);
|
||||||
|
begin
|
||||||
|
CurrThread.Client.MDTM.SetDTMName(DTM,name);
|
||||||
|
end;
|
||||||
|
|
||||||
function ps_DTMFromString(DTMString: String): Integer; extdecl;
|
function ps_DTMFromString(DTMString: String): Integer; extdecl;
|
||||||
var
|
var
|
||||||
dtm: pDTM;
|
dtm: pDTM;
|
||||||
|
@ -30,6 +30,7 @@ AddFunction(@ps_PrintpDTM, 'Procedure PrintpDTM(tDTM : pDTM);');
|
|||||||
AddFunction(@ps_GetDTM ,'function GetDTM(index: Integer; out dtm: pDTM): Boolean;');
|
AddFunction(@ps_GetDTM ,'function GetDTM(index: Integer; out dtm: pDTM): Boolean;');
|
||||||
AddFunction(@pDTMToTDTM, 'Function pDTMToTDTM(DTM: pDTM): TDTM;');
|
AddFunction(@pDTMToTDTM, 'Function pDTMToTDTM(DTM: pDTM): TDTM;');
|
||||||
AddFunction(@tDTMTopDTM, 'Function tDTMTopDTM(DTM: TDTM): pDTM;');
|
AddFunction(@tDTMTopDTM, 'Function tDTMTopDTM(DTM: TDTM): pDTM;');
|
||||||
|
AddFunction(@ps_SetDTMName, 'procedure SetDTMName(DTM : integer; name : string);');
|
||||||
AddFunction(@ps_DTMFromString, 'function DTMFromString(DTMString: String): Integer;');
|
AddFunction(@ps_DTMFromString, 'function DTMFromString(DTMString: String): Integer;');
|
||||||
AddFunction(@ps_FreeDTM, 'procedure FreeDTM(DTM: Integer);');
|
AddFunction(@ps_FreeDTM, 'procedure FreeDTM(DTM: Integer);');
|
||||||
AddFunction(@ps_FindDTM, 'function FindDTM(DTM: Integer; out x, y: Integer; x1, y1, x2, y2: Integer): Boolean;');
|
AddFunction(@ps_FindDTM, 'function FindDTM(DTM: Integer; out x, y: Integer; x1, y1, x2, y2: Integer): Boolean;');
|
||||||
|
@ -100,7 +100,7 @@ var
|
|||||||
w, h: integer;
|
w, h: integer;
|
||||||
SS : TShiftState;
|
SS : TShiftState;
|
||||||
p : TPoint;
|
p : TPoint;
|
||||||
|
bmp2 : Graphics.TBitmap;
|
||||||
bmp: TMufasaBitmap;
|
bmp: TMufasaBitmap;
|
||||||
Desktop : TIOManager;
|
Desktop : TIOManager;
|
||||||
|
|
||||||
@ -173,8 +173,9 @@ begin
|
|||||||
{ Copy the client to ImageMain }
|
{ Copy the client to ImageMain }
|
||||||
bmp:=TMufasaBitmap.Create;
|
bmp:=TMufasaBitmap.Create;
|
||||||
bmp.CopyClientToBitmap(Desktop, true, 0, 0, w-1, h-1);
|
bmp.CopyClientToBitmap(Desktop, true, 0, 0, w-1, h-1);
|
||||||
ImageMain.Picture.Bitmap.Free;
|
Bmp2 := Bmp.ToTBitmap;
|
||||||
ImageMain.Picture.Bitmap := bmp.ToTBitmap;
|
ImageMain.Picture.Assign(bmp2);
|
||||||
|
bmp2.free;
|
||||||
bmp.Free;
|
bmp.Free;
|
||||||
|
|
||||||
{ Set up handles and events }
|
{ Set up handles and events }
|
||||||
|
@ -112,9 +112,10 @@ begin
|
|||||||
if not b then
|
if not b then
|
||||||
begin;
|
begin;
|
||||||
if DTMList[i].n <> '' then
|
if DTMList[i].n <> '' then
|
||||||
Writeln(Format('DTM [%s] was not freed',[DTMList[i].n]))
|
Writeln(Format('DTM[%s] has not been freed in the script, freeing it now.',[DTMList[i].n]))
|
||||||
else
|
else
|
||||||
writeln(Format('DTM [%d] was not freed',[i]));
|
writeln(Format('DTM[%d] has not been freed in the script, freeing it now.',[i]));
|
||||||
|
FreeDTM(i);
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
SetLength(DTMList, 0);
|
SetLength(DTMList, 0);
|
||||||
@ -252,15 +253,13 @@ begin
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
function TMDTM.SetDTMName(DTM: Integer; s: string): boolean;
|
function TMDTM.SetDTMName(DTM: Integer; s: string): boolean;
|
||||||
var
|
|
||||||
dtm_: pDTM;
|
|
||||||
begin
|
begin
|
||||||
if(GetDTM(dtm, dtm_)) then
|
try
|
||||||
begin
|
DTMList[DTM].n:= s;
|
||||||
dtm_.n := s;
|
Exit(true);
|
||||||
Exit(True);
|
except
|
||||||
|
raise Exception.CreateFMT('SetDTMName: The given DTM %d does not exist.', [DTM]);
|
||||||
end;
|
end;
|
||||||
raise Exception.CreateFMT('SetDTMName: The given DTM %d does not exist.', [DTM]);
|
|
||||||
Exit(False);
|
Exit(False);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user