24 lines
No EOL
621 B
C++
Executable file
24 lines
No EOL
621 B
C++
Executable file
#pragma once
|
|
|
|
#include "text_only_input_field.hpp"
|
|
#include "../../headers/spriteobject.hpp"
|
|
|
|
namespace asloengine
|
|
{
|
|
|
|
class InputField : public TextOnlyInputField, public SpriteObject
|
|
{
|
|
|
|
public:
|
|
float text_vertical_offset;
|
|
|
|
InputField(sf::String _name, sf::Vector2f _size, sf::Font& _font, sf::Texture& _texture, uint _text_size = 30, int _max_length = 999, sf::String _default_text = "");
|
|
~InputField();
|
|
|
|
virtual void draw() override;
|
|
virtual void on_main_property_update() override;
|
|
virtual void on_start() override;
|
|
|
|
};
|
|
|
|
} |