Quick Links: Download Gideros Studio | Gideros Documentation | Gideros Development Center | Gideros community chat
New Gideros Docs/Wiki... - Page 7 - Gideros Forum

New Gideros Docs/Wiki...

123457»

Comments

  • MoKaLux said:
    Previously you could place your games on the Gideros website, http://giderosmobile.com/apps

    Is a page of developers who posted their games http://giderosmobile.com/profiles

    My page is there too =)
    http://giderosmobile.com/profiles/cob-mobile-apps-indie-developer-Український-розробник
    my games:
    https://play.google.com/store/apps/developer?id=razorback456
    мій блог по гідерос https://simartinfo.blogspot.com
    Слава Україні!
  • oleg this page has become something else than gideros developers page :)

    ps: the link to your web is broken
    my growING GIDEROS github repositories: https://github.com/mokalux?tab=repositories
  • olegoleg Member
    edited November 2020
    MoKaLux said:



    ps: the link to your web is broken

    Problem in your browser, everything works for me http://surl.li/hoet

    my games:
    https://play.google.com/store/apps/developer?id=razorback456
    мій блог по гідерос https://simartinfo.blogspot.com
    Слава Україні!
  • yes, it seems to be polluted beyond recognition.

    Likes: MoKaLux, oleg

    +1 -1 (+2 / -0 ) Share on Facebook
  • MoKaLuxMoKaLux Member
    edited December 2020
    what is this new Event? :)
    else if (type == GAPPLICATION_TEXT_INPUT_EVENT)

    https://github.com/gideros/gideros/blob/master/luabinding/luaapplication.cpp
    line 800

    As far as I understand it seems to be linked to setClipboard and getClipboard but that's it :/ How would one use this new Event please?

    PS: I have updated the wiki quite a bit, it's the last method missing in the application class (I think) :)
    my growING GIDEROS github repositories: https://github.com/mokalux?tab=repositories
  • hgy29hgy29 Maintainer
    It isn’t linked to clipboard, but to android text editing, used in conjunction with application:setTextInput() (https://github.com/gideros/gideros/blob/master/libgid/src/android/platform-android.cpp#L76) it allows to receive android text editor changes notifications.

    Likes: MoKaLux

    +1 -1 (+1 / -0 ) Share on Facebook
  • MoKaLuxMoKaLux Member
    edited December 2020
    Thank you hgy29.

    But I don't get it :/ it's not an event then?

    I can write:
    application:setTextInput(1, "hello")
    Have no clue what it does :p

    Nevermind I leave those for now, will check another day.

    EDIT: I think I get it :)
    local textInputDialog = TextInputDialog.new("title", "message", "some text", "Cancel", "OK")
    --textInputDialog:setText("hello")
    --application:setTextInput(1, "hello")
     
    local function onComplete(event)
    	print(event.text, event.buttonIndex, event.buttonText)
    	application:setTextInput(1, event.text) -- HERE IT IS
    end
    textInputDialog:addEventListener(Event.COMPLETE, onComplete)
    textInputDialog:show()
     
    local function testEvent(event)
    	print(event.text) -- AND IT IS NOW IN THE CLIPBOARD
    end
    stage:addEventListener(Event.TEXT_INPUT, testEvent) -- IT'S A STAGE EVENT!
    Correct?

    Tested on android WORKS
    Tested on desktop NOT WORKING so as stated above that's only for android devices.
    my growING GIDEROS github repositories: https://github.com/mokalux?tab=repositories
  • MoKaLuxMoKaLux Member
    edited December 2020
    Another test:
    local textInputDialog = TextInputDialog.new("title", "message", "some text", "Cancel", "OK")
     
    local function onComplete(event)
    	print(event.text, event.buttonIndex, event.buttonText)
    	application:setTextInput(2, event.text) -- I THINK I AM MISSING THE POINT HERE!
    end
    textInputDialog:addEventListener(Event.COMPLETE, onComplete)
    textInputDialog:show()
     
    local function testEvent(e)
    	print(e.type, e.text, e.selectionStart, e.selectionEnd)
    end
    stage:addEventListener(Event.TEXT_INPUT, testEvent) -- Event attached to stage? is it supposed to be real time?
    my growING GIDEROS github repositories: https://github.com/mokalux?tab=repositories
  • hgy29hgy29 Maintainer
    It is intended to create editable text fields in Gideros: you show the keyboard with application:setKeyboardVisibility(), you register Event.TEXT_INPUT events, and you set up the IME with a call to application:setTextInput(mode,"Initial text",initial selection start,initial selection end).

    mode is a bitfield indicating the kind of input expected (numerical, date, etc), android will select an appropriate keyboard depending on the mode. Accepted values are defined here: https://github.com/gideros/gideros/blob/master/luabinding/applicationbinder.cpp#L117, for example Application.TEXTINPUT_CLASS_PHONE if you want the user to enter a phone number.

    The TEXT_INPUT event sends you the whole modified text instead of individual key presses. It handles input suggestions/completion as well as microphone input. I plan to add similar functionality for iOS at some point

    Likes: MoKaLux

    +1 -1 (+1 / -0 ) Share on Facebook
  • thank you hgy29, I will need to test it on a device and then update the wiki.
    my growING GIDEROS github repositories: https://github.com/mokalux?tab=repositories
  • MoKaLuxMoKaLux Member
    edited December 2020
    wonderful I got it working thank you hgy29
    application:setKeyboardVisibility(true)
    application:setTextInput(application.TEXTINPUT_CLASS_NUMBER, "1234", 1, 4)
    local function tiEvent(e)
    	print(e.type, e.text, e.selectionStart, e.selectionEnd)
    end
    --application:addEventListener(Event.TEXT_INPUT, tiEvent)
    --Application:addEventListener(Event.TEXT_INPUT, tiEvent)
    stage:addEventListener(Event.TEXT_INPUT, tiEvent)
    When I add the event listener to application or Application I get this error message:
    wiki.lua.gideros_merged:571: attempt to call method 'addEventListener' (a nil value)
    stack traceback:
    	wiki.lua.gideros_merged:571: in main chunk
    When I add the event listener to stage it works as advertised ;)

    PS: gideros 2020.11.1

    Is this expected behavior?

    + is this correct?
    CONSTANT(0x10,"TEXTINPUT_TVARIANT_URI");
    CONSTANT(0x20,"TEXTINPUT_TVARIANT_EMAIL");
    CONSTANT(0x10,"TEXTINPUT_DVARIANT_DATE");
    CONSTANT(0x20,"TEXTINPUT_DVARIANT_TIME");
    CONSTANT(0x10,"TEXTINPUT_NVARIANT_PASSWORD");

    EDIT: wiki has been updated
    my growING GIDEROS github repositories: https://github.com/mokalux?tab=repositories
  • MoKaLuxMoKaLux Member
    edited December 2020
    I am trying to make the wiki as a pdf (can be epub, txt, openoffice, ms office, ...)
    Here is a first test. Tell me what you think :)

    Let's vote:
    +1 for
    -1 not for :)
    pdf
    pdf
    wiki_test.pdf
    2M
    my growING GIDEROS github repositories: https://github.com/mokalux?tab=repositories
  • MoKaLuxMoKaLux Member
    edited December 2020
    second test (still a couple of things to fix like the examples code and the '''...
    Votes are still open :)

    PS: I have to trim the content because the full thing is 2700 kb.
    pdf
    pdf
    wiki_test2_forum.pdf
    2M
    my growING GIDEROS github repositories: https://github.com/mokalux?tab=repositories
  • @MoKaLux to have it all in one giant file s basically the same as I am doing in my Gideros Visual Studio Code integration experiment, except I'm generating a large HTML file. It contains anchors so that inside VSC you can click the "sow documentation" link and it opens the document to the appropriate function.

    It seems that your experiment is doing pretty much the same thing as mine, which is fine, but it's just duplication I think.

    How is ours generated? Do you have to manually export a lot of stuff and then convert? Or are you programmatically getting the API Reference and then converting it into PDF format also programmatically?

    mines currently at http://cliffe.co.nz/apiref/gideros.html and I'm still working on the main Electron app that generates both it, and the lua docs required for VSC code completion stuff.
  • antix my goal was to be able to have an offline doc for gideros, that's all :)
    It takes me 2 mins to do it, anytime I want.
    Steps:
    1-wiki all classes page: https://wiki.gideros.rocks/index.php/All_Classes_and_more
    2-copy from top to bottom
    3-wiki special export pages: https://wiki.gideros.rocks/index.php/Special:Export
    4-paste
    5-click export

    Then I did a quick gideros app to transform the xml to html5. From it I can then export to anything txt, pdf, epub... either using libreoffice or ms office or ...
    Here is the source wanna have a look?
    zip
    zip
    wiki_to_html.zip
    28K
    my growING GIDEROS github repositories: https://github.com/mokalux?tab=repositories
  • @MoKaLux interesting. I wasn't aware you could just copy and paste that entire page into the other one :)

    This being the case it could be done programmatically using AJAX requests but I don;t think URLLoader supports that kind of operation in Gideros. In JavaScript for sure though ;)
Sign In or Register to comment.