Skip to content

Commit aec71c7

Browse files
committed
Add v1.0.0 files
1 parent 648e61a commit aec71c7

File tree

4 files changed

+8
-10
lines changed

4 files changed

+8
-10
lines changed

Edittime.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ int MMF2Func MakeIconEx(mv *mV, cSurface *Icon, LPTSTR Name, OI *oi, SerializedE
5959
#ifndef RUN_ONLY
6060
Icon->Delete();
6161
Icon->Clone(*SDK->Icon);
62-
Icon->SetTransparentColor(RGB(255, 0, 255));
6362
return 0;
6463
#endif
6564
return -1;

Extension.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class Extension
4141
* version of MMF2 to get access to some
4242
* new SDK feature.
4343
*/
44-
static const int MinimumBuild = 255;
44+
static const int MinimumBuild = 257;
4545

4646
/* Version
4747
* This is the version of your extension

Icon.png

-2.74 KB
Loading

Properties.cpp

+7-8
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ namespace Prop
3333
{
3434
zNOT_USED = PROPID_EXTITEM_CUSTOM_FIRST,
3535
Version,
36+
GitHub,
3637
//MyString,
3738
//MyInt,
3839
};
@@ -41,6 +42,7 @@ namespace Prop
4142
PropData Properties[] = //See the MMF2SDK help file for information on PropData_ macros.
4243
{
4344
PropData_StaticString(Prop::Version, (UINT_PTR)"Version #", (UINT_PTR)"This is the current version of the JSON Object."),
45+
PropData_URLButton(Prop::GitHub, (UINT_PTR)"GitHub Repo", (UINT_PTR)"The source code repository for this extension.", (UINT_PTR)"https://github.com/LB--/JSON-Object"),
4446
//PropData_EditMultiLine(Prop::MyString, (UINT_PTR)"My String", (UINT_PTR)"The contents of my string."),
4547
//PropData_EditNumber(Prop::MyInt, (UINT_PTR)"My Integer", (UINT_PTR)"The value of my integer."),
4648
PropData_End()
@@ -137,7 +139,7 @@ void *MMF2Func GetPropValue(mv *mV, SerializedED *SED, UINT PropID)
137139
{
138140
case Prop::Version:
139141
{
140-
return new CPropDataValue("Beta #2");
142+
return new CPropDataValue("Release v1.0.0");
141143
}
142144
//case Prop::MyString:
143145
// {
@@ -273,18 +275,15 @@ BOOL MMF2Func IsPropEnabled(mv *mV, SerializedED *SED, UINT PropID)
273275
{
274276
#ifndef RUN_ONLY
275277
//EditData ed (SED);
276-
switch(PropID)
277-
{
278-
case Prop::Version:
279-
{
280-
return FALSE; //Makes the version proeprty greyed out
281-
}
278+
// switch(PropID)
279+
// {
282280
//case Prop::MyString: //intentional\\
283281
//case Prop::MyInt: //fallthrough\\
284282
// {
285283
// return TRUE; //allows the user to interact with these proeprties
286284
// }
287-
}
285+
// }
286+
return TRUE;
288287
//if you changed ed:
289288
//ed.Serialize(mV, SED);
290289
#endif

0 commit comments

Comments
 (0)