mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:18:11 +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
5 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue