com.github.czyzby.lml.parser.impl.attribute.touchpad.ResetOnTouchUpLmlAttribute Maven / Gradle / Ivy
package com.github.czyzby.lml.parser.impl.attribute.touchpad;
import com.badlogic.gdx.scenes.scene2d.ui.Touchpad;
import com.github.czyzby.lml.parser.LmlParser;
import com.github.czyzby.lml.parser.tag.LmlAttribute;
import com.github.czyzby.lml.parser.tag.LmlTag;
/** See {@code Touchpad#setResetOnTouchUp(boolean)}. Mapped to "resetOnTouchUp".
*
* @author MJ */
public class ResetOnTouchUpLmlAttribute implements LmlAttribute {
@Override
public Class getHandledType() {
return Touchpad.class;
}
@Override
public void process(final LmlParser parser, final LmlTag tag, final Touchpad actor, final String rawAttributeData) {
actor.setResetOnTouchUp(parser.parseBoolean(rawAttributeData, actor));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy