package fr.evolving.screens; import java.util.Timer; import java.util.TimerTask; import com.badlogic.gdx.Game; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.Input; import com.badlogic.gdx.Screen; import com.badlogic.gdx.graphics.Color; import com.badlogic.gdx.scenes.scene2d.Actor; import com.badlogic.gdx.scenes.scene2d.Group; import com.badlogic.gdx.scenes.scene2d.InputEvent; import com.badlogic.gdx.scenes.scene2d.Stage; import com.badlogic.gdx.scenes.scene2d.Touchable; import com.badlogic.gdx.scenes.scene2d.actions.Actions; import com.badlogic.gdx.scenes.scene2d.ui.Button; import com.badlogic.gdx.scenes.scene2d.ui.ButtonGroup; import com.badlogic.gdx.scenes.scene2d.ui.Image; import com.badlogic.gdx.scenes.scene2d.ui.ImageButton; import com.badlogic.gdx.scenes.scene2d.ui.ImageTextButton; import com.badlogic.gdx.scenes.scene2d.ui.Label; import com.badlogic.gdx.scenes.scene2d.ui.Table; import com.badlogic.gdx.scenes.scene2d.ui.TextArea; import com.badlogic.gdx.scenes.scene2d.ui.TextButton; import com.badlogic.gdx.scenes.scene2d.ui.TextField; import com.badlogic.gdx.scenes.scene2d.ui.TextField.TextFieldListener; import com.badlogic.gdx.scenes.scene2d.ui.VerticalGroup; import com.badlogic.gdx.scenes.scene2d.utils.ChangeListener; import com.badlogic.gdx.scenes.scene2d.utils.ClickListener; import com.badlogic.gdx.scenes.scene2d.utils.DragAndDrop; import com.badlogic.gdx.scenes.scene2d.utils.DragAndDrop.Payload; import com.badlogic.gdx.scenes.scene2d.utils.DragAndDrop.Source; import com.badlogic.gdx.scenes.scene2d.utils.DragAndDrop.Target; import com.badlogic.gdx.utils.Align; import com.badlogic.gdx.utils.Array; import fr.evolving.UI.ButtonLevel; import fr.evolving.UI.Objectives; import fr.evolving.UI.ServerList; import fr.evolving.UI.Transhower; import fr.evolving.UI.Translist; import fr.evolving.UI.VertiBarre; import fr.evolving.UI.Worldlist; import fr.evolving.assets.AssetLoader; import fr.evolving.assets.InitWorlds; import fr.evolving.assets.Preference; import fr.evolving.automata.Grid; import fr.evolving.automata.Level; import fr.evolving.automata.Transmuter; import fr.evolving.automata.Worlds; import fr.evolving.automata.Worlds.LinkDelMethod; import fr.evolving.automata.Worlds.State; import fr.evolving.database.Base; import fr.evolving.dialogs.WarningDialog; import fr.evolving.renderers.LevelRenderer; public class LevelScreen implements Screen { public Array buttonLevels; private LevelRenderer Renderer; private float runTime; private Timer ScrollTimer; private TimerTask ScrollTask; private Stage stage; private Table table; private WarningDialog dialog; private ImageButton Previous, Next, Exit, logosmall, databaseSave, adder, signer, finisher, deletelinker, deletebutton, addbutton, unlocked, duplicate, moveit, link, script; public ImageButton modify; private Image MenuSolo, MenuMulti, MenuScenario; private ImageTextButton cout, tech, cycle, temp, rayon, nrj, cycle_orig, temp_orig, rayon_orig, nrj_orig, up_cycle, up_temp, up_rayon, up_nrj, research, up; private TextButton buttonConnect, buttonPlay, buttonStat, buttonSave, buttonApply, buttonPlaythis; private ServerList Statdata, Userdata, Gamedata; private Worldlist Worlddata; private Label Statdatalabel, Userdatalabel, Gamedatalabel, Worlddatalabel, rewardlabel, goallabel, ressourcelabel, handicaplabel, initiallabel; private TextField worldfield; private TextArea TextDescriptive; public Worlds worlds; private Objectives Victory; private VerticalGroup vertibar,vertibarmod; public ButtonLevel selected; public int addervalue; private ButtonGroup