Fixed alignment on UI Label
This commit is contained in:
@ -36,11 +36,18 @@ namespace Dawn {
|
||||
int32_t quadCount = 0;
|
||||
};
|
||||
|
||||
enum UILabelVerticalAlign {
|
||||
UI_LABEL_VERTICAL_ALIGN_TOP,
|
||||
UI_LABEL_VERTICAL_ALIGN_MIDDLE,
|
||||
UI_LABEL_VERTICAL_ALIGN_BOTTOM
|
||||
};
|
||||
|
||||
class UILabel : public UIComponentRenderable {
|
||||
private:
|
||||
Mesh mesh;
|
||||
FontShaderBuffer shaderBuffer;
|
||||
std::map<TrueTypeFaceTexture*, int32_t> textureMap;
|
||||
bool_t ignoreAlignmentUpdate = false;
|
||||
|
||||
public:
|
||||
int32_t quadStart = 0;
|
||||
@ -55,6 +62,9 @@ namespace Dawn {
|
||||
|
||||
StateEvent<> eventTextChanged;
|
||||
|
||||
// @optional
|
||||
StateProperty<float_t> lineHeight;
|
||||
|
||||
UILabel(SceneItem *item);
|
||||
|
||||
void onStart() override;
|
||||
|
Reference in New Issue
Block a user