|
|
@@ -52,7 +52,7 @@ extern const char* horizontalAlignments[];
|
|
|
extern const char* UI_CATEGORY;
|
|
|
|
|
|
Text::Text(Context* context) :
|
|
|
- Selectable(context),
|
|
|
+ UISelectable(context),
|
|
|
fontSize_(DEFAULT_FONT_SIZE),
|
|
|
textAlignment_(HA_LEFT),
|
|
|
rowSpacing_(1.0f),
|
|
|
@@ -79,7 +79,7 @@ void Text::RegisterObject(Context* context)
|
|
|
{
|
|
|
context->RegisterFactory<Text>(UI_CATEGORY);
|
|
|
|
|
|
- URHO3D_COPY_BASE_ATTRIBUTES(Selectable);
|
|
|
+ URHO3D_COPY_BASE_ATTRIBUTES(UISelectable);
|
|
|
URHO3D_UPDATE_ATTRIBUTE_DEFAULT_VALUE("Use Derived Opacity", false);
|
|
|
URHO3D_MIXED_ACCESSOR_ATTRIBUTE("Font", GetFontAttr, SetFontAttr, ResourceRef, ResourceRef(Font::GetTypeStatic()), AM_FILE);
|
|
|
URHO3D_ATTRIBUTE("Font Size", float, fontSize_, DEFAULT_FONT_SIZE, AM_FILE);
|
|
|
@@ -100,7 +100,7 @@ void Text::RegisterObject(Context* context)
|
|
|
|
|
|
void Text::ApplyAttributes()
|
|
|
{
|
|
|
- Selectable::ApplyAttributes();
|
|
|
+ UISelectable::ApplyAttributes();
|
|
|
|
|
|
// Localize now if attributes were loaded out-of-order
|
|
|
if (autoLocalizable_ && stringId_.Length())
|
|
|
@@ -137,7 +137,7 @@ void Text::GetBatches(PODVector<UIBatch>& batches, PODVector<float>& vertexData,
|
|
|
}
|
|
|
|
|
|
// Hovering and/or whole selection batch
|
|
|
- Selectable::GetBatches(batches, vertexData, currentScissor);
|
|
|
+ UISelectable::GetBatches(batches, vertexData, currentScissor);
|
|
|
|
|
|
// Partial selection batch
|
|
|
if (!selected_ && selectionLength_ && charLocations_.Size() >= selectionStart_ + selectionLength_ && selectionColor_.a_ > 0.0f)
|
|
|
@@ -468,7 +468,7 @@ String Text::GetTextAttr() const
|
|
|
|
|
|
bool Text::FilterImplicitAttributes(XMLElement& dest) const
|
|
|
{
|
|
|
- if (!Selectable::FilterImplicitAttributes(dest))
|
|
|
+ if (!UISelectable::FilterImplicitAttributes(dest))
|
|
|
return false;
|
|
|
|
|
|
if (!IsFixedWidth())
|