01.01.2015, 23:24
(
Последний раз редактировалось DialUp; 18.10.2015 в 16:07.
)
PROJECT CONTINUES HERE AS INCLUDE
================================================== ==============
Hello! Some time ago I made the tool for using pictures in your gamemodes. Now I present the plugin with that feature!
It wasn't easy to use the tool, but now is't VERY easy. Just use CreateArt / DestroyArt functions like CreateObject / DestroyObject ones:
I changed the pattern, now second parameter is the art type:
CreateArt(path_to_png_image, art_type, other_default_parameters...)
example:
also now it supports streamer plugin (use CreateDynamicArt).
I'm total noob in plugin writing, so you can modify, improve or do whatever you want with it.
SOURCE CODE
(include and DLL files are in /build/ folder)
demo:
yeah, that's what this thing was made for. To place the photo of Redirect_Left (owner and creator of sumo server) to the map.
currently plugin supports 4 size types:
type 2, size = X
type 3, size ~= 3*X
type 1, size ~= 6*X
type 0, size ~= 12*X
(it's not easy to find not-shadowed almost square single-textured objexts!!)
(if you do REALLY need another sizes, ask me, there're few less convenient objects unused)
size types:
The result isn't perfect, the objects I've used aren't square, so resize your original pictures to achieve better results.
It's still VERY recommended to use pictures with dimensions multiple of 15
================================================== ==============
Hello! Some time ago I made the tool for using pictures in your gamemodes. Now I present the plugin with that feature!
It wasn't easy to use the tool, but now is't VERY easy. Just use CreateArt / DestroyArt functions like CreateObject / DestroyObject ones:
I changed the pattern, now second parameter is the art type:
CreateArt(path_to_png_image, art_type, other_default_parameters...)
example:
Код:
#include <s-art> ....... new art = CreateArt("D:\\my_image.png", 2, -704.1531, 1849.0200, 18, 45, 45, 45, 100); //picture should be in 24-bit PNG type ....... DestroyArt(art);
I'm total noob in plugin writing, so you can modify, improve or do whatever you want with it.
SOURCE CODE
(include and DLL files are in /build/ folder)
demo:
yeah, that's what this thing was made for. To place the photo of Redirect_Left (owner and creator of sumo server) to the map.
currently plugin supports 4 size types:
type 2, size = X
type 3, size ~= 3*X
type 1, size ~= 6*X
type 0, size ~= 12*X
(it's not easy to find not-shadowed almost square single-textured objexts!!)
(if you do REALLY need another sizes, ask me, there're few less convenient objects unused)
size types:
The result isn't perfect, the objects I've used aren't square, so resize your original pictures to achieve better results.
It's still VERY recommended to use pictures with dimensions multiple of 15