LuaSTG-x Core API
lstg::ResFont Class Reference
Inheritance diagram for lstg::ResFont:
lstg::Resource

Public Member Functions

function calcSize (local text)
 
function createBMF (local name, local path)
 
function createHGE (local name, local path)
 
function createLabel ()
 
function createTTF (local name, local path, local fontSize)
 
function disableAllEffects ()
 
function disableBold ()
 
function disableGlow ()
 
function disableItalics ()
 
function disableOutline ()
 
function disableShadow ()
 
function disableStrikethrough ()
 
function disableUnderline ()
 
function enableBold ()
 
function enableGlow (local color)
 
function enableItalics ()
 
function enableOutline (local color, local size)
 
function enableShadow ()
 
function enableStrikethrough ()
 
function enableUnderline ()
 
function getColor ()
 
function getGlowColor ()
 
function getHAlign ()
 
function getInfo ()
 
function getOutlineColor ()
 
function getOutlineSize ()
 
function getRenderMode ()
 
function getShadowBlurRadius ()
 
function getShadowColor ()
 
function getShadowOffset ()
 
function getTTFConfig ()
 
function getVAlign ()
 
function HGE2BMF (local data, local outTexName)
 
function isBold ()
 
function isGlowed ()
 
function isItalics ()
 
function isOutlined ()
 
function isShadowed ()
 
function isStrikethrough ()
 
function isUnderlined ()
 
function setColor (local c)
 
function setHAlign (local ha)
 
function setOutlineColor (local color)
 
function setOutlineSize (local size)
 
function setRenderMode (local m)
 
function setTTFConfig (local conf)
 
function setVAlign (local va)
 
- Public Member Functions inherited from lstg::Resource
function getInfo ()
 
function getName ()
 
function getPath ()
 
function getType ()
 

Member Function Documentation

◆ calcSize()

function calcSize ( local  text)
Parameters
textstring
Returns
vec2_table

◆ createBMF()

function createBMF ( local  name,
local  path 
)
Parameters
namestring
pathstring
Returns
lstg.ResFont

◆ createHGE()

function createHGE ( local  name,
local  path 
)
Parameters
namestring
pathstring
Returns
lstg.ResFont

◆ createLabel()

function createLabel ( )
Returns
cc.Label

◆ createTTF()

function createTTF ( local  name,
local  path,
local  fontSize 
)
Parameters
namestring
pathstring
fontSizenumber
Returns
lstg.ResFont

◆ disableAllEffects()

function disableAllEffects ( )
Returns
lstg.ResFont

◆ disableBold()

function disableBold ( )
Returns
lstg.ResFont

◆ disableGlow()

function disableGlow ( )
Returns
lstg.ResFont

◆ disableItalics()

function disableItalics ( )
Returns
lstg.ResFont

◆ disableOutline()

function disableOutline ( )
Returns
lstg.ResFont

◆ disableShadow()

function disableShadow ( )
Returns
lstg.ResFont

◆ disableStrikethrough()

function disableStrikethrough ( )
Returns
lstg.ResFont

◆ disableUnderline()

function disableUnderline ( )
Returns
lstg.ResFont

◆ enableBold()

function enableBold ( )
Returns
lstg.ResFont

◆ enableGlow()

function enableGlow ( local  color)
Parameters
colorcolor4b_table
Returns
lstg.ResFont

◆ enableItalics()

function enableItalics ( )
Returns
lstg.ResFont

◆ enableOutline()

function enableOutline ( local  color,
local  size 
)
Parameters
colorcolor4b_table
sizenumber
Returns
lstg.ResFont

◆ enableShadow()

function enableShadow ( )
Returns
lstg.ResFont

◆ enableStrikethrough()

function enableStrikethrough ( )
Returns
lstg.ResFont

◆ enableUnderline()

function enableUnderline ( )
Returns
lstg.ResFont

◆ getColor()

function getColor ( )
Returns
color4b_table

◆ getGlowColor()

function getGlowColor ( )
Returns
color4b_table

◆ getHAlign()

function getHAlign ( )
Returns
number

◆ getInfo()

function getInfo ( )
Returns
map_table

◆ getOutlineColor()

function getOutlineColor ( )
Returns
color4b_table

◆ getOutlineSize()

function getOutlineSize ( )
Returns
number

◆ getRenderMode()

function getRenderMode ( )

◆ getShadowBlurRadius()

function getShadowBlurRadius ( )
Returns
number

◆ getShadowColor()

function getShadowColor ( )
Returns
color4b_table

◆ getShadowOffset()

function getShadowOffset ( )
Returns
size_table

◆ getTTFConfig()

function getTTFConfig ( )
Returns
cc._ttfConfig

◆ getVAlign()

function getVAlign ( )
Returns
number

◆ HGE2BMF()

function HGE2BMF ( local  data,
local  outTexName 
)
Parameters
datastring
outTexNamestring
Returns
string

◆ isBold()

function isBold ( )
Returns
boolean

◆ isGlowed()

function isGlowed ( )
Returns
boolean

◆ isItalics()

function isItalics ( )
Returns
boolean

◆ isOutlined()

function isOutlined ( )
Returns
boolean

◆ isShadowed()

function isShadowed ( )
Returns
boolean

◆ isStrikethrough()

function isStrikethrough ( )
Returns
boolean

◆ isUnderlined()

function isUnderlined ( )
Returns
boolean

◆ setColor()

function setColor ( local  c)
Parameters
ccolor4b_table
Returns
lstg.ResFont

◆ setHAlign()

function setHAlign ( local  ha)
Parameters
hanumber
Returns
lstg.ResFont

◆ setOutlineColor()

function setOutlineColor ( local  color)
Parameters
colorcolor4b_table
Returns
lstg.ResFont

◆ setOutlineSize()

function setOutlineSize ( local  size)
Parameters
sizenumber
Returns
lstg.ResFont

◆ setRenderMode()

function setRenderMode ( local  m)
Parameters
mlstg.RenderMode
Returns
lstg.ResFont

◆ setTTFConfig()

function setTTFConfig ( local  conf)
Parameters
confcc._ttfConfig
Returns
lstg.ResFont

◆ setVAlign()

function setVAlign ( local  va)
Parameters
vanumber
Returns
lstg.ResFont

The documentation for this class was generated from the following file: