From 3ad154dee870dc38baeeec17094d9aa77c4639ac Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Sat, 19 Oct 2024 16:54:37 +0500 Subject: fix: GDX dialogs dont work well on macos, so i replaced it with my implementation of it --- assets/i18n/en_us.json | 5 +---- assets/i18n/ru_ru.json | 5 +---- assets/sprites/gui/ui.skin | 18 ++++++++++++++++-- 3 files changed, 18 insertions(+), 10 deletions(-) (limited to 'assets') diff --git a/assets/i18n/en_us.json b/assets/i18n/en_us.json index 239169c..9be139d 100644 --- a/assets/i18n/en_us.json +++ b/assets/i18n/en_us.json @@ -1,8 +1,5 @@ { - "updater.title": "You're playing an outdated version...", - "updater.message": "There's a new update out! Want to see it?", - "updater.no": "n-no", - "updater.yes": "YES!!", + "updater.info": "A new update is available!", "debug.version": "%s (LibGDX %s, Java %s)", "debug.c_fps": "%s FPS", diff --git a/assets/i18n/ru_ru.json b/assets/i18n/ru_ru.json index 7451d97..ff70cd3 100644 --- a/assets/i18n/ru_ru.json +++ b/assets/i18n/ru_ru.json @@ -1,8 +1,5 @@ { - "updater.title": "Ты играешь в устаревшую версию...", - "updater.message": "Вышло новое обновление! Хочешь посмотреть?", - "updater.no": "н-нет", - "updater.yes": "ДААА!!", + "updater.info": "Доступно новое обновление!", "debug.version": "%s (LibGDX %s, Java %s)", "debug.c_fps": "%s FPS", diff --git a/assets/sprites/gui/ui.skin b/assets/sprites/gui/ui.skin index 979a0f1..2004b30 100644 --- a/assets/sprites/gui/ui.skin +++ b/assets/sprites/gui/ui.skin @@ -5,7 +5,10 @@ store_item_hover: { hex: "#ffffffff" }, store_item_disabled: { hex: "#888888ff" }, store_item_price_available: { hex: "#00ff00ff" }, - store_item_price_disabled: { hex: "#ff0000ff" } + store_item_price_disabled: { hex: "#ff0000ff" }, + + orange: {hex: "#ffa300ff" }, + yellow: {hex: "#ffec27ff" }, }, com.badlogic.gdx.scenes.scene2d.ui.Skin$TintedDrawable: { button_pressed: { color: { hex: "#ad6235ff" }, name: pressed }, @@ -32,6 +35,10 @@ file: fnt/FontText.fnt, scaledSize: 24 }, + small: { + file: fnt/FontText.fnt, + scaledSize: 18 + }, store_item_name: { file: fnt/FontText.fnt, scaledSize: 19 @@ -65,7 +72,14 @@ store_control: { parent: default, font: store_control - } + }, + link: { + font: small, + fontColor: yellow, + overFontColor: orange, + focusedFontColor: orange, + downFontColor: orange + }, }, com.badlogic.gdx.scenes.scene2d.ui.Label$LabelStyle: { default: { -- cgit v1.2.3