Skip to content
Snippets Groups Projects
Commit a2eda5e9 authored by Leonard's avatar Leonard
Browse files

added event guis

parent 0f728a2d
No related branches found
No related tags found
No related merge requests found
package com.galaxytrucker.galaxytruckerreloaded.View.UI.Events;
import com.badlogic.gdx.graphics.OrthographicCamera;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.badlogic.gdx.scenes.scene2d.ui.List;
import com.galaxytrucker.galaxytruckerreloaded.Main;
/**
* Shows an event
*/
public class EventGUI {
/**
* SpriteBatch
*/
private SpriteBatch batch;
/**
* Orthographic camera
*/
private OrthographicCamera camera;
/**
* Event pages
*/
private List<EventPage> eventPages;
/**
* First event page
*/
private EventPage firstPage;
/**
* Event background texture
*/
private Texture backgroundTexture;
/**
* Setup called after initialisation
*/
private void setup() {
}
/**
* Show the event gui
*/
public void showEventGUI() {
}
/**
* Hide the event gui
*/
public void hideEventGUI() {
}
/**
* Dispose eventGUI
*/
public void disposeEventGUI() {
}
/**
* Switch event page
* if there is no next page hide the event gui
*/
private void nextPage() {
}
/**
* Constructor
*
* @param main - main class object for SpriteBatch
*/
public EventGUI(Main main) {
}
}
package com.galaxytrucker.galaxytruckerreloaded.View.UI.Events;
import com.badlogic.gdx.graphics.OrthographicCamera;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.badlogic.gdx.scenes.scene2d.ui.ImageButton;
import com.badlogic.gdx.scenes.scene2d.ui.List;
import com.galaxytrucker.galaxytruckerreloaded.Main;
/** Includes all content shown on a single event page */
public class EventPage {
/**
* SpriteBatch
*/
private SpriteBatch batch;
/**
* Orthographic camera
*/
private OrthographicCamera camera;
/**
* Icons to draw (such as rewards)
*/
private List<Texture> drawables;
/**
* Next page button
*/
private ImageButton nextPageButton;
/**
* Next page button texture
*/
private Texture nextPageButtonTexture;
/**
* Setup called after initialisation
*/
private void setup() {
}
/**
* Draw on top of event gui
*/
public void showPage() {
}
/**
* Hide the page
*/
public void hidePage() {
}
/**
* Dispose of page
*/
public void disposePage() {
}
/**
* Constructor
*
* @param main - the main class object
*/
public EventPage(Main main) {
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment