#Graphics Management API Graphics

Before using the Graphics API, you need to create the Graphics management object, the method is as follows: (This is obsolete)

local Graphics = class.Graphics.new()

The specific function name and description are as follows:

Sequence Number Function Name Function Description
1 makeGraphicsText(...) Graphics, Content, Font, Transparency, TypeIndex 1.8+
2 makeflotageText(...) FloatingText, Content, Font, TypeIndex 1.8+
3 makeGraphicsProgress(...) Create health bar information 1.8+
4 createGraphicsTxtByPos(...) Create Graphic 1.8+
5 createGraphicsTxtByActor(...) Create Graphic 1.8+
6 createflotageTextByPos(...) Create Floating Text 1.8+
7 createflotageTextByActor(...) Create Floating Text 1.8+
8 createGraphicsProgressByPos(...) Create Progress Bar 1.8+
9 createGraphicsProgressByActor(...) Create Progress Bar 1.8+
10 removeGraphicsByPos(...) Delete Graphic 1.8+
11 removeGraphicsByObjID(...) Delete Graphic 1.8+
12 updateGraphicsTextById(...) Update Graphic 1.8+
13 updateGraphicsProgressById(...) Update Graphic 1.8+
14 snycGraphicsInfo2Client(...) Sync Up the Graphics Info to Client 1.8+

# makeGraphicsText 1.8+

  • Parameters and Types:
    • title:[string](./global.md#lua Native data type)The title for the GraphicsText
    • font:[number](./global.md#lua Native data type)Font Size
    • apha:[number](./global.md#lua Native data type)Graphics Transparency
    • itype:[number](./global.md#lua Native data type)Graphics Sequence Number
  • Return value and type:
    • array:[table](./global.md#lua Native data type)
  • This function is mainly for:Graphics, Content, Font, Transparency, TypeIndex
  • The specific references are as follow :
local result = Graphics:makeGraphicsText(title, font, apha, itype)

# makeflotageText 1.8+

  • Parameters and Types:
    • title:[string](./global.md#lua Native data type)The title for the GraphicsText
    • font:[number](./global.md#lua Native data type)Font Size
    • itype:[number](./global.md#lua Native data type)The sequence number of the floating text
  • Return value and type:
    • array:[table](./global.md#lua Native data type)
  • This function is mainly for:Floating Text, Content, Font, TypeIndex
  • The specific references are as follow:
local result = Graphics:makeflotageText(title, font, itype)

# makeGraphicsProgress 1.8+

  • Parameters and Types:
    • v1:[number](./global.md#lua Native data type)The current value of the Progress Bar
    • v2:[number](./global.md#lua Native data type)The maximum value of the Progress Bar
    • color:[number](./global.md#lua Native data type)The color of the Progress Bar
    • itype:[number](./global.md#lua Native data type)The sequence number of the Progress Bar
  • Return value and type:
    • array:[table](./global.md#lua Native data type)
  • This function is mainly for:Create the health bar info
  • The specific references are as follow:
local result = Graphics:makeGraphicsProgress(v1, v2, color, itype)

# createGraphicsTxtByPos 1.8+

  • Parameters and Types:
    • x,y,z:[number](./global.md#lua Native data type)Position
  • Return value and type:
    • [ErrorCode](./global.md#Error Codes Info).OK
    • graphid:[number](./global.md#lua Native data type)
  • This function is mainly for:Create Graphics Info
  • The specific references are as follow:
local result = Graphics:createGraphicsTxtByPos(x, y, z, info)

# createGraphicsTxtByActor 1.8+

  • Parameters and Types:
    • objid:[number](./global.md#lua Native data type)Creature objid
    • graphicInfo:[table](./global.md#lua Native data type)Attribute information of graphic settings
    • dir:[table](./global.md#lua Native data type)The orientation of graphic information on creatures
    • offest:[number](./global.md#lua Native data type)Offset in direction
  • Return value and type:
    • [ErrorCode](./global.md#Error Codes Info).OK
    • graphid:[number](./global.md#lua Native data type)
  • This function is mainly for:Create graphic information
  • The specific references are as follow:
local result = Graphics:createGraphicsTxtByActor(objid, info, dir, offest)

# createflotageTextByPos 1.8+

  • Parameters and Types:
    • x,y,z:[number](./global.md#lua Native data type)Position
  • Return value and type:
    • [ErrorCode](./global.md#Error Codes Info).OK
    • graphid:[number](./global.md#lua Native data type)
  • This function is mainly for:Create Floating Text
  • The specific references are as follow:
local result = Graphics:createflotageTextByPos(x, y, z, info)

# createflotageTextByActor 1.8+

  • Parameters and Types:
    • objid:[number](./global.md#lua Native data type)Creature objid
    • graphicInfo:[table](./global.md#lua Native data type)Attribute information of graphic settings
    • dir:[table](./global.md#lua Native data type)The orientation of graphic information on creatures
    • offest:[number](./global.md#lua Native data type)Offset in direction
  • Return value and type:
    • [ErrorCode](./global.md#Error Codes Info).OK
    • graphid:[number](./global.md#lua Native data type)
  • This function is mainly for:Create Floating Text
  • The specific references are as follow:
local result = Graphics:createflotageTextByActor(objid, info, dir, offest)

# createGraphicsProgressByPos 1.8+

  • Parameters and Types:
    • x,y,z:[number](./global.md#lua Native data type)Position
  • Return value and type:
    • [ErrorCode](./global.md#Error Codes Info).OK
    • graphid:[number](./global.md#lua Native data type)
  • This function is mainly for:Create Progress Bar
  • The specific references are as follow:
local result = Graphics:createGraphicsProgressByPos(x, y, z, info)

# createGraphicsProgressByActor 1.8+

  • Parameters and Types:
    • objid:[number](./global.md#lua Native data type)Creature objid
    • graphicInfo:[table](./global.md#lua Native data type)Attribute information of progress bar
    • dir:[table](./global.md#lua Native data type)The orientation of graphic information on creatures
    • offest:[number](./global.md#lua Native data type)Offset in direction
  • Return value and type:
    • [ErrorCode](./global.md#Error Codes Info).OK
    • graphid:[number](./global.md#lua Native data type)
  • This function is mainly for:Create Progress Bar
  • The specific references are as follow:
local result = Graphics:createGraphicsProgressByActor(objid, info, dir, offest)

# removeGraphicsByPos 1.8+

  • Parameters and Types:
    • x,y,z:[number](./global.md#lua Native data type)Position
    • itype:[number](./global.md#lua Native data type)Graphic information group type
    • graphType:[number](./global.md#lua Native data type)Graphic type enumeration value
  • Return value and type:
    • [ErrorCode](./global.md#Error Codes Info).OK
  • This function is mainly for:Delete graphic information
  • The specific references are as follow:
local result = Graphics:removeGraphicsByPos(x, y, z, itype, graphType)

# removeGraphicsByObjID 1.8+

  • Parameters and Types:
    • objid:[number](./global.md#lua Native data type)Creature objid
    • itype:[number](./global.md#lua Native data type)Graphic information group type
    • graphType:[number](./global.md#lua Native data type)Graphic type enumeration value
  • Return value and type:
    • [ErrorCode](./global.md#Error Codes Info).OK
  • This function is mainly for:Delete graphic information
  • The specific references are as follow:
local result = Graphics:removeGraphicsByObjID(objid, itype, graphType)

# updateGraphicsTextById 1.8+

  • Parameters and Types:
    • graphid:[number](./global.md#lua Native data type)Created graphic information ID
    • title:[string](./global.md#lua Native data type)Text
  • Return value and type:
    • [ErrorCode](./global.md#Error Codes Info).OK
  • This function is mainly for:Update graphic information
  • The specific references are as follow:
local result = Graphics:updateGraphicsTextById(graphid, title)

# updateGraphicsProgressById 1.8+

  • Parameters and Types:
    • graphid:[number](./global.md#lua Native data type)Created graphic information ID
    • curval:[number](./global.md#lua Native data type)The current value of the Progress Bar
    • maxval:[number](./global.md#lua Native data type)The maximum value of the Progress Bar
  • Return value and type:
    • [ErrorCode](./global.md#Error Codes Info).OK
  • This function is mainly for:Update graphic information
local result = Graphics:updateGraphicsProgressById(graphid, val1, val2)

# snycGraphicsInfo2Client 1.8+

  • Parameters and Types:
  • Return value and type:
  • This function is mainly for:Sync Up the Graphics Info to Client
  • The specific references are as follow:
local result = Graphics:snycGraphicsInfo2Client()
Last Update: 2/19/2021, 9:36:24 AM