@@ -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
4142PropData 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