From 005c645b3cd991079dfd9bac2f207cdd2068d161 Mon Sep 17 00:00:00 2001 From: sowgro Date: Tue, 23 May 2023 00:39:57 -0400 Subject: finish gui, add new leaderboard system, redesign settings, switch lists to tables --- src/main/LeaderboardEntry.java | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 src/main/LeaderboardEntry.java (limited to 'src/main/LeaderboardEntry.java') diff --git a/src/main/LeaderboardEntry.java b/src/main/LeaderboardEntry.java new file mode 100644 index 0000000..61a0449 --- /dev/null +++ b/src/main/LeaderboardEntry.java @@ -0,0 +1,33 @@ +package main; + +import javafx.beans.property.SimpleIntegerProperty; +import javafx.beans.property.SimpleStringProperty; + +public class LeaderboardEntry +{ + private SimpleIntegerProperty score; + private SimpleStringProperty name; + + //all below is required for table view + public LeaderboardEntry(String name, int score) + { + this.name = new SimpleStringProperty(name); + this.score = new SimpleIntegerProperty(score); + } + + public int getScore() { + return score.get(); + } + + public void setScore(int score) { + this.score.set(score); + } + + public String getName() { + return name.get(); + } + + public void setName(String name) { + this.name.set(name); + } +} -- cgit v1.2.3