Base+LibCards: Move card backs from /icons/ to /graphics/

The graphics directory is a more suitable home for game assets.
Also, move card backs into their own subfolder in preparation for a
themes subfolder for card fronts.
This commit is contained in:
Cubic Love 2023-05-05 01:04:46 +01:00 committed by Sam Atkins
parent 34b1186272
commit 1d6f2e5608
5 changed files with 3 additions and 3 deletions

View file

Before

Width:  |  Height:  |  Size: 5.4 KiB

After

Width:  |  Height:  |  Size: 5.4 KiB

View file

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

View file

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

View file

@ -16,7 +16,7 @@
namespace GamesSettings {
static constexpr StringView default_card_back_image_path = "/res/icons/cards/buggie-deck.png"sv;
static constexpr StringView default_card_back_image_path = "/res/graphics/cards/backs/buggie-deck.png"sv;
class CardGamePreview final : public Cards::CardGame {
C_OBJECT_ABSTRACT(CardGamePreview)
@ -91,7 +91,7 @@ ErrorOr<void> CardSettingsWidget::initialize()
};
m_card_back_image_view = find_descendant_of_type_named<GUI::IconView>("cards_back_image");
m_card_back_image_view->set_model(GUI::FileSystemModel::create("/res/icons/cards"));
m_card_back_image_view->set_model(GUI::FileSystemModel::create("/res/graphics/cards/backs"));
m_card_back_image_view->set_model_column(GUI::FileSystemModel::Column::Name);
if (!set_card_back_image_path(Config::read_string("Games"sv, "Cards"sv, "CardBackImage"sv)))
set_card_back_image_path(default_card_back_image_path);

View file

@ -21,7 +21,7 @@ CardPainter& CardPainter::the()
CardPainter::CardPainter()
{
m_background_image_path = Config::read_string("Games"sv, "Cards"sv, "CardBackImage"sv, "/res/icons/cards/buggie-deck.png"sv);
m_background_image_path = Config::read_string("Games"sv, "Cards"sv, "CardBackImage"sv, "/res/graphics/cards/backs/buggie-deck.png"sv);
}
static constexpr Gfx::CharacterBitmap s_diamond {