User Tools

Site Tools


script:ui_event:hideuiview

hideuiview

  • Parameters & Types:
    • objid:number player ID
    • uiname:string to customize the UIID of the UI page
  • Return value and type:
    • ErrorCode. OK
  • The main purpose of this method is to hide a UI interface
  • Specific use cases are as follows:
--When the player clicks the block, execute this function
local function clickblock(event)
local uin=event.eventobjid--The mini number of the player who clicked the block
local uiid="6986982063319417057"--The interface id to be hidden
Player:hideUIView(uin,uiid)--Hide the interface for the player
end
ScriptSupportEvent:registerEvent([=[Player.ClickBlock]=],clickblock)
script/ui_event/hideuiview.txt · Last modified: 2024/06/11 02:07 by don