#kill
kill @e[tag=ui_startminus]
kill @e[tag=ui_startplus]
kill @e[tag=ui_drawstack]
kill @e[tag=ui_showlb]
kill @e[tag=ui_resetlb]

#summon buttons
tag @e[type=cero:button] add notme



#drawstack
summon cero:button 65.1 20 -75 ui_drawstack_disabled
tag @e[type=cero:button,tag=!notme] add ui_drawstack
tag @e[type=cero:button] add notme
execute @e[tag=ui_drawstack] ~ ~ ~ tp @s 65.1 20 -75 270 0




#startingcards minus
summon cero:button 65.1 19.9 -75.1 ui_startminus
tag @e[type=cero:button,tag=!notme] add ui_startminus
tag @e[type=cero:button] add notme
execute @e[tag=ui_startminus] ~ ~ ~ tp @s 65.11 20.35 -76.22 270 0




#startingcards plus
summon cero:button 65.1 19.9 -75.9 ui_startplus
tag @e[type=cero:button,tag=!notme] add ui_startplus
tag @e[type=cero:button] add notme
execute @e[tag=ui_startplus] ~ ~ ~ tp @s 65.11 20.35 -76.78 270 0



#scores
scoreboard players set @e[tag=dummy] drawstacking_ui 1
scoreboard players set @e[tag=dummy] startingcards_ui 7


#signs
clone 65 17 -74 65 17 -74 65 20 -75
clone 65 16 -79 65 16 -79 65 20 -77



#leaderboard

#show
summon cero:button 109.9 21 -77 ui_showlb_off
tag @e[type=cero:button,tag=!notme] add ui_showlb
tag @e[type=cero:button] add notme
execute @e[tag=ui_showlb] ~ ~ ~ tp @s 110.5 21 -77 90 0

#reset
summon cero:button 109.9 21 -77 ui_resetlb
tag @e[type=cero:button,tag=!notme] add ui_resetlb
tag @e[type=cero:button] add notme
execute @e[tag=ui_resetlb] ~ ~ ~ tp @s 110.5 21 -75 90 0

