# UI Management

Before using UI API, you need to create a UI API Management object as follows:

local UI = class.UI.new()

The specific function name and description are as follows:

Serial number Function name Description
1 setGBattleUI(...) Set the battle ended UI
2 world2RadarPos(...) Convert world coordinates to Mini-map
3 world2RadarDist(...) Convert world length to Mini-map
4 setMinimapRenderMode(...) Set Mini-map rander mode:1. The 45 degree rotation view angle; 2.The overall view Angle
5 setShapeLine(...) Map marker shape set to Line Shape
6 setShapeCircle(...) Map marker shape set to Circle Shape
7 ShowScreenEffect(...) display screen effects

# setGBattleUI

  • Parameters and types:
    • name:string Set name
    • value:string or boolean Set value
  • Return value and types:
  • The main role of this method: Set the battle ended UI
  • The specific use cases are as follows:
local result = UI:setGBattleUI(name, value)

# world2RadarPos

  • Parameters and types:
  • Return value and types:
  • The main role of this method: Convert world coordinates to Mini-map
  • The specific use cases are as follows:
local result = UI:world2RadarPos(x, y)

# world2RadarDist

  • Parameters and types:
  • Return value and types:
  • The main role of this method: Convert world length to Mini-map
  • The specific use cases are as follows:
local result = UI:world2RadarDist(length)

# setMinimapRenderMode

  • Parameters and types:
  • Return value and types:
  • The main role of this method: Set Mini-map rander mode:1. The 45 degree rotation view angle; 2.The overall view Angle
  • The specific use cases are as follows:
local result = UI:setMinimapRenderMode(mode)

# setShapeLine

  • Parameters and types:
  • Return value and types:
  • The main role of this method: Map marker shape set to Line Shape
  • The specific use cases are as follows:
local result = UI:setShapeLine(uiname, p1x, p1y, p2x, p2y)

# setShapeCircle

  • Parameters and types:
  • Return value and types:
  • The main role of this method: Map marker shape set to Circle Shape
  • The specific use cases are as follows:
local result = UI:setShapeCircle(uiname, x, y, radius)

# ShowScreenEffect

  • Parameters and types:
  • Return value and types:
  • The main role of this method: display screen effects
  • The specific use cases are as follows:
local result = UI:ShowScreenEffect(type, isloop, incspeed)
Last Update: 11/22/2019, 2:31:59 PM