Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
Bruce0203 committed Aug 5, 2023
1 parent b5bd5f4 commit d3134e0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions client/src/commonMain/kotlin/ui/waitingRoom.kt
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ suspend fun WaitingRoomState.waitingRoom(room: UUID) {
lateinit var waitingRoom: View
sceneContainer.uiContainer {
waitingRoom = this
val sidebarSize = Size(sceneContainer.width / 3.5f, sceneContainer.height)
val sidebarSize = Size(sceneContainer.width / 4.5f, sceneContainer.height)
styles(styler)
val belowElementHeight = sceneContainer.width / 25f
val leaveButton = Size(belowElementHeight*1.75f, belowElementHeight)
Expand Down Expand Up @@ -95,16 +95,16 @@ suspend fun WaitingRoomState.waitingRoom(room: UUID) {
it.horizontal.view.visible = false
it.vertical.view.visible = false
it.scrollBarAlpha = 0f
scroll.timeScrollBar = 0.seconds
scroll.horizontal.view.visible = false
scroll.scrollTopRatio = 1f
uiVerticalStack(width = size.width, padding = padding, adjustSize = false) {
chats = this
space = uiSpacing(Size(size.width, chatSize.height))
styles(styler)
styles {
textAlignment = TextAlignment.MIDDLE_LEFT
}
scroll.timeScrollBar = 0.seconds
scroll.horizontal.view.visible = false
scroll.scrollTopRatio = 1f
onEvent(PacketEvent) {
val packet = it.packet
if (packet !is PlayerJoinPacket) return@onEvent
Expand Down

0 comments on commit d3134e0

Please sign in to comment.