五月天青色头像情侣网名,国产亚洲av片在线观看18女人,黑人巨茎大战俄罗斯美女,扒下她的小内裤打屁股

歡迎光臨散文網(wǎng) 會(huì)員登陸 & 注冊(cè)

Custom Sprites & Texts Function

2023-08-31 01:22 作者:是白不是懷特  | 我要投稿

單純懶得翻api自己復(fù)制過(guò)來(lái)的 Creating/Adding/Removing Sprite makeLuaSprite(tag:String, image:String, x:Float, y:Float) Initializes the creation of the Lua sprite object. If the value has the same tag name on the tag parameter, it will be removed from the game; this rule is applied to all tag parameters. If you want a plain colored texture, leave the image parameter empty or declare a nil value. And add makeGraphic() below the makeLuaSprite() function. Note: The sprite image must be relative to mods/images, assets/images, or assets/shared/images folders. This is applied to all functions with image parameters. tag - The sprite object tag name to be used. image - The image sprite for the sprite to use. x - The x value of the sprite object to be set. y - The y value of the sprite object to be set. makeAnimatedLuaSprite(tag:String, image:String, x:Float, y:Float, ?spriteType:String = "sparrow") Initializes the creation of the Lua sprite object with supported animations. tag - The sprite object tag name to be used. image - The image sprite for the sprite to use. x - The x value of the sprite object to be set. y - The y value of the sprite object to be set. spriteType - An optional parameter, The specified sprite type of the Lua sprite could be either a sprite-sheet for sparrow or texture-atlas for tex; Defualt value: sparrow. addLuaSprite(tag:String, front:Bool) Adds the Lua sprite object inside the game. This function will overlap other sprite objects if place below eachother. tag - The sprite object tag name to be used. front - Whether if the sprite object gets added on top of the characters, Defualt is false. removeLuaSprite(tag:String, destroy:Bool) Removes the Lua sprite object inside the game. Recommended to use this if the sprite object isn't used anymore, for performance purposes. tag - The sprite object tag name to be used. destroy - Whether if the sprite object will be removed permanently making it unable to be re-added; Defualt is false. Creating/Adding/Removing Text makeLuaText(tag:String, text:String, width:Int, x:Float, y:Float) Initializes the creation of the Lua text object. tag - The text object tag name to be used. text - The text content of the text. width - The box width of the text; setting it to 0 will automatically determine the width for you. x - The x value of the sprite object to be set. y - The y value of the sprite object to be set. addLuaText(tag:String) Adds the Lua text object inside the game. This function will overlap other text objects if place below each other. tag - The text object tag name to be used. removeLuaText(tag:String, destroy:Bool) Removes the Lua text object inside the game. Recommended to use this if the text object isn't used anymore, for performance purposes. tag - The text object tag name to be used. destroy - Whether if the text object will be removed permanently making it unable to be re-added; Default is false. Text Property Setters setTextString(tag:String, text:String) Sets the text object current text content with a new text content. tag - The text object tag name to be used. string - The new text content of the text. setTextSize(tag:String, size:Int) Sets the text object current size with a new value. tag - The text object tag name to be used. size - The new text size of the text. setTextWidth(tag:String, width:Float) Sets the text object current box width with a new value. tag - The text object tag name to be used. width - The new text box width of the text. setTextBorder(tag:String, size:Int, color:String) Sets the text object current border with a new value, it can even change the color of it. tag - The text object tag name to be used. size - The new text border size of the text. color - The new text border color of the text. setTextColor(tag:String, color:String) Sets the text object current text color with a new hex color. tag - The text object tag name to be used. color - The new text color of the text. setTextAlignment(tag:String, alignment:String = 'left') Sets the text object current alignment with a new value. tag - The text object tag name to be used. alignment - The new text alignment of the text; Defualt value: left. setTextFont(tag:String, font:String) Sets the text object current font with a new font. Note: The text font must be relative to mods/fonts folder. tag - The text object tag name to be used. font - The new text font of the text; The font file format should be ttf. setTextItalic(tag:String, italic:Bool) Sets the text object into italicize. (Who the hell even uses this???) tag - The text object tag name to be used. italic - Whether will be italicized or not. Text Property Getters getTextString(tag:String) Gets the text object current text content. tag - The text object tag name to be used. getTextSize(tag:String) Gets the text object current size value. tag - The text object tag name to be used. getTextWidth(tag:String) Gets the text object current box width. tag - The text object tag name to be used. getTextFont(tag:String, font:String) Gets the text object current font. tag - The text object tag name to be used.

Custom Sprites & Texts Function的評(píng)論 (共 條)

分享到微博請(qǐng)遵守國(guó)家法律
都匀市| 额敏县| 常宁市| 无棣县| 天门市| 襄垣县| 伊川县| 建德市| 承德市| 宽甸| 丁青县| 改则县| 灵宝市| 滨州市| 梓潼县| 视频| 永丰县| 新巴尔虎左旗| 武冈市| 镇赉县| 基隆市| 丹棱县| 莱西市| 璧山县| 宿松县| 绥棱县| 达孜县| 灵璧县| 金堂县| 同江市| 平乡县| 柘城县| 焦作市| 错那县| 泗阳县| 凉城县| 宁津县| 贵定县| 呼伦贝尔市| 安福县| 淳安县|