parent
4d90b674ac
commit
27ccb472d2
@ -0,0 +1,15 @@
|
|||||||
|
local textMessageWidget
|
||||||
|
|
||||||
|
function Game.onTextMessage(message)
|
||||||
|
if textMessageWidget then
|
||||||
|
textMessageWidget:destroy()
|
||||||
|
end
|
||||||
|
|
||||||
|
local newTextMessageWidget = loadUI('/game/ui/textmessage.otui', Game.gameMapUi)
|
||||||
|
time = #message * 75
|
||||||
|
newTextMessageWidget:setText(message)
|
||||||
|
scheduleEvent(function()
|
||||||
|
newTextMessageWidget:destroy()
|
||||||
|
end, time)
|
||||||
|
textMessageWidget = newTextMessageWidget
|
||||||
|
end
|
@ -0,0 +1,8 @@
|
|||||||
|
Label
|
||||||
|
font: tibia-12px-rounded
|
||||||
|
color: white
|
||||||
|
height: 16
|
||||||
|
align: center
|
||||||
|
anchors.bottom: parent.bottom
|
||||||
|
anchors.left: parent.left
|
||||||
|
anchors.right: parent.right
|
Loading…
Reference in new issue