Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,7 @@
*.plist text eol=lf
*.java text eol=lf
CodeResources text eol=lf

# HelpNDoc and generated compressed help files
*.hnd binary
*.chm binary
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -204,3 +204,5 @@ DarkEdif*.sln
*.sdf
*.db
*.001
*.mf2backup.mfa
*.mfacfg
2 changes: 1 addition & 1 deletion AllExts VS2017.sln
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "BitMask", "MMF2SDK\Bit Mask
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "PackX", "MMF2SDK\PackX\PackX.vcxproj", "{29B44557-9BC0-43BC-BBF6-0AB4C9B69198}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "VOLINFO", "MMF2SDK\VOLINFO\VOLINFO.vcxproj", "{2196C17D-EDAC-43AD-AF88-1D7D6CBD9145}"
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "VOLINFO", "MMF2SDK_Unicode\VOLINFO\VOLINFO.vcxproj", "{2196C17D-EDAC-43AD-AF88-1D7D6CBD9145}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Stochastic Utility", "Edif\Stochastic Utility\Stochastic Utility.vcxproj", "{5BC0EA76-0F7D-4F52-ADC9-CE378742E9B9}"
EndProject
Expand Down
2 changes: 1 addition & 1 deletion AllExts VS2019.sln
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "BitMask", "MMF2SDK\Bit Mask
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "PackX", "MMF2SDK\PackX\PackX.vcxproj", "{29B44557-9BC0-43BC-BBF6-0AB4C9B69198}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "VOLINFO", "MMF2SDK\VOLINFO\VOLINFO.vcxproj", "{2196C17D-EDAC-43AD-AF88-1D7D6CBD9145}"
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "VOLINFO", "MMF2SDK_Unicode\VOLINFO\VOLINFO.vcxproj", "{2196C17D-EDAC-43AD-AF88-1D7D6CBD9145}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Stochastic Utility", "Edif\Stochastic Utility\Stochastic Utility.vcxproj", "{5BC0EA76-0F7D-4F52-ADC9-CE378742E9B9}"
EndProject
Expand Down
Binary file modified DarkEdif/- MFAs and documentation/DarkEdif SDK/DarkEdif SDK.hnd
Binary file not shown.
1 change: 1 addition & 0 deletions DarkEdif/DarkEdif Template/DarkEdif Template.iOS.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
<ClInclude Include="..\Inc\iOS\MMF2Lib\CRenderToTexture.h" />
<ClInclude Include="..\Inc\iOS\MMF2Lib\CRenderUtils.h" />
<ClInclude Include="..\Inc\iOS\MMF2Lib\CRSpr.h" />
<ClInclude Include="..\Inc\iOS\MMF2Lib\CRunFrame.h" />
<ClInclude Include="..\Inc\iOS\MMF2Lib\CShader.h" />
<ClInclude Include="..\Inc\iOS\MMF2Lib\CTexture.h" />
<ClInclude Include="..\Inc\iOS\MMFiOSMasterHeader.hpp" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,5 +123,8 @@
<ClInclude Include="..\Inc\iOS\MMF2Lib\CExtension.h">
<Filter>Global to all extensions</Filter>
</ClInclude>
<ClInclude Include="..\Inc\iOS\MMF2Lib\CRunFrame.h">
<Filter>Global to all extensions</Filter>
</ClInclude>
</ItemGroup>
</Project>
12 changes: 11 additions & 1 deletion DarkEdif/DarkEdif Template/DarkExt.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,11 @@
{
"Type": "FolderEnd"
},
{
"Title": "Props outside folder",
"Info": "This blue header is called a group inside the DarkExt.json file.",
"Type": "Group"
},
{
"Title": "Static text 1",
"Info": "Blank text",
Expand Down Expand Up @@ -139,7 +144,7 @@
"About": {
"Name": "Exemple objet",
"Author": "Votre Nom",
"Copyright": "Copyright \u00A9 2022 par Votre Nom",
"Copyright": "Copyright \u00A9 2026 par Votre Nom",
"Comment": "Une ou deux phrases pour décrire votre poste",
"Help": "Help/Example.chm",
"URL": "http://www.example.com/"
Expand Down Expand Up @@ -209,6 +214,11 @@
{
"Type": "FolderEnd"
},
{
"Title": "Groupe",
"Info": "Voir le fichier DarkExt.json.",
"Type": "Group"
},
{
"Title": "Texte statique 1",
"Info": "Texte vide",
Expand Down
4 changes: 4 additions & 0 deletions DarkEdif/DarkEdif Template/Edittime.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@ int FusionAPI MakeIconEx(mv * mV, cSurface * pIconSf, TCHAR * lpName, ObjInfo *
{
#pragma DllExportHint
pIconSf->Delete();
#ifdef DARKEDIF_MULTIPLE_ICONS
pIconSf->Clone(*Edif::SDK->Image);
#else
pIconSf->Clone(*Edif::SDK->Icon);
#endif

pIconSf->SetTransparentColor(RGB(255, 0, 255));
return 0;
Expand Down
3 changes: 3 additions & 0 deletions DarkEdif/DarkEdif Template/Ext.rc
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,9 @@ END

#if EditorBuild
IDR_EDIF_ICON Edif "Icon.png"
#ifdef DARKEDIF_MULTIPLE_ICONS
IDR_EDIF_IMAGE Edif "Image.png"
#endif
#if !defined(DARKEXT_JSON_FILE_EXTERNAL)
IDR_EDIF_JSON Edif "DarkExt.json"
#endif
Expand Down
Binary file added DarkEdif/DarkEdif Template/Image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions DarkEdif/DarkEdif Template/Resource.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
// Microsoft Developer Studio generated include file.
// Used by Ext.rc
//
#ifdef DARKEDIF_MULTIPLE_ICONS
#define IDR_EDIF_IMAGE 100
#endif
#define IDR_EDIF_ICON 101
#define IDR_EDIF_JSON 102

Expand Down
20 changes: 15 additions & 5 deletions DarkEdif/Inc/Android/MMFAndroidMasterHeader.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -637,35 +637,45 @@ struct CEventProgram {
global<jclass> meClass;
Edif::Runtime* runtime;
};
struct CRunFrame {
NO_DEFAULT_CTORS(CRunFrame);
struct CRunFrameMultiPlat {
NO_DEFAULT_CTORS(CRunFrameMultiPlat);

CEventProgram* get_eventProgram();
const TCHAR * get_name();

CRunFrameMultiPlat(jobject app, Edif::Runtime* runtime);
protected:
friend class Edif::Runtime;
friend struct RunHeader;
std::string frameName;

global<jobject> me;
global<jclass> meClass;
Edif::Runtime* runtime;
jobject me;
};


struct CRunAppMultiPlat {
NO_DEFAULT_CTORS(CRunAppMultiPlat);
int get_nCurrentFrame();
CRunFrame* get_Frame();
CRunFrameMultiPlat * get_Frame();
CRunAppMultiPlat * get_ParentApp();
std::size_t GetNumFusionFrames();
const TCHAR * get_name();
const TCHAR * get_appFileName();
const TCHAR * get_editorFileName();
const TCHAR * get_targetFileName();

CRunAppMultiPlat(jobject app, Edif::Runtime * runtime);
protected:
friend class Edif::Runtime;
friend struct RunHeader;
friend DarkEdif::Surface;
std::unique_ptr<CRunFrame> frame;
std::unique_ptr<CRunFrameMultiPlat> frame;
std::optional<int> nCurrentFrame;
std::size_t numTotalFrames = 0; // 0 if unset
std::uint16_t currentFrame = 0; // 0 if unset, 1+ if set
std::string appName; // Blank if unset
std::unique_ptr<CRunAppMultiPlat> parentApp;
bool parentAppIsNull = false;
global<jobject> me;
Expand Down
6 changes: 5 additions & 1 deletion DarkEdif/Inc/Mac/MMFMacMasterHeader.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -230,14 +230,18 @@ inline namespace FusionInternals
};

struct CRunFrameMultiPlat {

const TCHAR * get_name();
};
struct CRunAppMultiPlat {
NO_DEFAULT_CTORS(CRunAppMultiPlat);
int get_nCurrentFrame();
CRunFrameMultiPlat* get_Frame();
CRunAppMultiPlat* get_ParentApp();
std::size_t GetNumFusionFrames();
const TCHAR * get_name();
const TCHAR * get_appFileName();
const TCHAR * get_editorFileName();
const TCHAR * get_targetFileName();
};

struct RunHeader {
Expand Down
4 changes: 4 additions & 0 deletions DarkEdif/Inc/Shared/Edif.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,10 @@ namespace Edif
#if EditorBuild
cSurface * Icon = nullptr;
DarkEdif::Surface * ExtIcon = nullptr;
#ifdef DARKEDIF_MULTIPLE_ICONS
cSurface * Image = nullptr;
DarkEdif::Surface * ExtImage = nullptr;
#endif
std::unique_ptr<PropData[]> EdittimeProperties;

#ifndef NOPROPS
Expand Down
Loading