We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents aa3476d + 0fb2c8e commit 28218a6Copy full SHA for 28218a6
lib/ui.lua
@@ -241,6 +241,9 @@ function Card:move(dt)
241
end
242
243
244
+function Card:get_banned_force_popup_areas()
245
+ return {G.pack_cards}
246
+end
247
-- This defines when we should show a card's description even when it's not hovered
248
function Card:force_popup()
249
-- Must be selected
@@ -262,8 +265,10 @@ function Card:force_popup()
262
265
return false
263
266
264
267
-- Other areas where it doesn't work well
- if self.area == G.pack_cards then
- return false
268
+ for i, v in ipairs(self:get_banned_force_popup_areas()) do
269
+ if self.area == v then
270
+ return false
271
+ end
272
273
return true
274
0 commit comments