mirror of
https://github.com/edubart/otclient.git
synced 2025-10-20 06:23:26 +02:00
remove game state classes
scripting improvements
This commit is contained in:
@@ -27,9 +27,16 @@
|
||||
#include <graphics/graphics.h>
|
||||
#include <graphics/textures.h>
|
||||
|
||||
Image::Image(TexturePtr texture)
|
||||
: m_texture(texture)
|
||||
{
|
||||
m_textureCoords = Rect(0, 0, m_texture->getSize());
|
||||
}
|
||||
|
||||
Image::Image(const std::string& texture)
|
||||
{
|
||||
m_texture = g_textures.get(texture);
|
||||
m_textureCoords = Rect(0, 0, m_texture->getSize());
|
||||
}
|
||||
|
||||
Image::Image(const std::string& texture, Rect textureCoords) :
|
||||
|
@@ -31,7 +31,7 @@
|
||||
class Image
|
||||
{
|
||||
public:
|
||||
Image(TexturePtr texture) : m_texture(texture) { }
|
||||
Image(TexturePtr texture);
|
||||
Image(TexturePtr texture, Rect textureCoords) : m_texture(texture), m_textureCoords(textureCoords) { }
|
||||
Image(const std::string& texture);
|
||||
Image(const std::string& texture, Rect textureCoords);
|
||||
|
Reference in New Issue
Block a user