From 12990cee44efdae378ffbfb4d717ed8a1eafc6dc Mon Sep 17 00:00:00 2001 From: LaG1924 Date: Wed, 30 Jun 2021 18:08:59 +0500 Subject: Added Loading screen --- cwd/assets/altcraft/scripts/init.lua | 1 + cwd/assets/altcraft/ui/loading-styles.rcss | 9 +++++++++ cwd/assets/altcraft/ui/loading.rml | 11 +++++++++++ 3 files changed, 21 insertions(+) create mode 100644 cwd/assets/altcraft/ui/loading-styles.rcss create mode 100644 cwd/assets/altcraft/ui/loading.rml (limited to 'cwd') diff --git a/cwd/assets/altcraft/scripts/init.lua b/cwd/assets/altcraft/scripts/init.lua index 790bab0..ffd74b7 100644 --- a/cwd/assets/altcraft/scripts/init.lua +++ b/cwd/assets/altcraft/scripts/init.lua @@ -15,6 +15,7 @@ function plugin.onLoad () con:LoadDocument("altcraft/ui/hud") con:LoadDocument("altcraft/ui/pause") con:LoadDocument("altcraft/ui/options") + con:LoadDocument("altcraft/ui/loading") uiMainMenu:Show() AC.Settings.Load() diff --git a/cwd/assets/altcraft/ui/loading-styles.rcss b/cwd/assets/altcraft/ui/loading-styles.rcss new file mode 100644 index 0000000..b376fe8 --- /dev/null +++ b/cwd/assets/altcraft/ui/loading-styles.rcss @@ -0,0 +1,9 @@ +#body-loading { + background-color: #160f08; + color: white; +} + +#loading { + font-size: 20vh; + margin: 30% auto auto; +} diff --git a/cwd/assets/altcraft/ui/loading.rml b/cwd/assets/altcraft/ui/loading.rml new file mode 100644 index 0000000..2d84c37 --- /dev/null +++ b/cwd/assets/altcraft/ui/loading.rml @@ -0,0 +1,11 @@ + + + + + Loading + + + + Loading + + -- cgit v1.2.3