Stitching bubble information||doc135495

September 20, 2022

Format

 Entity:parserBubbleMsg(packet) 
  • The class to which the function belongs:Entity

Description

Display the bubble display after multilingual splicing


Precautions

The two member variables textKey and textArgs must be included in the packet, otherwise there will be unexpected consequences.


Parameters

Variable name type Description
packet table text package


Text package content

name type Description
textKey string Multilingual Index
textArgs table Multilingual splicing content list


Code Samples

on the client sideglobal scriptWhen initialization is complete, a chat bubble is displayed overhead when displayed

Lib.subscribeEvent(Event.EVENT_FINISH_DEAL_GAME_INFO, function()
    local packet = {
    textKey= 'Hello',
    textArgs={}
    }
    Me:parserBubbleMsg(packet)   
end)