本文整理了Java中com.badlogic.gdx.scenes.scene2d.ui.Label.act()
方法的一些代码示例,展示了Label.act()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Label.act()
方法的具体详情如下:
包路径:com.badlogic.gdx.scenes.scene2d.ui.Label
类名称:Label
方法名:act
暂无
代码示例来源:origin: SquidPony/SquidLib
/**
* Updates the actor based on time. Typically this is called each frame by
* {@link com.badlogic.gdx.scenes.scene2d.Stage#act(float)}.
* <p>
* The default implementation calls
* {@link com.badlogic.gdx.scenes.scene2d.Action#act(float)} on each action and removes actions that are complete.
*
* @param delta Time in seconds since the last frame.
*/
@Override
public void act(float delta) {
super.act(delta);
progress = (progress + delta) % (loopTime - 0.001f);
}
代码示例来源:origin: Var3D/var3dframe
public void act(float delta){
super.act(delta);
if(getActions().size>0){
fontCache.tint(getColor());
}
}
代码示例来源:origin: jsjolund/GdxDemo3D
@Override
public void act (float delta) {
T newValue = getValue();
if (!oldValue.equals(newValue)) {
copyValue(newValue, oldValue);
StringBuilder sb = getText();
sb.setLength(appendIndex);
sb.append(oldValue);
invalidateHierarchy();
}
super.act(delta);
}
代码示例来源:origin: jsjolund/GdxDemo3D
@Override
public void act (float delta) {
int newValue = getValue();
if (oldValue != newValue) {
oldValue = newValue;
StringBuilder sb = getText();
sb.setLength(appendIndex);
sb.append(oldValue);
invalidateHierarchy();
}
super.act(delta);
}
代码示例来源:origin: jsjolund/GdxDemo3D
@Override
public void act (float delta) {
float newValue = getValue();
if (oldValue != newValue) {
oldValue = newValue;
StringBuilder sb = getText();
sb.setLength(appendIndex);
sb.append(oldValue);
invalidateHierarchy();
}
super.act(delta);
}
内容来源于网络,如有侵权,请联系作者删除!