Ejemplo n.º 1
0
void TextAtlas::adaptRenderers()
{
    if (_labelAtlasRendererAdaptDirty)
    {
        labelAtlasScaleChangedWithSize();
        _labelAtlasRendererAdaptDirty = false;
    }
}
Ejemplo n.º 2
0
void TextAtlas::setProperty(const std::string& stringValue, const std::string& charMapFile, int itemWidth, int itemHeight, const std::string& startCharMap)
{
    _stringValue = stringValue;
    _charMapFileName = charMapFile;
    _itemWidth = itemWidth;
    _itemHeight = itemHeight;
    _startCharMap = startCharMap;
    _labelAtlasRenderer->initWithString(stringValue, charMapFile, itemWidth, itemHeight, (int)(startCharMap[0]));
    updateAnchorPoint();
    labelAtlasScaleChangedWithSize();
}
Ejemplo n.º 3
0
void TextAtlas::onSizeChanged()
{
    Widget::onSizeChanged();
    labelAtlasScaleChangedWithSize();
}
Ejemplo n.º 4
0
void TextAtlas::setStringValue(const std::string& value)
{
    _stringValue = value;
    _labelAtlasRenderer->setString(value);
    labelAtlasScaleChangedWithSize();
}
Ejemplo n.º 5
0
void UILabelAtlas::onSizeChanged()
{
    labelAtlasScaleChangedWithSize();
}
Ejemplo n.º 6
0
void UILabelAtlas::setStringValue(const char *value)
{
    m_pLaberAtlasRenderer->setString(value);
    labelAtlasScaleChangedWithSize();
}
Ejemplo n.º 7
0
void UILabelAtlas::setProperty(const char *stringValue, const char *charMapFile, int itemWidth, int itemHeight, const char *startCharMap,bool useSpriteFrame)
{
    m_pLaberAtlasRenderer->setProperty(stringValue, charMapFile, itemWidth, itemHeight, (int)(startCharMap[0]));
    updateAnchorPoint();
    labelAtlasScaleChangedWithSize();
}