User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 12

Thread: iOS Dummy Control extension

  1. #1
    Clickteam Clickteam
    Anders's Avatar
    Join Date
    Jun 2006
    Location
    Denmark, Århus
    Posts
    3,458
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)

    iOS Dummy Control extension

    Hi everybody.

    Many people do not want to touch C++ to make the PC version of their objective-C extension for iOS.
    So here is a iOS Dummy Control extension where you simply fill out the JSON and change the icon file.
    Remember to name all the files exactly the same and change the extension identifier in the JSON.

    iOSDummyControl.zip
    You can resize it at edit-time where it will show the extension icon over a transparent grey background.
    It will always be on top to mimic a window control.

    I will try to write up a guide for non-clickers that work on iOS extensions soon.

  2. #2
    Clicker Fusion 2.5 DeveloperFusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleXNA Export Module
    DistantJ's Avatar
    Join Date
    Jan 2008
    Location
    Gloucester, UK
    Posts
    2,144
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Extremely helpful! Thank you, Andos!

  3. #3
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCiOS Export ModuleMac Export ModuleInstall Creator ProPatch Maker
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Oct 2012
    Posts
    370
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    What's the correct way to code an extension Action?

    In my iOS extension I have the method:
    Code:
    -(void)showAD:(CActExtension*)act
    {
    }
    But how to define it on .json?
    Code:
        "ActionMenu": [
            [
                0,
                "ShowAd"
            ],
    Is that enought so the extension knows what is the correct call? How should I also add properties for this method?

    Thanks

  4. #4
    Clicker Fusion 2.5 DeveloperFusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleXNA Export Module
    DistantJ's Avatar
    Join Date
    Jan 2008
    Location
    Gloucester, UK
    Posts
    2,144
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    iOS Dummy Control extension

    You give each action/expression/condition a number and the method takes a number as a parameter, you have to execute the appropriate code for the right action number. You should use the method -(void)actionint)num withActExtensionCActExtension *)act, then test for the "num" parameter as the same number as your action, for example in your case you want to execute the showad functionality if num == 0. "act" holds the parameters in a CActExtension object, which you can retrieve with [act getParamExpression:rh withNum:0]; where 0 is the number of your parameter.

  5. #5
    Clickteam Clickteam
    Anders's Avatar
    Join Date
    Jun 2006
    Location
    Denmark, Århus
    Posts
    3,458
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)
    There is a JSON creation guide here:
    https://github.com/ClickteamLLC/wind...ating-the-JSON

    I also started writing a guide for creating extensions (mainly for non-clickers but anyone can use it):
    http://www.andersriggelsen.dk/clickt...pmentGuide.rtf

  6. #6
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCiOS Export ModuleMac Export ModuleInstall Creator ProPatch Maker
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Oct 2012
    Posts
    370
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    Cool.. that helps!Hope that help others too..
    Thanks DistantJ and Andos

  7. #7
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleMac Export ModuleUnicode Add-on
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    AyreGuitar's Avatar
    Join Date
    Jan 2011
    Location
    Wales, UK
    Posts
    1,113
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Anders View Post
    There is a JSON creation guide here:
    https://github.com/ClickteamLLC/wind...ating-the-JSON

    I also started writing a guide for creating extensions (mainly for non-clickers but anyone can use it):
    http://www.andersriggelsen.dk/clickt...pmentGuide.rtf
    Hi Anders - nice guide for creating extensions, but still not complete! Any chance you could finish the 'Wrapping a UIView in the extension' or give me some pointers where to look? Thanks!

  8. #8
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleMac Export ModuleUnicode Add-on
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    AyreGuitar's Avatar
    Join Date
    Jan 2011
    Location
    Wales, UK
    Posts
    1,113
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Anders - trying the iOS Dummy Control extension and I've noticed that I can't see the parameters in MMF2 when I mouse over an action, e.g. an Active Picture will display something like New Picture: "test.jpg", but my extension using the Dummy extension and JSON file just shows New Picture. Am I doing something wrong or is this just a limitation of the Dummy Control extension?

  9. #9
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleMac Export ModuleUnicode Add-on
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    AyreGuitar's Avatar
    Join Date
    Jan 2011
    Location
    Wales, UK
    Posts
    1,113
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Anders - I may be mistaken, but it seems this can't be used for Conditions as it crashes the PC Runtime (unless they require 2 values, like your example) even if they work on a callback (using Triggered: true). Or perhaps I need to leave that condition and add a new one? I think I may have to get my hands dirty and do something on the PC side! Sorry for all the Qs

  10. #10
    Clickteam Clickteam
    Anders's Avatar
    Join Date
    Jun 2006
    Location
    Denmark, Århus
    Posts
    3,458
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)
    Hmm I might have to recompile the extension using the newest EDIF SDK.

Page 1 of 2 1 2 LastLast

Similar Threads

  1. How to use the joystick control extension?
    By Dobermann in forum XNA Export Module Version 2.0
    Replies: 9
    Last Post: 13th September 2011, 11:37 AM
  2. Window Control extension bug?
    By Bruto in forum File Archive
    Replies: 0
    Last Post: 22nd December 2009, 04:27 PM
  3. Stickman Dummy
    By seann33uk in forum File Archive
    Replies: 21
    Last Post: 1st March 2009, 11:38 PM
  4. Extension for IP Camera Control
    By droberson in forum Extension Development
    Replies: 3
    Last Post: 26th February 2009, 06:50 PM
  5. Control X Extension? Or alterternatives?
    By The_Alee in forum Extension Development
    Replies: 31
    Last Post: 28th August 2006, 02:21 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •