Just a reminder: since you are going to be editing some javascript files here, if you ever update C2 or the CocoonJS plugin, you will have to make these same edits again (or end up suffering from issues/bugs).
Step 1: Navigate to the cocoonjs plugin folder (should be at --> C:\Program Files\Construct 2\exporters\html5\plugins\cocoonjsads)
Step 2: Make backup copies of both edittime.js and runtime.js.
Step 3: Open edittime.js and runtime.js (I use dreamweaver, but you can also use notepad).
Step 4: Follow the pictures below (the lines of code are in bold below the pics for an easy copy/paste).
[attachment=2:37xwugfw][/attachment:37xwugfw]
AddCondition(31, 0, "Is Signed In", "Social", "Is Signed In", "True if the user is currently logged into the Google Play.", "isSignedIn");
[attachment=1:37xwugfw][/attachment:37xwugfw]
this.isSignedIn = false;
Cnds.prototype.isSignedIn = function ()
{
if (this.socialServiceInterface.isLoggedIn())
return true;
else
return false;
};
self.runtime.trigger(cr.plugins_.CJSAds.prototype.cnds.isSignedIn, self);
[attachment=0:37xwugfw][/attachment:37xwugfw]
I hope this makes sense. You may have to make another copy of the 2 files onto your desktop and edit the files from there (in my case I cannot make edits directly from the cocoonjsads folder).