Lua:Neutrino-API:hourglass:en

Aus TuxBoxWIKI
Version vom 1. November 2021, 16:34 Uhr von Dbt (Diskussion | Beiträge) (add hourglass)
(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)
Wechseln zu: Navigation, Suche

hourglass

Creates an animated loader to visualize a process.

hourglass.new{ }


Example:

-- shows a small animation on screen
local loader = hourglass.new { };
loader:paint();
-- do something ...

-- cleanup, remove loader from screen
h:hide()