Giter VIP home page Giter VIP logo

Comments (4)

astrochili avatar astrochili commented on May 29, 2024

@potatojam Hi! Could you please help sort this out?

from awesome-defold.

astrochili avatar astrochili commented on May 29, 2024

@sergeysinyavsky Hi! Could you please help sort this out?

from awesome-defold.

sergeysinyavsky avatar sergeysinyavsky commented on May 29, 2024

@astrochili Hi! This extension adds a loading percentage and a spinning circle in the corner.
We use it in all our projects. I didn't complete it as an extension because I didn't make it flexible.
It may not work properly if you have some special template with your styles.
Looks like:
image

The circle will be hided when the game is loaded.
You can show it again and add text with percentages. We use this when load resources with liveupdate.

function init(self)
    if html_loader then
        html_loader.show()
        html_loader.set_text("Loading")

        self.percent = 0
        timer.delay(0.2, true, function(self, handle, time_elapsed)
            self.percent = self.percent + 1
            html_loader.set_progress(self.percent)
            if self.percent == 100 then
                timer.cancel(handle)
                html_loader.hide()
            end
        end)  
    end
end

from awesome-defold.

astrochili avatar astrochili commented on May 29, 2024

Thank you for such a detailed response! It turns out to be some kind of example that might be useful.

It also would be useful add this comment to yout README 🙏. Anyway would like to add a link to the list 👍

from awesome-defold.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.