@@ -33,6 +33,7 @@ namespace Prop
33
33
{
34
34
zNOT_USED = PROPID_EXTITEM_CUSTOM_FIRST,
35
35
Version,
36
+ GitHub,
36
37
// MyString,
37
38
// MyInt,
38
39
};
@@ -41,6 +42,7 @@ namespace Prop
41
42
PropData Properties[] = // See the MMF2SDK help file for information on PropData_ macros.
42
43
{
43
44
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" ),
44
46
// PropData_EditMultiLine(Prop::MyString, (UINT_PTR)"My String", (UINT_PTR)"The contents of my string."),
45
47
// PropData_EditNumber(Prop::MyInt, (UINT_PTR)"My Integer", (UINT_PTR)"The value of my integer."),
46
48
PropData_End ()
@@ -137,7 +139,7 @@ void *MMF2Func GetPropValue(mv *mV, SerializedED *SED, UINT PropID)
137
139
{
138
140
case Prop::Version:
139
141
{
140
- return new CPropDataValue (" Beta #2 " );
142
+ return new CPropDataValue (" Release v1.0.0 " );
141
143
}
142
144
// case Prop::MyString:
143
145
// {
@@ -273,18 +275,15 @@ BOOL MMF2Func IsPropEnabled(mv *mV, SerializedED *SED, UINT PropID)
273
275
{
274
276
#ifndef RUN_ONLY
275
277
// 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
+ // {
282
280
// case Prop::MyString: //intentional\\
283
281
//case Prop::MyInt: //fallthrough\\
284
282
// {
285
283
// return TRUE; //allows the user to interact with these proeprties
286
284
// }
287
- }
285
+ // }
286
+ return TRUE ;
288
287
// if you changed ed:
289
288
// ed.Serialize(mV, SED);
290
289
#endif
0 commit comments