Comments (9)
thank you.
I will try to reproduce this bug on my Mac later.
In my code, I use AppKit built-in function to convert string to a float value.
not very sure whether it relates to locale setting.
I don't know whether I am very clear about your issue.
If you input non-integer value, for example 0.75 or 1.50, which is the standard way to represent a float value,
the converter doesn't work properly?
from super-animation-samples.
If I input 0.75, I get the popup about between 0.1 and 10.0. If I input 1.50, it automatically reset to 1.00 when I press enter.
I didn't find the source code of the Converter on the repo, is it available somewhere ? I could try to fix the bug myself if it's open source.
from super-animation-samples.
Here it is a workaround, maybe you can have a try.
Go to System Preferences/Language & Text on your Mac, in the popup dialog, select the Formats tab,
then you can change the Region, maybe you can change to Unites States, or China, then run the converter again.
from super-animation-samples.
Thanks, it's working. On Mac OS 10.8.2, the options is under Preferences -> Language & Text -> Region Tab -> Customize Numbers. There I can change the separator from ',' to '.'
from super-animation-samples.
why you wold not parse the string to replace ',' to '.' defore convert to a float from string?
from super-animation-samples.
thank you for your suggestion.
in my code, I am using AppKit built-in function to convert string to a float value, which is not under my control.
unfortunately that that function doesn't work properly if your OS language is French.
still don't know why.
yes, I could get the raw string from editor box, and convert it manually by myself to fix this bug.
:-)
from super-animation-samples.
From the behavior, I'd say you use the function 2 times : the first time to validate the input when the user press enter : this time works fine and convert the ',' to '.'
But then, you redo that validation using the converted string when the user click the resize button, which trigger a problem since the '.' isn't good anymore.
A possible solution would be to keep the float value the first time to validate it and use that instead of retrying to validate the string in the box.
from super-animation-samples.
Thank you for your suggestion.
I think I know where goes wrong after reviewing my code.
And I've just uploaded a new binary, could you help me to do a little test for this issue?
from super-animation-samples.
It's working perfectly, thanks. I'm closing the issue.
from super-animation-samples.
Related Issues (20)
- Call retain() on the sprite frames used in the animation?
- a bug in replaceSprite HOT 1
- Could add setOpacity and setColor !!? HOT 4
- trim in SpriteSheet
- scale smaller error HOT 3
- solution to rotation mix translation in one layer
- Operation in OSX 10.9 Mavericks HOT 2
- [spritesheet-artifact]some "black lines" when using Sprite Sheet HOT 1
- I suffered a strange problem HOT 2
- Super Animation Converter can't work in mac
- twice replaceSprite continue bug (little fix.) HOT 1
- cocos2dx 3.2 HOT 4
- do not work on cocos2d-x 3.2 HOT 27
- do not work in retina device on cocos2dx 3.2 HOT 15
- Request Feature HOT 3
- do not work in 64bit device on cocos2dx 2.2.6 HOT 3
- Super Animation Converter HOT 2
- How to open the .sam file HOT 1
- How to convert .sam file into a video format like .mp4 or something like that?
- Super Animation Converter 2.0 not found ?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from super-animation-samples.