{"action":"created","issue":{"url":"https://api.github.com/repos/libgdx/libgdx/issues/2947","labels_url":"https://api.github.com/repos/libgdx/libgdx/issues/2947/labels{/name}","comments_url":"https://api.github.com/repos/libgdx/libgdx/issues/2947/comments","events_url":"https://api.github.com/repos/libgdx/libgdx/issues/2947/events","html_url":"https://github.com/libgdx/libgdx/issues/2947","id":62147906,"number":2947,"title":"ProgressBar#setAnimateDuration(float) is broken","user":{"login":"dermetfan","id":4956158,"avatar_url":"https://avatars.githubusercontent.com/u/4956158?v=3","gravatar_id":"","url":"https://api.github.com/users/dermetfan","html_url":"https://github.com/dermetfan","followers_url":"https://api.github.com/users/dermetfan/followers","following_url":"https://api.github.com/users/dermetfan/following{/other_user}","gists_url":"https://api.github.com/users/dermetfan/gists{/gist_id}","starred_url":"https://api.github.com/users/dermetfan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dermetfan/subscriptions","organizations_url":"https://api.github.com/users/dermetfan/orgs","repos_url":"https://api.github.com/users/dermetfan/repos","events_url":"https://api.github.com/users/dermetfan/events{/privacy}","received_events_url":"https://api.github.com/users/dermetfan/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-16T17:02:42Z","updated_at":"2015-03-16T22:03:25Z","closed_at":"2015-03-16T22:02:49Z","body":"Probably since e15b3f49a5a7d71cc056a62e5c43f0b2b72060ff.\r\n\r\nHere's a test. The ProgressBar's knob should slide to left and right repeatedly but is just set there without animation.\r\n\r\n```java\r\npublic class ProgressBarTest extends GdxTest implements Screen {\r\n\r\n\tprivate Stage stage;\r\n\tprivate ProgressBar bar;\r\n\r\n\t@Override\r\n\tpublic void create() {\r\n\t\tGdx.input.setInputProcessor(stage = new Stage());\r\n\t\tSkin skin = new Skin(Gdx.files.internal(\"data/uiskin.json\"));\r\n\r\n\t\tTable table = new Table(skin);\r\n\t\ttable.setFillParent(true);\r\n\r\n\t\tbar = new ProgressBar(0, 100, 1, false, skin);\r\n\t\tbar.setAnimateDuration(.75f);\r\n\r\n\t\ttable.add(bar).size(500, 10);\r\n\r\n\t\tstage.addActor(table);\r\n\t}\r\n\r\n\tfloat time, duration = 1;\r\n\r\n\t@Override\r\n\tpublic void render() {\r\n\t\tGdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);\r\n\r\n\t\tfloat delta = Gdx.graphics.getDeltaTime();\r\n\r\n\t\tif((time += delta) > duration) {\r\n\t\t\tbar.setValue(bar.getValue() < 50 ? 100 : 0);\r\n\t\t\ttime = 0;\r\n\t\t}\r\n\r\n\t\tstage.act(delta);\r\n\t\tstage.draw();\r\n\t}\r\n\r\n\t@Override\r\n\tpublic void resize(int width, int height) {\r\n\t\tstage.getViewport().update(width, height, true);\r\n\t}\r\n\r\n\t@Override\r\n\tpublic void dispose() {\r\n\t\tstage.dispose();\r\n\t}\r\n\r\n\t// if used as Screen\r\n\r\n\t@Override\r\n\tpublic void show() {\r\n\t\tcreate();\r\n\t}\r\n\r\n\t@Override\r\n\tpublic void render(float delta) {\r\n\t\trender();\r\n\t}\r\n\r\n\t@Override\r\n\tpublic void hide() {}\r\n\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/libgdx/libgdx/issues/comments/81961547","html_url":"https://github.com/libgdx/libgdx/issues/2947#issuecomment-81961547","issue_url":"https://api.github.com/repos/libgdx/libgdx/issues/2947","id":81961547,"user":{"login":"NathanSweet","id":434010,"avatar_url":"https://avatars.githubusercontent.com/u/434010?v=3","gravatar_id":"","url":"https://api.github.com/users/NathanSweet","html_url":"https://github.com/NathanSweet","followers_url":"https://api.github.com/users/NathanSweet/followers","following_url":"https://api.github.com/users/NathanSweet/following{/other_user}","gists_url":"https://api.github.com/users/NathanSweet/gists{/gist_id}","starred_url":"https://api.github.com/users/NathanSweet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NathanSweet/subscriptions","organizations_url":"https://api.github.com/users/NathanSweet/orgs","repos_url":"https://api.github.com/users/NathanSweet/repos","events_url":"https://api.github.com/users/NathanSweet/events{/privacy}","received_events_url":"https://api.github.com/users/NathanSweet/received_events","type":"User","site_admin":false},"created_at":"2015-03-16T22:03:25Z","updated_at":"2015-03-16T22:03:25Z","body":"Oopsie. Thanks!"}}