We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

shopwFPS Method, Styling

Home Forums Programming shopwFPS Method, Styling

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #43901
    jdhutchinson
    Customer

    Hi, How can I style the showFPS method? It has no class or id if i add it to the document through an exec script puzzle?

    #43910

    Hi,
    This method uses the stats.js library. You can modify the code of this library, then create your own Stats() class and place its instance under app.stats.

    Soft8Soft Tech Chief
    X | FB | LinkedIn

    #43932
    jdhutchinson
    Customer

    Dear Alexander,

    Thanks for explaining this. I copied the stats.js file and amended the below line as needed.

    container.style.cssText

    place its instance under app.stats.

    would you be able to explain this? Would this be best done in an exec script puzzle to overwrite, or visuallogic.js, or “awesomeproject”.js? Same with instancing the class – which file does this need to be done in, and also a script tag I guess?

    Or, in the prepareExternalInterface area of “awesomeapp”.html? :scratch:

    I tried following:
    threejs cookbook to no avail. The js file structure is different in their simpler example, so I’m not sure how to approach.

    Does showFPS not have any callable methods?

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.