dkforest

A forum and chat platform (onion)
git clone https://git.dasho.dev/n0tr1v/dkforest.git
Log | Files | Refs | LICENSE

commit c7dca481f4198ac915b4b0e89724478ff8ccf43b
parent dfb4be39ad99d214bd404969bfd683b47ff3d952
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Sat,  9 Dec 2023 00:42:17 -0500

UI

Diffstat:
Mpkg/web/handlers/poker/poker.go | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git a/pkg/web/handlers/poker/poker.go b/pkg/web/handlers/poker/poker.go @@ -374,6 +374,13 @@ func showCards(g *PokerGame, roomTopic string, seats []Seat) { secondCard := p.Cards[1] p.CardsMtx.RUnlock() seatData := seats[p.SeatIdx] + if p.SeatIdx == 0 { + seatData.Left -= 30 + } else if p.SeatIdx == 1 { + seatData.Left -= 31 + } else if p.SeatIdx == 2 { + seatData.Top -= 8 + } evt1 := PokerEvent{ID: "card" + itoa(firstCard.Idx), Name: firstCard.Name, Idx: firstCard.Idx, Top: seatData.Top, Left: seatData.Left, Reveal: true} evt2 := PokerEvent{ID: "card" + itoa(secondCard.Idx), Name: secondCard.Name, Idx: secondCard.Idx, Top: seatData.Top, Left: seatData.Left + 53, Reveal: true} PokerPubSub.Pub(roomTopic, evt1)