script:ui_event:openuiview
openUIView
- Parameters and types:
- objid: numberplayer ID
- uiname: stringUIID of the custom interface
- Return value and type:
- ErrorCode .OK
- The main function of this method: open a UI interface
- The specific use cases are as follows:
--When a player enters the game, execute this function local function player_enter(event) local uin=event.eventobjid--The mini account of the player entering the game local uiid="6986982063319417057"--The interface id to be opened, replace your UIid here Player:openUIView(uin,uiid)--Open the interface for the player end ScriptSupportEvent:registerEvent([=[Game.AnyPlayer.EnterGame]=],player_enter)
script/ui_event/openuiview.txt · Last modified: 2024/06/11 01:57 by don