Package transientlibs.preui.objects.gui.interfaces

Examples of transientlibs.preui.objects.gui.interfaces.IImage


        //Marker
        if (byTypeCode == MarkerType) {
           
            Log.info("Spawn marker");
           
            IImage assignImage = Detonator.INSTANCE.imageProvider.getImage(setImage);
            result = new Marker(assignImage, assignImage, setX, setY);
        }

        //AnimationMarker
        if (byTypeCode == AnimationMarkerType) {

            Log.notImplemented();
            //AnimationMarker preresult = new AnimationMarker(setX, setY, Animations.getAnimationByID(setImage));
            //preresult.animation = Animations.getAnimationByID(setImage).animation;
            //result = preresult;
        }


        //ButtonGroup
        if (byTypeCode == ButtonGroupType) {
            IImage assignImage;
            if (setImage != -1) {
                assignImage = Detonator.INSTANCE.imageProvider.getImage(setImage);
            } else {
                assignImage = null;
            }

        }


        //TextMarker
        if (byTypeCode == TextMarkerType) {

            Log.info("Spawn textmarker");
           
            IImage assignImage;
            if (setImage != -1) {
                assignImage = Detonator.INSTANCE.imageProvider.getImage(setImage);
            } else {
                assignImage = null;
            }

            IImage assignHoveredImage;
            if (setHoveredImage != -1) {
                assignHoveredImage = Detonator.INSTANCE.imageProvider.getImage(setHoveredImage);
            } else {
                assignHoveredImage = assignImage;
            }
View Full Code Here


    public void init() {
        super.init();
       
        //Log.info("WAAAAAAAT: ");

        IImage team = Detonator.INSTANCE.imageProvider.getImage("team_logo");

        titleMarker = new Marker(team, 1, 1);
        passMarkerNoHover(titleMarker);
        titleMarker.centerImage();
View Full Code Here

        return addOption(setImage, setImage);
    }

    public TextMarker addOption(IImage setImage, IImage hoverImage) {

        IImage oldButton = buttonImage;
        IImage oldHButton = hoveredButtonImage;

        buttonImage = setImage;
        hoveredButtonImage = hoverImage;
        addOption("");
View Full Code Here

            withResult = true;
        }

        if (nowStr.equals("image")) {
            //Log.info(nowStr);
            IImage images = Detonator.INSTANCE.imageProvider.getImage(analyst.getNextString());
            if (scale != 1) {
                Log.info("Rescale: "+images.getName());
                //images = TransientSlickImage.rescaleImage(images, scale);
                images = Detonator.INSTANCE.imageProvider.rescaleImage (images, scale);
            }
            lastCard.image = images;
View Full Code Here

TOP

Related Classes of transientlibs.preui.objects.gui.interfaces.IImage

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.