Add Input functionality to Ultra
- Add point InSpace check to PD::Li::Math - Add Universal AlignmentCenter flag for Horizontal and and Vertical Alignment - Add Fallbackfont to Layout (if you dont want to set font per object) - Add Button Object WIP - Rename OnHover to OnFocus and add OnUnfocus - Move font and FontScale to ElementBase (for fallback logic etc) - Add UpdateInput func to ElementBase - Corectly Set fontScale in Text Rendering - Update ecample
This commit is contained in:
@@ -15,14 +15,10 @@ class PD_API Text : public ElementBase {
|
||||
|
||||
void SetColor(const PD::Color& color) { pColor = color; }
|
||||
void SetText(const std::string& text) { pText = text; }
|
||||
void SetFont(PD::Li::Font& font) { pFont = &font; }
|
||||
void SetScale(float scale) { pScale = scale; }
|
||||
|
||||
private:
|
||||
PD::Color pColor;
|
||||
float pScale = 1.f;
|
||||
std::string pText;
|
||||
PD::Li::Font* pFont = nullptr;
|
||||
};
|
||||
} // namespace Ultra
|
||||
|
||||
|
||||
Reference in New Issue
Block a user