diff --git a/app/Models/Character/CharacterImage.php b/app/Models/Character/CharacterImage.php index 985fa96043..d8f2e7a618 100644 --- a/app/Models/Character/CharacterImage.php +++ b/app/Models/Character/CharacterImage.php @@ -270,7 +270,7 @@ public function getThumbnailUrlAttribute() { * * @return string */ - public function displayColours($breaks = false) { + public function displayColours() { // return the images as a row of colour boxes if (!$this->colours) { return ''; diff --git a/config/lorekeeper/character_pairing.php b/config/lorekeeper/character_pairing.php index 86b912f078..2def895656 100644 --- a/config/lorekeeper/character_pairing.php +++ b/config/lorekeeper/character_pairing.php @@ -23,6 +23,9 @@ // Recommended to leave these settings alone unless you know what you're doing ///////////////////////////////////// + // 0: Disabled, 1: Enabled + 'colours' => 0, + // if colours from parents should be inherited, entirely visual, no actual colour checks occur, // just a colour palette generated from parents and displayed on the pairing slots 'inherit_colours' => 1, // 0: Disabled, 1: Enabled diff --git a/resources/views/admin/pairings/_pairing_myo.blade.php b/resources/views/admin/pairings/_pairing_myo.blade.php index ab23525378..63d2806e55 100644 --- a/resources/views/admin/pairings/_pairing_myo.blade.php +++ b/resources/views/admin/pairings/_pairing_myo.blade.php @@ -24,14 +24,16 @@
As a staff member, you may modify the thumbnail of the uploaded image and/or the credits, but not the image itself. If you have recropped the thumbnail, you may need to hard refresh to see the new one.
@endif - @if ($request->character->is_myo_slot && $request->character->image->colours) + @if ($request->character->is_myo_slot && $request->character->image->colours && config('lorekeeper.character_pairing.colours'))