skymp
skymp copied to clipboard
feat(skyrim-platform): extend texts API
Add some new stuff
Setters
-
skyrimPlatform.setTextSize(textId: number, size: float)
- set text (not font) size. -
skyrimPlatform.setTextRotation(textId, rotation: float)
- set text rotation. -
skyrimPlatform.setTextFont(textId, path: string)
- set text font from relative path "Data/Platform/Fonts/Tavern.spritefont". -
skyrimPlatform.setTextDepth(textId, depth: int)
- set text z-index of the text. -
skyrimPlatform.setTextEffect(textId, effect: int)
- set sprite effect [None = 0, FlipHorizontally = 1, FlipVertically = 2] -
skyrimPlatform.setTextOrigin(textId, origin [x,y])
- set text pivot (center point).
Getters
-
skyrimPlatform.getTextSize(textId)
- returns the size of the text -
skyrimPlatform.getTextRotation(textId)
- returns the rotation of the text -
skyrimPlatform.getTextFont(textId)
- returns the path to the font -
skyrimPlatform.getTextDepth(textId)
- returns z-index of the text -
skyrimPlatform.getTextEffect(textId)
- returns effect enum. -
skyrimPlatform.getTextOrigin(textId)
- returns pivot (center point) of the text
super ficha srazy v prod ๐โค๏ธ๐๐๐โ๏ธ๐ค๐๐๐ถ๐๐๐๐
ะัะฐัะฐะฒะฐ! ะะฐะบะพะฝัะธะป ะฝะฐัะฐัะพะต!
@SupAidmi Please manage this PR to go forward (assign a reviewer, etc)
Also there're problems with pass parameter via copy in original code. Would be nice if someone will fix that.
closing due to inactivity. please let us know if you'll be available to get back to this