Giter Club home page Giter Club logo

Comments (7)

SunLightJuly avatar SunLightJuly commented on September 22, 2024

经测试并无此现象,能否将你的运行环境和条件描述更清楚一些?

from v3quick.

skyblue avatar skyblue commented on September 22, 2024

update:
使用了cc.Label:createWithTTF():enableOutline() 后随机出现
另enableGlow和enableShadow似乎无效

from v3quick.

SunLightJuly avatar SunLightJuly commented on September 22, 2024

已经重现,原因待查。
enableGlow和enableShadow已经试过是有效的哦,不过也会随机出现stack overflow问题。

from v3quick.

SunLightJuly avatar SunLightJuly commented on September 22, 2024

使用cc.Director:getInstance():setDisplayStats(false)关闭左下角的调试提示后,不会出现崩溃。请skyblue帮确认一下你那边是否也如此。

from v3quick.

skyblue avatar skyblue commented on September 22, 2024

@SunLightJuly setDisplayStats(false)后不崩溃
ps: 能否顺便提供下测试的示例代码? 我一直调不出enableGlow和enableShadow

from v3quick.

SunLightJuly avatar SunLightJuly commented on September 22, 2024

@skyblue

local ttf = cc.Label:createWithTTF("Hello--World", "arial.ttf", 64)
ttf:setPosition(200, 200)
ttf:enableGlow(cc.c4b(255, 255, 0, 255))
-- ttf:enableShadow(cc.c4b(0, 255, 0, 255))
self:addChild(ttf)

Glow和Shadow不能一起用,一起用只有一个能生效

from v3quick.

SunLightJuly avatar SunLightJuly commented on September 22, 2024

已经修复。原因在于Director的_secondsPerFrame变量未初始化。在Director::showStats()中有如下代码:
char buffer[30];
......
sprintf(buffer, "%.1f / %.3f", _frameRate, _secondsPerFrame);

由于_secondsPerFrame未初始化可能很大,造成字串超长引起数组越界。

from v3quick.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.