srenshaw's Forum Posts

  • I'm having to use 'Remote Preview' to test NWjs features for a file management app I'll be running from my own computer. Is there any way to show the debug inspector with remote preview (I rely on on it heavily when developing browser based projects)?

  • Hi Aekiro,

    I have a long list of clickable buttons in a scroll view. If I click and drag the list upwards, the item I click takes focus and is highlighted accordingly. When I release the item the focus colour still remains on. I then click another item on the list and drag upwards and the same thing happens. Eventually I have several buttons in the list showing their focused state instead of losing focus when I release them.

    The behaviour can be seen on the GridView in your example file. If you disable the 'On clicked' action and then scroll the list up and down by clicking and dragging different 'X' buttons, they remain in the focused state:

    Thanks,

    Steve.

  • Brilliant, thanks

  • Thanks for your reply , I'll try experimenting with the 'Viewport fit' option.

    Just for further info' on the 'Mobile Network' crash, I'm not using Android 10 - my test devices are:

    - Galaxy S6 phone (Android 7.0)

    - Tesco Hudl 2 tablet (Android 5.1)

    Thanks, Steve.

  • Hi Aekiro,

    I'm getting the following error in the browser console:

    Uncaught (in promise) TypeError: Cannot read property 'ContainsPoint' of null at aekiro_buttonInstance.isInsideScrollView (504afc9b-f51a-417f-a8cb-0cbe721cf437:1051) at aekiro_buttonInstance.isClickable (504afc9b-f51a-417f-a8cb-0cbe721cf437:1036) at aekiro_buttonInstance.OnMouseEnter (504afc9b-f51a-417f-a8cb-0cbe721cf437:822) at aekiro_buttonInstance.OnAnyInputMove (504afc9b-f51a-417f-a8cb-0cbe721cf437:756) at aekiro_buttonBehavior._OnInputMove (4e0264b4-9025-4c4b-8031-68a7ad825abf:50) at aekiro_buttonBehavior._OnPointerMove (4e0264b4-9025-4c4b-8031-68a7ad825abf:24) at Array.<anonymous> (4e0264b4-9025-4c4b-8031-68a7ad825abf:11) at a.Event.Handler._FireAndWaitAsyncSequential (handler.js:1) at a.Event.Dispatcher.dispatchEventAndWaitAsyncSequential (dispatcher.js:1) at C3.Runtime._OnEventFromDOM (runtime.js:1)

    I've created a stripped down version of my project in order to demonstrate the problem here:

    https://www.dropbox.com/s/m246j2g5beyyfvb/ProUI_Test02.c3p?dl=0

    The following steps trigger the error:

    - Click the Menu button and select 'Option 1'

    - Click the Back button

    - Click the Menu button and hover the mouse over any of the menu options

    Thanks,

    Steve.

  • Hi , I bought the Master Collection yesterday in order to simplify a few features of a mobile App I'm developing. However, I've run into a couple of issues:

    1. When I add the 'Mobile Network' object and export an APK, the App refuses to open on my Android devices (I've tried it on a phone and a tablet). I've created a simple C3 file with only the Mobile Network object and a text object in order to illustrate the problem:

    https://www.dropbox.com/s/7rv0b7o94zzdned/MobileNetwork.c3p?dl=0

    2. I'm using the 'Mobile Dialog' prompt to allow the user to input some text. When the prompt closes, the Android keyboard closes, as expected. However, the soft menu bar remains visible at the bottom of the screen, partially covering some of the buttons in my layout.

    Thanks, Steve.

  • Hi Aekiro, have you had chance to look at the bug mentioned above? Invisible grid items can also be clicked above the scolling list when you visit the layout for a second time (this can also be seen on your demo).

  • In the process of creating a minimal project I finally stumbled across the source of the problem. I was using a CSS stylesheet called 'style.css'. However it turns out that this is a reserved name in C3, so simply renaming the stylesheet fixed the problem.

    If you create a new css file in C3 and then try to name it 'style.css' you get a warning and you're prevented from changing the name. However, if you use 'import files', you can import 'style.css' without a warning - beware!

  • Hi Asmodean, I've tried it with and without Unbounded scrolling but it's still the same.

  • Thanks dop2000. I've tried all of the fullscreen scaling modes and the blue background is actually much larger than the 720x1280 viewport size (see below):

    Everything works as expected using Remote Preview, but I always get the strange margins top and left when I install the APK file.

  • Does anyone know why I'm getting unwanted margins top and left when I export an Android Debug APK? I've tried the APK on a couple of different devices and it's still the same (see below):

    There are no white borders when I do a browser preview and I've tried exporting simple test projects to the same phone and they appear without the borders. It must be a problem in my current project, but I'm not sure where to look.

    Thanks,

    Steve.

    Tagged:

  • Hi Aekiro,

    I've noticed a strange bug with the scrolling GridView. The first time you visit the layout everything works ok. However, if you leave the layout then return to it, you can actually click grid items that are not yet visible at the bottom of the list. This can be seen on your own demo - I've created a quick video to show what I mean:

    https://www.youtube.com/watch?v=SAy9PZzvRyc

    Steve.

  • I use a PHP file to get the data out of a mySQL database using the JSON_ENCODE function, for example:

    https://www.opentechguides.com/how-to/article/php/100/mysql-to-json.html

    Then I used the following tutorial to create the scrolling list of items with ProUI:

    https://www.youtube.com/watch?v=WvQsGNlp-4Y&t=324s

  • Hi Aekiro, I'm using Scroll View to display a very long list of over 400 clickable items (each item has the button behaviour attached). When I scroll the list using either touch or mouse clicks a button click is often registered, which then triggers an action and prevents scrolling through the rest of the list. Also, the scroll speed is fine using touch controls, but far too fast using the middle mouse button.

    1. Is it possible to detect whether the scroll list is moving so that I can disable button clicks whilst scrolling?

    2. Can I control the scroll speed when using the middle mouse button?

    Thanks,

    Steve.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Brilliant, thanks Aekiro.

    For anyone else reading this, I was also able to show the scrolling text in a pop-up Dialog box by adding the ProUI Game Object behaviours to the various elements, then setting the relevant Parent/Child names.