_check(grip!=nullandgrip.get_index()==card.get_child_count()-2andcard.shield.get_index()==card.get_child_count()-1,"the grip, then the shield, are the card's last children")
_check(notgrip._has_point(grip.size+Vector2(5,5))andnotgrip._has_point(grip.size+Vector2(300,-4))andnotgrip._has_point(Vector2(grip.size.x-4,grip.size.y+200)),"nothing outside the card is the resize corner")
## Zoomed out, cards take only drag, right-click and (in Play) a click to roll.
func_test_compact()->void:
main.board.set_zoom(0.3)
await_frames()
varcard:=main.card_for("road")
_check(main.board.compactandcard.shield.visible,"zoomed out, the shield covers the card")
_check(card.shield.tooltip_text.begins_with("Road Encounter")andcard.shield.tooltip_text.contains("Click to roll"),"its name is a tooltip: "+card.shield.tooltip_text)
varclick:=InputEventMouseButton.new()
click.button_index=MOUSE_BUTTON_LEFT
click.pressed=true
click.global_position=Vector2(10,10)
card.shield._gui_input(click)
varup:=click.duplicate()asInputEventMouseButton
up.pressed=false
card.shield._gui_input(up)
await_frames(3)
_check(main.current.get("table_id","")=="road"orstr(main.current).contains("road"),"a click rolls it in Play")
main.board.set_zoom(1.0)
await_frames()
_check(notmain.board.compactandnotcard.shield.visible,"zoomed in, the shield is gone")