Skip to content

Commit

Permalink
Update wrapping text param.
Browse files Browse the repository at this point in the history
  • Loading branch information
SweetSea-ButImNotSweet authored Sep 4, 2024
1 parent fd62a0c commit b25b63d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parts/net.lua
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ function NET.wsCallBack.room_chat(body)

local name=_getFullName(body.data.playerId).." "
-- P/s: we need to wrap both name and message, not just only message
local _,msgWrapped=FONT.get(NET.inputBox.font):getWrap(name..body.data.message,1170)
local _,msgWrapped=FONT.get(NET.inputBox.font):getWrap(name..body.data.message,950)
-- We don't want to see the name repeat twice :skull:
msgWrapped[1]=string.gsub(msgWrapped[1],name,"",1)
-- Push the name in white and first line of message in blue first
Expand Down

0 comments on commit b25b63d

Please sign in to comment.