mirror of
https://github.com/SerenityOS/serenity
synced 2024-07-23 11:04:40 +00:00
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:
parent
34b1186272
commit
1d6f2e5608
Before Width: | Height: | Size: 5.4 KiB After Width: | Height: | Size: 5.4 KiB |
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
|
@ -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);
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue