From d5f03a5d3880256a0cfd92d0dbb1ca8f94e8c528 Mon Sep 17 00:00:00 2001 From: nextdaydelivery <79922345+nxtdaydelivery@users.noreply.github.com> Date: Mon, 2 May 2022 10:19:08 +0100 Subject: images loading changes, directory structure and cleanup of rendering and general code --- src/main/resources/assets/oneconfig/icons/TestIcon.svg | 0 .../resources/assets/oneconfig/textures/Dashboard.png | Bin 405 -> 0 bytes src/main/resources/assets/oneconfig/textures/HUD.png | Bin 379 -> 0 bytes .../assets/oneconfig/textures/HUDSettings.png | Bin 399 -> 0 bytes src/main/resources/assets/oneconfig/textures/Image.png | Bin 369 -> 0 bytes .../resources/assets/oneconfig/textures/Minimise.png | Bin 302 -> 0 bytes src/main/resources/assets/oneconfig/textures/Mods.png | Bin 285 -> 0 bytes .../assets/oneconfig/textures/Performance.png | Bin 381 -> 0 bytes .../resources/assets/oneconfig/textures/Profiles.png | Bin 437 -> 0 bytes .../resources/assets/oneconfig/textures/Settings.png | Bin 425 -> 0 bytes src/main/resources/assets/oneconfig/textures/Theme.png | Bin 304 -> 0 bytes .../resources/assets/oneconfig/textures/Update.png | Bin 343 -> 0 bytes .../resources/assets/oneconfig/textures/XCircle.png | Bin 383 -> 0 bytes src/main/resources/assets/oneconfig/textures/arrow.png | Bin 190 -> 0 bytes src/main/resources/assets/oneconfig/textures/box.png | Bin 1472 -> 0 bytes src/main/resources/assets/oneconfig/textures/check.png | Bin 1714 -> 0 bytes .../assets/oneconfig/textures/colorspectrum.png | Bin 39089 -> 0 bytes .../resources/assets/oneconfig/textures/colorwheel.png | Bin 193805 -> 0 bytes .../assets/oneconfig/textures/dropdown_arrow.png | Bin 164 -> 0 bytes src/main/resources/assets/oneconfig/textures/eye.png | Bin 338 -> 0 bytes .../oneconfig/textures/gui/general/arrows/chevron.png | Bin 0 -> 190 bytes .../textures/gui/general/arrows/dropdown_arrow.png | Bin 0 -> 164 bytes .../oneconfig/textures/gui/general/arrows/up_arrow.png | Bin 0 -> 162 bytes .../textures/gui/general/color/colorspectrum.png | Bin 0 -> 39089 bytes .../textures/gui/general/color/colorwheel.png | Bin 0 -> 193805 bytes .../textures/gui/general/color/huegradient.png | Bin 0 -> 3290 bytes .../textures/gui/general/configs/checkmark.png | Bin 0 -> 1714 bytes .../textures/gui/general/configs/favorite_active.png | Bin 0 -> 323 bytes .../textures/gui/general/configs/favorite_inactive.png | Bin 0 -> 426 bytes .../textures/gui/general/configs/hide_eye.png | Bin 0 -> 338 bytes .../assets/oneconfig/textures/gui/general/logo.png | Bin 0 -> 1819 bytes .../oneconfig/textures/gui/general/nav/close.png | Bin 0 -> 383 bytes .../oneconfig/textures/gui/general/nav/launch.png | Bin 0 -> 430 bytes .../oneconfig/textures/gui/general/nav/minimize.png | Bin 0 -> 302 bytes .../oneconfig/textures/gui/general/nav/search.png | Bin 0 -> 555 bytes .../oneconfig/textures/gui/general/nav/share.png | Bin 0 -> 480 bytes .../assets/oneconfig/textures/gui/icons/dashboard.png | Bin 0 -> 405 bytes .../assets/oneconfig/textures/gui/icons/hud/hud.png | Bin 0 -> 379 bytes .../oneconfig/textures/gui/icons/hud/settings.png | Bin 0 -> 399 bytes .../oneconfig/textures/gui/icons/mod/mod_box.png | Bin 0 -> 1472 bytes .../assets/oneconfig/textures/gui/icons/mod/mods.png | Bin 0 -> 285 bytes .../oneconfig/textures/gui/icons/mod/performance.png | Bin 0 -> 381 bytes .../oneconfig/textures/gui/icons/preferences.png | Bin 0 -> 425 bytes .../assets/oneconfig/textures/gui/icons/profiles.png | Bin 0 -> 437 bytes .../assets/oneconfig/textures/gui/icons/screenshot.png | Bin 0 -> 369 bytes .../assets/oneconfig/textures/gui/icons/themes.png | Bin 0 -> 304 bytes .../assets/oneconfig/textures/gui/icons/updates.png | Bin 0 -> 343 bytes .../assets/oneconfig/textures/hudsettings.png | Bin 7226 -> 0 bytes .../assets/oneconfig/textures/huegradient.png | Bin 3290 -> 0 bytes src/main/resources/assets/oneconfig/textures/icon.png | Bin 1819 -> 0 bytes src/main/resources/assets/oneconfig/textures/love.png | Bin 323 -> 0 bytes .../resources/assets/oneconfig/textures/love_empty.png | Bin 426 -> 0 bytes .../resources/assets/oneconfig/textures/search.png | Bin 555 -> 0 bytes src/main/resources/assets/oneconfig/textures/share.png | Bin 480 -> 0 bytes .../resources/assets/oneconfig/textures/share2.png | Bin 430 -> 0 bytes .../assets/oneconfig/textures/smallUpArrow.png | Bin 162 -> 0 bytes 56 files changed, 0 insertions(+), 0 deletions(-) delete mode 100644 src/main/resources/assets/oneconfig/icons/TestIcon.svg delete mode 100644 src/main/resources/assets/oneconfig/textures/Dashboard.png delete mode 100644 src/main/resources/assets/oneconfig/textures/HUD.png delete mode 100644 src/main/resources/assets/oneconfig/textures/HUDSettings.png delete mode 100644 src/main/resources/assets/oneconfig/textures/Image.png delete mode 100644 src/main/resources/assets/oneconfig/textures/Minimise.png delete mode 100644 src/main/resources/assets/oneconfig/textures/Mods.png delete mode 100644 src/main/resources/assets/oneconfig/textures/Performance.png delete mode 100644 src/main/resources/assets/oneconfig/textures/Profiles.png delete mode 100644 src/main/resources/assets/oneconfig/textures/Settings.png delete mode 100644 src/main/resources/assets/oneconfig/textures/Theme.png delete mode 100644 src/main/resources/assets/oneconfig/textures/Update.png delete mode 100644 src/main/resources/assets/oneconfig/textures/XCircle.png delete mode 100644 src/main/resources/assets/oneconfig/textures/arrow.png delete mode 100644 src/main/resources/assets/oneconfig/textures/box.png delete mode 100644 src/main/resources/assets/oneconfig/textures/check.png delete mode 100644 src/main/resources/assets/oneconfig/textures/colorspectrum.png delete mode 100644 src/main/resources/assets/oneconfig/textures/colorwheel.png delete mode 100644 src/main/resources/assets/oneconfig/textures/dropdown_arrow.png delete mode 100644 src/main/resources/assets/oneconfig/textures/eye.png create mode 100644 src/main/resources/assets/oneconfig/textures/gui/general/arrows/chevron.png create mode 100644 src/main/resources/assets/oneconfig/textures/gui/general/arrows/dropdown_arrow.png create mode 100644 src/main/resources/assets/oneconfig/textures/gui/general/arrows/up_arrow.png create mode 100644 src/main/resources/assets/oneconfig/textures/gui/general/color/colorspectrum.png create mode 100644 src/main/resources/assets/oneconfig/textures/gui/general/color/colorwheel.png create mode 100644 src/main/resources/assets/oneconfig/textures/gui/general/color/huegradient.png create mode 100644 src/main/resources/assets/oneconfig/textures/gui/general/configs/checkmark.png create mode 100644 src/main/resources/assets/oneconfig/textures/gui/general/configs/favorite_active.png create mode 100644 src/main/resources/assets/oneconfig/textures/gui/general/configs/favorite_inactive.png create mode 100644 src/main/resources/assets/oneconfig/textures/gui/general/configs/hide_eye.png create mode 100644 src/main/resources/assets/oneconfig/textures/gui/general/logo.png create mode 100644 src/main/resources/assets/oneconfig/textures/gui/general/nav/close.png create mode 100644 src/main/resources/assets/oneconfig/textures/gui/general/nav/launch.png create mode 100644 src/main/resources/assets/oneconfig/textures/gui/general/nav/minimize.png create mode 100644 src/main/resources/assets/oneconfig/textures/gui/general/nav/search.png create mode 100644 src/main/resources/assets/oneconfig/textures/gui/general/nav/share.png create mode 100644 src/main/resources/assets/oneconfig/textures/gui/icons/dashboard.png create mode 100644 src/main/resources/assets/oneconfig/textures/gui/icons/hud/hud.png create mode 100644 src/main/resources/assets/oneconfig/textures/gui/icons/hud/settings.png create mode 100644 src/main/resources/assets/oneconfig/textures/gui/icons/mod/mod_box.png create mode 100644 src/main/resources/assets/oneconfig/textures/gui/icons/mod/mods.png create mode 100644 src/main/resources/assets/oneconfig/textures/gui/icons/mod/performance.png create mode 100644 src/main/resources/assets/oneconfig/textures/gui/icons/preferences.png create mode 100644 src/main/resources/assets/oneconfig/textures/gui/icons/profiles.png create mode 100644 src/main/resources/assets/oneconfig/textures/gui/icons/screenshot.png create mode 100644 src/main/resources/assets/oneconfig/textures/gui/icons/themes.png create mode 100644 src/main/resources/assets/oneconfig/textures/gui/icons/updates.png delete mode 100644 src/main/resources/assets/oneconfig/textures/hudsettings.png delete mode 100644 src/main/resources/assets/oneconfig/textures/huegradient.png delete mode 100644 src/main/resources/assets/oneconfig/textures/icon.png delete mode 100644 src/main/resources/assets/oneconfig/textures/love.png delete mode 100644 src/main/resources/assets/oneconfig/textures/love_empty.png delete mode 100644 src/main/resources/assets/oneconfig/textures/search.png delete mode 100644 src/main/resources/assets/oneconfig/textures/share.png delete mode 100644 src/main/resources/assets/oneconfig/textures/share2.png delete mode 100644 src/main/resources/assets/oneconfig/textures/smallUpArrow.png (limited to 'src/main/resources/assets') diff --git a/src/main/resources/assets/oneconfig/icons/TestIcon.svg b/src/main/resources/assets/oneconfig/icons/TestIcon.svg deleted file mode 100644 index e69de29..0000000 diff --git a/src/main/resources/assets/oneconfig/textures/Dashboard.png b/src/main/resources/assets/oneconfig/textures/Dashboard.png deleted file mode 100644 index 179a57d..0000000 Binary files a/src/main/resources/assets/oneconfig/textures/Dashboard.png and /dev/null differ diff --git a/src/main/resources/assets/oneconfig/textures/HUD.png b/src/main/resources/assets/oneconfig/textures/HUD.png deleted file mode 100644 index 98c052c..0000000 Binary files a/src/main/resources/assets/oneconfig/textures/HUD.png and /dev/null differ diff --git a/src/main/resources/assets/oneconfig/textures/HUDSettings.png b/src/main/resources/assets/oneconfig/textures/HUDSettings.png deleted file mode 100644 index 9dd5b5d..0000000 Binary files a/src/main/resources/assets/oneconfig/textures/HUDSettings.png and /dev/null differ diff --git a/src/main/resources/assets/oneconfig/textures/Image.png b/src/main/resources/assets/oneconfig/textures/Image.png deleted file mode 100644 index f9a4d25..0000000 Binary files a/src/main/resources/assets/oneconfig/textures/Image.png and /dev/null differ diff --git a/src/main/resources/assets/oneconfig/textures/Minimise.png b/src/main/resources/assets/oneconfig/textures/Minimise.png deleted file mode 100644 index dbe5a56..0000000 Binary files a/src/main/resources/assets/oneconfig/textures/Minimise.png and /dev/null differ diff --git a/src/main/resources/assets/oneconfig/textures/Mods.png b/src/main/resources/assets/oneconfig/textures/Mods.png deleted file mode 100644 index 07ebd26..0000000 Binary files a/src/main/resources/assets/oneconfig/textures/Mods.png and /dev/null differ diff --git a/src/main/resources/assets/oneconfig/textures/Performance.png b/src/main/resources/assets/oneconfig/textures/Performance.png deleted file mode 100644 index fe64b1d..0000000 Binary files a/src/main/resources/assets/oneconfig/textures/Performance.png and /dev/null differ diff --git a/src/main/resources/assets/oneconfig/textures/Profiles.png b/src/main/resources/assets/oneconfig/textures/Profiles.png deleted file mode 100644 index f0574e6..0000000 Binary files a/src/main/resources/assets/oneconfig/textures/Profiles.png and /dev/null differ diff --git a/src/main/resources/assets/oneconfig/textures/Settings.png b/src/main/resources/assets/oneconfig/textures/Settings.png deleted file mode 100644 index c8c9888..0000000 Binary files a/src/main/resources/assets/oneconfig/textures/Settings.png and /dev/null differ diff --git a/src/main/resources/assets/oneconfig/textures/Theme.png b/src/main/resources/assets/oneconfig/textures/Theme.png deleted file mode 100644 index df8e3de..0000000 Binary files a/src/main/resources/assets/oneconfig/textures/Theme.png and /dev/null differ diff --git a/src/main/resources/assets/oneconfig/textures/Update.png b/src/main/resources/assets/oneconfig/textures/Update.png deleted file mode 100644 index d44220b..0000000 Binary files a/src/main/resources/assets/oneconfig/textures/Update.png and /dev/null differ diff --git a/src/main/resources/assets/oneconfig/textures/XCircle.png b/src/main/resources/assets/oneconfig/textures/XCircle.png deleted file mode 100644 index 85c82f2..0000000 Binary files a/src/main/resources/assets/oneconfig/textures/XCircle.png and /dev/null differ diff --git a/src/main/resources/assets/oneconfig/textures/arrow.png b/src/main/resources/assets/oneconfig/textures/arrow.png deleted file mode 100644 index 426a17f..0000000 Binary files a/src/main/resources/assets/oneconfig/textures/arrow.png and /dev/null differ diff --git a/src/main/resources/assets/oneconfig/textures/box.png b/src/main/resources/assets/oneconfig/textures/box.png deleted file mode 100644 index 8a7630b..0000000 Binary files a/src/main/resources/assets/oneconfig/textures/box.png and /dev/null differ diff --git a/src/main/resources/assets/oneconfig/textures/check.png b/src/main/resources/assets/oneconfig/textures/check.png deleted file mode 100644 index 3069563..0000000 Binary files a/src/main/resources/assets/oneconfig/textures/check.png and /dev/null differ diff --git a/src/main/resources/assets/oneconfig/textures/colorspectrum.png b/src/main/resources/assets/oneconfig/textures/colorspectrum.png deleted file mode 100644 index c687a12..0000000 Binary files a/src/main/resources/assets/oneconfig/textures/colorspectrum.png and /dev/null differ diff --git a/src/main/resources/assets/oneconfig/textures/colorwheel.png b/src/main/resources/assets/oneconfig/textures/colorwheel.png deleted file mode 100644 index f4ebe3b..0000000 Binary files a/src/main/resources/assets/oneconfig/textures/colorwheel.png and /dev/null differ diff --git a/src/main/resources/assets/oneconfig/textures/dropdown_arrow.png b/src/main/resources/assets/oneconfig/textures/dropdown_arrow.png deleted file mode 100644 index 673458d..0000000 Binary files a/src/main/resources/assets/oneconfig/textures/dropdown_arrow.png and /dev/null differ diff --git a/src/main/resources/assets/oneconfig/textures/eye.png b/src/main/resources/assets/oneconfig/textures/eye.png deleted file mode 100644 index 38a5126..0000000 Binary files a/src/main/resources/assets/oneconfig/textures/eye.png and /dev/null differ diff --git a/src/main/resources/assets/oneconfig/textures/gui/general/arrows/chevron.png b/src/main/resources/assets/oneconfig/textures/gui/general/arrows/chevron.png new file mode 100644 index 0000000..426a17f Binary files /dev/null and b/src/main/resources/assets/oneconfig/textures/gui/general/arrows/chevron.png differ diff --git a/src/main/resources/assets/oneconfig/textures/gui/general/arrows/dropdown_arrow.png b/src/main/resources/assets/oneconfig/textures/gui/general/arrows/dropdown_arrow.png new file mode 100644 index 0000000..673458d Binary files /dev/null and b/src/main/resources/assets/oneconfig/textures/gui/general/arrows/dropdown_arrow.png differ diff --git a/src/main/resources/assets/oneconfig/textures/gui/general/arrows/up_arrow.png b/src/main/resources/assets/oneconfig/textures/gui/general/arrows/up_arrow.png new file mode 100644 index 0000000..f6723ad Binary files /dev/null and b/src/main/resources/assets/oneconfig/textures/gui/general/arrows/up_arrow.png differ diff --git a/src/main/resources/assets/oneconfig/textures/gui/general/color/colorspectrum.png b/src/main/resources/assets/oneconfig/textures/gui/general/color/colorspectrum.png new file mode 100644 index 0000000..c687a12 Binary files /dev/null and b/src/main/resources/assets/oneconfig/textures/gui/general/color/colorspectrum.png differ diff --git a/src/main/resources/assets/oneconfig/textures/gui/general/color/colorwheel.png b/src/main/resources/assets/oneconfig/textures/gui/general/color/colorwheel.png new file mode 100644 index 0000000..f4ebe3b Binary files /dev/null and b/src/main/resources/assets/oneconfig/textures/gui/general/color/colorwheel.png differ diff --git a/src/main/resources/assets/oneconfig/textures/gui/general/color/huegradient.png b/src/main/resources/assets/oneconfig/textures/gui/general/color/huegradient.png new file mode 100644 index 0000000..f0ab0a1 Binary files /dev/null and b/src/main/resources/assets/oneconfig/textures/gui/general/color/huegradient.png differ diff --git a/src/main/resources/assets/oneconfig/textures/gui/general/configs/checkmark.png b/src/main/resources/assets/oneconfig/textures/gui/general/configs/checkmark.png new file mode 100644 index 0000000..3069563 Binary files /dev/null and b/src/main/resources/assets/oneconfig/textures/gui/general/configs/checkmark.png differ diff --git a/src/main/resources/assets/oneconfig/textures/gui/general/configs/favorite_active.png b/src/main/resources/assets/oneconfig/textures/gui/general/configs/favorite_active.png new file mode 100644 index 0000000..39acd3a Binary files /dev/null and b/src/main/resources/assets/oneconfig/textures/gui/general/configs/favorite_active.png differ diff --git a/src/main/resources/assets/oneconfig/textures/gui/general/configs/favorite_inactive.png b/src/main/resources/assets/oneconfig/textures/gui/general/configs/favorite_inactive.png new file mode 100644 index 0000000..f91d77c Binary files /dev/null and b/src/main/resources/assets/oneconfig/textures/gui/general/configs/favorite_inactive.png differ diff --git a/src/main/resources/assets/oneconfig/textures/gui/general/configs/hide_eye.png b/src/main/resources/assets/oneconfig/textures/gui/general/configs/hide_eye.png new file mode 100644 index 0000000..38a5126 Binary files /dev/null and b/src/main/resources/assets/oneconfig/textures/gui/general/configs/hide_eye.png differ diff --git a/src/main/resources/assets/oneconfig/textures/gui/general/logo.png b/src/main/resources/assets/oneconfig/textures/gui/general/logo.png new file mode 100644 index 0000000..f0f6e68 Binary files /dev/null and b/src/main/resources/assets/oneconfig/textures/gui/general/logo.png differ diff --git a/src/main/resources/assets/oneconfig/textures/gui/general/nav/close.png b/src/main/resources/assets/oneconfig/textures/gui/general/nav/close.png new file mode 100644 index 0000000..85c82f2 Binary files /dev/null and b/src/main/resources/assets/oneconfig/textures/gui/general/nav/close.png differ diff --git a/src/main/resources/assets/oneconfig/textures/gui/general/nav/launch.png b/src/main/resources/assets/oneconfig/textures/gui/general/nav/launch.png new file mode 100644 index 0000000..5f1e1ac Binary files /dev/null and b/src/main/resources/assets/oneconfig/textures/gui/general/nav/launch.png differ diff --git a/src/main/resources/assets/oneconfig/textures/gui/general/nav/minimize.png b/src/main/resources/assets/oneconfig/textures/gui/general/nav/minimize.png new file mode 100644 index 0000000..dbe5a56 Binary files /dev/null and b/src/main/resources/assets/oneconfig/textures/gui/general/nav/minimize.png differ diff --git a/src/main/resources/assets/oneconfig/textures/gui/general/nav/search.png b/src/main/resources/assets/oneconfig/textures/gui/general/nav/search.png new file mode 100644 index 0000000..23a9e05 Binary files /dev/null and b/src/main/resources/assets/oneconfig/textures/gui/general/nav/search.png differ diff --git a/src/main/resources/assets/oneconfig/textures/gui/general/nav/share.png b/src/main/resources/assets/oneconfig/textures/gui/general/nav/share.png new file mode 100644 index 0000000..67930ef Binary files /dev/null and b/src/main/resources/assets/oneconfig/textures/gui/general/nav/share.png differ diff --git a/src/main/resources/assets/oneconfig/textures/gui/icons/dashboard.png b/src/main/resources/assets/oneconfig/textures/gui/icons/dashboard.png new file mode 100644 index 0000000..179a57d Binary files /dev/null and b/src/main/resources/assets/oneconfig/textures/gui/icons/dashboard.png differ diff --git a/src/main/resources/assets/oneconfig/textures/gui/icons/hud/hud.png b/src/main/resources/assets/oneconfig/textures/gui/icons/hud/hud.png new file mode 100644 index 0000000..98c052c Binary files /dev/null and b/src/main/resources/assets/oneconfig/textures/gui/icons/hud/hud.png differ diff --git a/src/main/resources/assets/oneconfig/textures/gui/icons/hud/settings.png b/src/main/resources/assets/oneconfig/textures/gui/icons/hud/settings.png new file mode 100644 index 0000000..9dd5b5d Binary files /dev/null and b/src/main/resources/assets/oneconfig/textures/gui/icons/hud/settings.png differ diff --git a/src/main/resources/assets/oneconfig/textures/gui/icons/mod/mod_box.png b/src/main/resources/assets/oneconfig/textures/gui/icons/mod/mod_box.png new file mode 100644 index 0000000..8a7630b Binary files /dev/null and b/src/main/resources/assets/oneconfig/textures/gui/icons/mod/mod_box.png differ diff --git a/src/main/resources/assets/oneconfig/textures/gui/icons/mod/mods.png b/src/main/resources/assets/oneconfig/textures/gui/icons/mod/mods.png new file mode 100644 index 0000000..07ebd26 Binary files /dev/null and b/src/main/resources/assets/oneconfig/textures/gui/icons/mod/mods.png differ diff --git a/src/main/resources/assets/oneconfig/textures/gui/icons/mod/performance.png b/src/main/resources/assets/oneconfig/textures/gui/icons/mod/performance.png new file mode 100644 index 0000000..fe64b1d Binary files /dev/null and b/src/main/resources/assets/oneconfig/textures/gui/icons/mod/performance.png differ diff --git a/src/main/resources/assets/oneconfig/textures/gui/icons/preferences.png b/src/main/resources/assets/oneconfig/textures/gui/icons/preferences.png new file mode 100644 index 0000000..c8c9888 Binary files /dev/null and b/src/main/resources/assets/oneconfig/textures/gui/icons/preferences.png differ diff --git a/src/main/resources/assets/oneconfig/textures/gui/icons/profiles.png b/src/main/resources/assets/oneconfig/textures/gui/icons/profiles.png new file mode 100644 index 0000000..f0574e6 Binary files /dev/null and b/src/main/resources/assets/oneconfig/textures/gui/icons/profiles.png differ diff --git a/src/main/resources/assets/oneconfig/textures/gui/icons/screenshot.png b/src/main/resources/assets/oneconfig/textures/gui/icons/screenshot.png new file mode 100644 index 0000000..f9a4d25 Binary files /dev/null and b/src/main/resources/assets/oneconfig/textures/gui/icons/screenshot.png differ diff --git a/src/main/resources/assets/oneconfig/textures/gui/icons/themes.png b/src/main/resources/assets/oneconfig/textures/gui/icons/themes.png new file mode 100644 index 0000000..df8e3de Binary files /dev/null and b/src/main/resources/assets/oneconfig/textures/gui/icons/themes.png differ diff --git a/src/main/resources/assets/oneconfig/textures/gui/icons/updates.png b/src/main/resources/assets/oneconfig/textures/gui/icons/updates.png new file mode 100644 index 0000000..d44220b Binary files /dev/null and b/src/main/resources/assets/oneconfig/textures/gui/icons/updates.png differ diff --git a/src/main/resources/assets/oneconfig/textures/hudsettings.png b/src/main/resources/assets/oneconfig/textures/hudsettings.png deleted file mode 100644 index b901c97..0000000 Binary files a/src/main/resources/assets/oneconfig/textures/hudsettings.png and /dev/null differ diff --git a/src/main/resources/assets/oneconfig/textures/huegradient.png b/src/main/resources/assets/oneconfig/textures/huegradient.png deleted file mode 100644 index f0ab0a1..0000000 Binary files a/src/main/resources/assets/oneconfig/textures/huegradient.png and /dev/null differ diff --git a/src/main/resources/assets/oneconfig/textures/icon.png b/src/main/resources/assets/oneconfig/textures/icon.png deleted file mode 100644 index f0f6e68..0000000 Binary files a/src/main/resources/assets/oneconfig/textures/icon.png and /dev/null differ diff --git a/src/main/resources/assets/oneconfig/textures/love.png b/src/main/resources/assets/oneconfig/textures/love.png deleted file mode 100644 index 39acd3a..0000000 Binary files a/src/main/resources/assets/oneconfig/textures/love.png and /dev/null differ diff --git a/src/main/resources/assets/oneconfig/textures/love_empty.png b/src/main/resources/assets/oneconfig/textures/love_empty.png deleted file mode 100644 index f91d77c..0000000 Binary files a/src/main/resources/assets/oneconfig/textures/love_empty.png and /dev/null differ diff --git a/src/main/resources/assets/oneconfig/textures/search.png b/src/main/resources/assets/oneconfig/textures/search.png deleted file mode 100644 index 23a9e05..0000000 Binary files a/src/main/resources/assets/oneconfig/textures/search.png and /dev/null differ diff --git a/src/main/resources/assets/oneconfig/textures/share.png b/src/main/resources/assets/oneconfig/textures/share.png deleted file mode 100644 index 67930ef..0000000 Binary files a/src/main/resources/assets/oneconfig/textures/share.png and /dev/null differ diff --git a/src/main/resources/assets/oneconfig/textures/share2.png b/src/main/resources/assets/oneconfig/textures/share2.png deleted file mode 100644 index 5f1e1ac..0000000 Binary files a/src/main/resources/assets/oneconfig/textures/share2.png and /dev/null differ diff --git a/src/main/resources/assets/oneconfig/textures/smallUpArrow.png b/src/main/resources/assets/oneconfig/textures/smallUpArrow.png deleted file mode 100644 index f6723ad..0000000 Binary files a/src/main/resources/assets/oneconfig/textures/smallUpArrow.png and /dev/null differ -- cgit From 63192472f7a814725cbcdaf91eed1361bfc75c38 Mon Sep 17 00:00:00 2001 From: nextdaydelivery <79922345+nxtdaydelivery@users.noreply.github.com> Date: Mon, 2 May 2022 13:22:59 +0100 Subject: start on color selector (my brain hurts) --- .../io/polyfrost/oneconfig/gui/OneConfigGui.java | 67 +++++- .../oneconfig/gui/elements/BasicElement.java | 13 ++ .../oneconfig/gui/elements/ColorSelector.java | 250 +++++++++++++++++++++ .../oneconfig/gui/elements/TextInputField.java | 6 + .../gui/elements/config/ConfigColorElement.java | 115 ++++++++++ .../polyfrost/oneconfig/lwjgl/RenderManager.java | 12 + .../io/polyfrost/oneconfig/lwjgl/image/Images.java | 5 + .../font/OneConfig Designs (Copy)/Theme.png | Bin 304 -> 0 bytes .../textures/gui/general/arrows/arrow_left.png | Bin 0 -> 209 bytes .../textures/gui/general/arrows/arrow_right.png | Bin 0 -> 214 bytes .../textures/gui/general/color/color_base.png | Bin 0 -> 296 bytes .../textures/gui/general/configs/hide_eye_off.png | Bin 0 -> 619 bytes 12 files changed, 466 insertions(+), 2 deletions(-) create mode 100644 src/main/java/io/polyfrost/oneconfig/gui/elements/ColorSelector.java create mode 100644 src/main/java/io/polyfrost/oneconfig/gui/elements/config/ConfigColorElement.java delete mode 100644 src/main/resources/assets/oneconfig/font/OneConfig Designs (Copy)/Theme.png create mode 100644 src/main/resources/assets/oneconfig/textures/gui/general/arrows/arrow_left.png create mode 100644 src/main/resources/assets/oneconfig/textures/gui/general/arrows/arrow_right.png create mode 100644 src/main/resources/assets/oneconfig/textures/gui/general/color/color_base.png create mode 100644 src/main/resources/assets/oneconfig/textures/gui/general/configs/hide_eye_off.png (limited to 'src/main/resources/assets') diff --git a/src/main/java/io/polyfrost/oneconfig/gui/OneConfigGui.java b/src/main/java/io/polyfrost/oneconfig/gui/OneConfigGui.java index f34abe5..930c8cd 100644 --- a/src/main/java/io/polyfrost/oneconfig/gui/OneConfigGui.java +++ b/src/main/java/io/polyfrost/oneconfig/gui/OneConfigGui.java @@ -1,16 +1,23 @@ package io.polyfrost.oneconfig.gui; import io.polyfrost.oneconfig.config.OneConfigConfig; +import io.polyfrost.oneconfig.gui.elements.BasicElement; +import io.polyfrost.oneconfig.gui.elements.ColorSelector; import io.polyfrost.oneconfig.gui.elements.TextInputField; import io.polyfrost.oneconfig.gui.pages.HomePage; import io.polyfrost.oneconfig.gui.pages.Page; import io.polyfrost.oneconfig.lwjgl.RenderManager; import io.polyfrost.oneconfig.lwjgl.font.Fonts; +import io.polyfrost.oneconfig.lwjgl.image.Images; import io.polyfrost.oneconfig.utils.MathUtils; import net.minecraft.client.gui.GuiScreen; import org.jetbrains.annotations.NotNull; import org.lwjgl.input.Keyboard; import org.lwjgl.input.Mouse; +import org.lwjgl.nanovg.NanoVG; + +import java.awt.*; +import java.util.ArrayList; import static org.lwjgl.nanovg.NanoVG.nvgResetScissor; import static org.lwjgl.nanovg.NanoVG.nvgScissor; @@ -28,6 +35,12 @@ public class OneConfigGui extends GuiScreen { private float pageProgress = -224f; private final TextInputField textInputField = new TextInputField(248, 40, "Search all of OneConfig...", false, false); + private final ArrayList pageHistory = new ArrayList<>(); + private int currentPageIndex = 0; + private final BasicElement backArrow = new BasicElement(40, 40, -1, true); + private final BasicElement forwardArrow = new BasicElement(40, 40, -1, true); + + private ColorSelector currentColorSelector; public boolean mouseDown; @@ -57,12 +70,43 @@ public class OneConfigGui extends GuiScreen { RenderManager.drawLine(vg, 544, 212, 1600, 212, 1, OneConfigConfig.GRAY_700); RenderManager.drawLine(vg, 544, 140, 544, 940, 1, OneConfigConfig.GRAY_700); - RenderManager.drawImage(vg, "/assets/oneconfig/textures/gui/general/logo.png", x + 19, y + 19, 42, 42); + RenderManager.drawImage(vg, Images.LOGO, x + 19, y + 19, 42, 42); RenderManager.drawString(vg, "OneConfig", x + 69, y + 32, OneConfigConfig.WHITE, 18f, Fonts.INTER_BOLD); // added half line height to center text RenderManager.drawString(vg, "By Polyfrost", x + 69, y + 51, OneConfigConfig.WHITE, 12f, Fonts.INTER_REGULAR); textInputField.draw(vg, x + 1020, y + 16); - //element.setColorPalette(0); sideBar.draw(vg, x, y); + backArrow.draw(vg, x + 240, y + 16); + forwardArrow.draw(vg, x + 280, y + 16); + + if (currentPageIndex <= 0) { + backArrow.disable(true); + NanoVG.nvgGlobalAlpha(vg, 0.5f); + } else backArrow.disable(false); + RenderManager.drawImage(vg, Images.ARROW_LEFT, x + 250, y + 26, 20, 20); + NanoVG.nvgGlobalAlpha(vg, 1f); + if (currentPageIndex > pageHistory.size() - 1) { + forwardArrow.disable(true); + NanoVG.nvgGlobalAlpha(vg, 0.5f); + } else forwardArrow.disable(false); + RenderManager.drawImage(vg, Images.ARROW_RIGHT, x + 290, y + 26, 20, 20); + NanoVG.nvgGlobalAlpha(vg, 1f); + + /*if (backArrow.isClicked()) { // TODO + try { + openPage(pageHistory.get(currentPageIndex--)); + } catch (Exception e) { + e.printStackTrace(); + } + } + if (forwardArrow.isClicked()) { + try { + pageHistory.add(currentPage); + openPage(pageHistory.get(currentPageIndex++)); + } catch (Exception ignored) { + } + }*/ + + nvgScissor(vg, x + 224, y + 72, 1056, 728); if (prevPage != null) { pageProgress = MathUtils.easeInOutCirc(50, pageProgress, 832 - pageProgress, 220); @@ -77,6 +121,9 @@ public class OneConfigGui extends GuiScreen { currentPage.draw(vg, (int) (x - pageProgress), y + 72); } nvgResetScissor(vg); + if(currentColorSelector != null) { + currentColorSelector.draw(vg); + } long end = System.nanoTime() - start; String s = (" draw: " + end / 1000000f + "ms"); RenderManager.drawString(vg, currentPage.getTitle(), x + 336, y + 36, OneConfigConfig.WHITE_90, 32f, Fonts.INTER_SEMIBOLD); @@ -105,6 +152,22 @@ public class OneConfigGui extends GuiScreen { currentPage = page; } + /** + * initialize a new ColorSelector and add it to the draw script. This method is used to make sure it is always rendered on top. + * @implNote Correct usage: OneConfigGui.INSTANCE.initColorSelector(new ColorSelector(color, InputUtils.mouseX(), InputUtils.mouseY())); + */ + public void initColorSelector(ColorSelector colorSelector) { + currentColorSelector = colorSelector; + } + + /** Close the current color selector and return the color it had when it closed. + */ + public Color closeColorSelector() { + Color color = currentColorSelector.getColor(); + currentColorSelector = null; + return color; + } + @Override public boolean doesGuiPauseGame() { diff --git a/src/main/java/io/polyfrost/oneconfig/gui/elements/BasicElement.java b/src/main/java/io/polyfrost/oneconfig/gui/elements/BasicElement.java index f31a5ef..dd3956c 100644 --- a/src/main/java/io/polyfrost/oneconfig/gui/elements/BasicElement.java +++ b/src/main/java/io/polyfrost/oneconfig/gui/elements/BasicElement.java @@ -12,6 +12,7 @@ public class BasicElement { protected boolean hovered = false; protected boolean clicked = false; protected boolean toggled = false; + protected boolean disabled = false; protected int currentColor; public BasicElement(int width, int height, int colorPalette, boolean hoverFx) { @@ -39,6 +40,11 @@ public class BasicElement { } public void update(int x, int y) { + if(disabled) { + hovered = false; + clicked = false; + return; + } hovered = InputUtils.isAreaHovered(x - hitBoxX, y - hitBoxY, width + hitBoxX, height + hitBoxY); clicked = InputUtils.isClicked() && hovered; @@ -91,4 +97,11 @@ public class BasicElement { public boolean isToggled() { return toggled; } + + public boolean isDisabled() { + return disabled; + } + public void disable(boolean state) { + disabled = state; + } } diff --git a/src/main/java/io/polyfrost/oneconfig/gui/elements/ColorSelector.java b/src/main/java/io/polyfrost/oneconfig/gui/elements/ColorSelector.java new file mode 100644 index 0000000..bcf4754 --- /dev/null +++ b/src/main/java/io/polyfrost/oneconfig/gui/elements/ColorSelector.java @@ -0,0 +1,250 @@ +package io.polyfrost.oneconfig.gui.elements; + +import io.polyfrost.oneconfig.config.OneConfigConfig; +import io.polyfrost.oneconfig.lwjgl.RenderManager; +import io.polyfrost.oneconfig.utils.InputUtils; +import org.lwjgl.input.Mouse; + +import java.awt.*; +import java.util.ArrayList; + +public class ColorSelector { + private Color color; + private final int x, y; + private final int width = 416; + private final int height = 768; + + private final BasicElement HSBButton = new BasicElement(128, 32, -1, true); + private final BasicElement RGBButton = new BasicElement(128, 32, -1, true); + private final BasicElement ChromaButton = new BasicElement(128, 32, -1, true); + + private final ArrayList faves = new ArrayList<>(); + private final ArrayList history = new ArrayList<>(); + private final BasicElement closeButton = new BasicElement(32, 32, -1, true); + + + public ColorSelector(Color color, int mouseX, int mouseY) { + this.color = color; + this.y = mouseY - 768; + this.x = mouseX - 208; + + } + + public void draw(long vg) { + RenderManager.drawRoundedRect(vg, x, y, width, height, OneConfigConfig.GRAY_800, 20f); + + } + + public Color getColor() { + return color; + } + + + + private class HSBSelector extends ColorSelectorBase { + + + public HSBSelector(Color color) { + super(color); + } + + @Override + public void drawBox(long vg, int x, int y) { + + } + + @Override + public void setColor(Color color) { + + } + + @Override + public int[] drawTopSlider() { + return new int[0]; + } + + @Override + public int[] drawBottomSlider() { + return new int[0]; + } + + @Override + public float[] getColorAtPos(int clickX, int clickY) { + return new float[0]; + } + } + + + private class RGBSelector extends ColorSelectorBase { + + public RGBSelector(Color color) { + super(color); + } + + @Override + public void drawBox(long vg, int x, int y) { + + } + + @Override + public void setColor(Color color) { + + } + + @Override + public int[] drawTopSlider() { + return new int[0]; + } + + @Override + public int[] drawBottomSlider() { + return new int[0]; + } + + + @Override + public float[] getColorAtPos(int clickX, int clickY) { + return new float[0]; + } + } + + + + private abstract class ColorSelectorBase { + + private int selectedX; + private int selectedY; + private float[] hsb = new float[3]; + private float[] rgba; + private final TextInputFieldNumber hueField = new TextInputFieldNumber(72, 32, "", 0, 100); + private final TextInputFieldNumber saturationField = new TextInputFieldNumber(72, 32, "", 0, 100); + private final TextInputFieldNumber brightnessField = new TextInputFieldNumber(72, 32, "", 0, 100); + private final TextInputFieldNumber alphaField = new TextInputFieldNumber(72, 32, "", 0, 100); + + private final TextInputField hexField = new TextInputField(107, 32, true, false, ""); + private final TextInputFieldNumber redField = new TextInputFieldNumber(44, 32, "", 0, 255); + private final TextInputFieldNumber greenField = new TextInputFieldNumber(44, 32, "", 0, 255); + private final TextInputFieldNumber blueField = new TextInputFieldNumber(44, 32, "", 0, 255); + + private final Slider sliderTop = new Slider(0); + private final Slider sliderBottom = new Slider(0); + + public ColorSelectorBase(Color color) { + rgba = new float[]{color.getRed() / 255f, color.getGreen() / 255f, color.getBlue() / 255f, color.getAlpha() / 255f}; + } + + public void updateElements(float[] rgba) { + this.rgba = rgba; + hsb = Color.RGBtoHSB((int) (rgba[0] * 255), (int) (rgba[1] * 255), (int) (rgba[2] * 255), hsb); + hueField.setInput(String.valueOf(hsb[0])); + saturationField.setInput(String.valueOf(hsb[1])); + brightnessField.setInput(String.valueOf(hsb[2])); + alphaField.setInput(String.valueOf(rgba[3])); + redField.setInput(String.valueOf(rgba[0])); + greenField.setInput(String.valueOf(rgba[1])); + blueField.setInput(String.valueOf(rgba[2])); + } + public abstract void drawBox(long vg, int x, int y); + + /** draw the color selector contents, including the box, and the input fields. If it is clicked, getColorAtPos is called. updateElements is also called to update all the input fields. */ + public void draw(long vg, int x, int y) { + drawBox(vg, x + 16, y + 120); + if(InputUtils.isAreaHovered(x + 16, y + 120, 384, 288) && Mouse.isButtonDown(0)) { + selectedX = InputUtils.mouseX() - x - 16; + selectedY = InputUtils.mouseY() - y - 120; + rgba = getColorAtPos(selectedX, selectedY); + } // TODO all of this + hueField.draw(vg, x + 104, y + 544); + saturationField.draw(vg, x + 312, y + 544); + brightnessField.draw(vg, x + 103, y + 584); + alphaField.draw(vg, x + 103, y + 584); + hexField.draw(vg, x + 96, y + 624); + redField.draw(vg, x + 228, y + 624); + greenField.draw(vg, x + 292, y + 664); + blueField.draw(vg, x + 356, y + 664); + sliderTop.draw(vg, x + 16, y + 424, drawTopSlider()[0], drawTopSlider()[1]); + sliderBottom.draw(vg, x + 16, y + 576, drawBottomSlider()[0], drawBottomSlider()[1]); + updateElements(rgba); + Color color1 = new Color(rgba[0], rgba[1], rgba[2], rgba[3]); + setColor(color1); + RenderManager.drawRoundedRect(vg, x + 16, y + 488, 384, 40, color1.getRGB(), 12f); + } + + /** called to set the color of the color selector box based on the values of the input fields. */ + public abstract void setColor(Color color); + + /** return an array of two ints of the start color of the gradient and the end color of the gradient. */ + public abstract int[] drawTopSlider(); + /** return an array of two ints of the start color of the gradient and the end color of the gradient. */ + public abstract int[] drawBottomSlider(); + + /** + * This method is called when the color selector is clicked. It needs to return color at the clicked position. + * @return color at the clicked position as a float[] rgba. + */ + public abstract float[] getColorAtPos(int clickX, int clickY); + + public float getRed() { + return rgba[0]; + } + public float getGreen(){ + return rgba[1]; + } + public float getBlue(){ + return rgba[2]; + } + public float getAlpha(){ + return rgba[3]; + } + + public float getHue(){ + return hsb[0]; + } + + public float getSaturation(){ + return hsb[1]; + } + + public float getBrightness(){ + return hsb[2]; + } + + public String getHex() { + return null; + }; + + public Color getColor() { + return new Color(rgba[0], rgba[1], rgba[2], rgba[3]); + } + + } + + private class TextInputFieldNumber extends TextInputField { + private final float min, max; + public TextInputFieldNumber(int width, int height, String defaultValue, float min, float max) { + super(width, height, true, true, defaultValue); + this.min = min; + this.max = max; + } + + @Override + public void draw(long vg, int x, int y) { + super.draw(vg, x, y); + + } + } + + private class Slider { + private final int style; + + public Slider(int style) { + this.style = style; + } + + public void draw(long vg, int x, int y, int color1, int color2) { + + } + } +} + + diff --git a/src/main/java/io/polyfrost/oneconfig/gui/elements/TextInputField.java b/src/main/java/io/polyfrost/oneconfig/gui/elements/TextInputField.java index b254a22..04e5676 100644 --- a/src/main/java/io/polyfrost/oneconfig/gui/elements/TextInputField.java +++ b/src/main/java/io/polyfrost/oneconfig/gui/elements/TextInputField.java @@ -40,6 +40,12 @@ public class TextInputField extends BasicElement { this.input = ""; } + public TextInputField(int width, int height, boolean centered, boolean onlyNums, String defaultText) { + this(width, height, defaultText, false, false); + this.centered = centered; + this.onlyNums = onlyNums; + } + public void onlyAcceptNumbers(boolean state) { onlyNums = state; } diff --git a/src/main/java/io/polyfrost/oneconfig/gui/elements/config/ConfigColorElement.java b/src/main/java/io/polyfrost/oneconfig/gui/elements/config/ConfigColorElement.java new file mode 100644 index 0000000..3525ab6 --- /dev/null +++ b/src/main/java/io/polyfrost/oneconfig/gui/elements/config/ConfigColorElement.java @@ -0,0 +1,115 @@ +package io.polyfrost.oneconfig.gui.elements.config; + +import io.polyfrost.oneconfig.config.OneConfigConfig; +import io.polyfrost.oneconfig.config.interfaces.BasicOption; +import io.polyfrost.oneconfig.gui.OneConfigGui; +import io.polyfrost.oneconfig.gui.elements.BasicElement; +import io.polyfrost.oneconfig.gui.elements.ColorSelector; +import io.polyfrost.oneconfig.gui.elements.TextInputField; +import io.polyfrost.oneconfig.lwjgl.RenderManager; +import io.polyfrost.oneconfig.lwjgl.font.Fonts; +import io.polyfrost.oneconfig.lwjgl.image.Images; +import io.polyfrost.oneconfig.utils.InputUtils; + +import java.awt.*; +import java.lang.reflect.Field; + +public class ConfigColorElement extends BasicOption { + private float alpha; + private Color color = Color.BLUE; + private String hex; + + private final TextInputField hexField = new TextInputField(104, 32, "", false, false); + private final TextInputField alphaField = new TextInputField(72, 32, "", false, false); + private final BasicElement element = new BasicElement(64, 32, false); + + public ConfigColorElement(Field field, String name, int size) { + super(field, name, size); + hexField.setCentered(true); + alphaField.setCentered(true); + alphaField.onlyAcceptNumbers(true); + String buf = Integer.toHexString(color.getRGB()); + hex = "#"+buf.substring(buf.length()-6); + } + + @Override + public int getHeight() { + return 32; + } + + @Override + public void draw(long vg, int x, int y) { + RenderManager.drawString(vg, name, x, y + 15, OneConfigConfig.WHITE_90, 18f, Fonts.INTER_MEDIUM); + hexField.draw(vg, x + 240, y); + + if (!alphaField.isToggled()) alphaField.setInput(String.format("%.01f", alpha * 100f) + "%"); + alphaField.setErrored(false); + if(alphaField.isToggled()) { + try { + float input = Float.parseFloat(alphaField.getInput()); + if (input < 0f) { + alphaField.setErrored(true); + input = 100f; + } + if (input > 100f) { + alphaField.setErrored(true); + input = 100f; + } + alpha = input / 100f; + } catch (NumberFormatException e) { + alphaField.setErrored(true); + } + } + alphaField.draw(vg, x + 352, y); + + + + if (!hexField.isToggled()) hexField.setInput(hex); + hexField.setErrored(false); + if(hexField.isToggled()) { + try { + color = HexToColor(hexField.getInput()); + String buf = Integer.toHexString(color.getRGB()); + hex = "#"+buf.substring(buf.length()-6); + } catch (NumberFormatException e) { + hexField.setErrored(true); + } + } + hexField.draw(vg, x + 352, y); + + element.update(x + 432, y); + RenderManager.drawRoundedRect(vg, x + 432, y, 64, 32, OneConfigConfig.GRAY_300, 12f); + RenderManager.drawImage(vg, Images.COLOR_BASE, x + 948, y + 4, 56, 24, color.getRGB()); + if(element.isClicked() && !element.isToggled()) { + OneConfigGui.INSTANCE.initColorSelector(new ColorSelector(color, InputUtils.mouseX(), InputUtils.mouseY())); + } + if(element.isToggled() && element.isClicked()) { + color = OneConfigGui.INSTANCE.closeColorSelector(); + alpha = color.getAlpha() / 255f; + String buf = Integer.toHexString(color.getRGB()); + hex = "#"+buf.substring(buf.length()-6); + } + + } + + // thanks stack overflow + public static Color HexToColor(String hex) throws NumberFormatException { + hex = hex.replace("#", ""); + switch (hex.length()) { + case 6: + return new Color( + Integer.valueOf(hex.substring(0, 2), 16), + Integer.valueOf(hex.substring(2, 4), 16), + Integer.valueOf(hex.substring(4, 6), 16)); + case 8: + return new Color( + Integer.valueOf(hex.substring(0, 2), 16), + Integer.valueOf(hex.substring(2, 4), 16), + Integer.valueOf(hex.substring(4, 6), 16), + Integer.valueOf(hex.substring(6, 8), 16)); + } + throw new NumberFormatException("Invalid hex string: " + hex); + } + + +} diff --git a/src/main/java/io/polyfrost/oneconfig/lwjgl/RenderManager.java b/src/main/java/io/polyfrost/oneconfig/lwjgl/RenderManager.java index c14ca89..2bc09df 100644 --- a/src/main/java/io/polyfrost/oneconfig/lwjgl/RenderManager.java +++ b/src/main/java/io/polyfrost/oneconfig/lwjgl/RenderManager.java @@ -157,6 +157,18 @@ public final class RenderManager { nvgColor.free(); } + public static void drawString(long vg, String text, float x, float y, int color, float size, int lineHeight, Fonts font) { + nvgBeginPath(vg); + nvgFontSize(vg, size); + nvgFontFace(vg, font.font.getName()); + nvgTextAlign(vg, NVG_ALIGN_LEFT | NVG_ALIGN_TOP); + nvgTextLineHeight(vg, lineHeight); + NVGColor nvgColor = color(vg, color); + nvgText(vg, x, y, text); + nvgFill(vg); + nvgColor.free(); + } + public static void drawWrappedString(long vg, String text, float x, float y, float width, int color, float size, Fonts font) { nvgBeginPath(vg); nvgFontSize(vg, size); diff --git a/src/main/java/io/polyfrost/oneconfig/lwjgl/image/Images.java b/src/main/java/io/polyfrost/oneconfig/lwjgl/image/Images.java index e09cec3..cdd79e3 100644 --- a/src/main/java/io/polyfrost/oneconfig/lwjgl/image/Images.java +++ b/src/main/java/io/polyfrost/oneconfig/lwjgl/image/Images.java @@ -4,13 +4,18 @@ public enum Images { CHEVRON_ARROW("/assets/oneconfig/textures/gui/general/arrows/chevron.png"), DROPDOWN_ARROW("/assets/oneconfig/textures/gui/general/arrows/dropdown_arrow.png"), UP_ARROW("/assets/oneconfig/textures/gui/general/arrows/up_arrow.png"), + ARROW_RIGHT("/assets/oneconfig/textures/gui/general/arrows/arrow_right.png"), + ARROW_LEFT("/assets/oneconfig/textures/gui/general/arrows/arrow_left.png"), CHECKMARK("/assets/oneconfig/textures/gui/general/configs/checkmark.png"), FAVORITE("/assets/oneconfig/textures/gui/general/configs/favorite_active.png"), FAVORITE_OFF("/assets/oneconfig/textures/gui/general/configs/favorite_inactive.png"), HIDE_EYE("/assets/oneconfig/textures/gui/general/configs/hide_eye.png"), + HIDE_EYE_OFF("/assets/oneconfig/textures/gui/general/configs/hide_eye_off.png"), // TODO color picker ones + COLOR_BASE("/assets/oneconfig/textures/gui/general/color/color_base.png"), + SHARE("/assets/oneconfig/textures/gui/general/nav/share.png"), LAUNCH("/assets/oneconfig/textures/gui/general/nav/launch.png"), diff --git a/src/main/resources/assets/oneconfig/font/OneConfig Designs (Copy)/Theme.png b/src/main/resources/assets/oneconfig/font/OneConfig Designs (Copy)/Theme.png deleted file mode 100644 index df8e3de..0000000 Binary files a/src/main/resources/assets/oneconfig/font/OneConfig Designs (Copy)/Theme.png and /dev/null differ diff --git a/src/main/resources/assets/oneconfig/textures/gui/general/arrows/arrow_left.png b/src/main/resources/assets/oneconfig/textures/gui/general/arrows/arrow_left.png new file mode 100644 index 0000000..d705ce7 Binary files /dev/null and b/src/main/resources/assets/oneconfig/textures/gui/general/arrows/arrow_left.png differ diff --git a/src/main/resources/assets/oneconfig/textures/gui/general/arrows/arrow_right.png b/src/main/resources/assets/oneconfig/textures/gui/general/arrows/arrow_right.png new file mode 100644 index 0000000..1646de1 Binary files /dev/null and b/src/main/resources/assets/oneconfig/textures/gui/general/arrows/arrow_right.png differ diff --git a/src/main/resources/assets/oneconfig/textures/gui/general/color/color_base.png b/src/main/resources/assets/oneconfig/textures/gui/general/color/color_base.png new file mode 100644 index 0000000..477c8fa Binary files /dev/null and b/src/main/resources/assets/oneconfig/textures/gui/general/color/color_base.png differ diff --git a/src/main/resources/assets/oneconfig/textures/gui/general/configs/hide_eye_off.png b/src/main/resources/assets/oneconfig/textures/gui/general/configs/hide_eye_off.png new file mode 100644 index 0000000..14f3b2a Binary files /dev/null and b/src/main/resources/assets/oneconfig/textures/gui/general/configs/hide_eye_off.png differ -- cgit