Kazz Kzupzarski
New Member
- Joined
- May 22, 2018
- Messages
- 2
- Reaction score
- 0
Hello guys.
I need render a simple PNG image on the map.
If a have a image with 128x128 pixels, it will render on 4x4 tiles (sqms).
I try use the base source from "load graphics from png files", but I failed.
I need a LUA function for draw/delete image too.
Example code:
Thank you,
Kazz K.
I need render a simple PNG image on the map.
If a have a image with 128x128 pixels, it will render on 4x4 tiles (sqms).
I try use the base source from "load graphics from png files", but I failed.
GitHub - JSkalskiSBG/otclient at spr_from_png
An alternative tibia client for otserv written in C++11 and Lua, made with a modular system that uses lua scripts for ingame interface and functionality, making otclient flexible and easy to custom...
github.com
I need a LUA function for draw/delete image too.
Example code:
Lua:
mapImage = g_game.functionToLoadImage("data/map/map_128x128.png");
mode = AFTER_RENDER_PLAYERS; -- or BEFORE_RENDER_PLAYERS
mapImageRendered = g_game.drawPngMap(mapImage, posX, posY, posZ, mode)
g_game.deletePngMap(mapImageRendered)
Thank you,
Kazz K.