feat: add leaderboard
This commit is contained in:
@@ -18,11 +18,11 @@ ApplicationWindow {
|
||||
|
||||
ListElement {
|
||||
name: "Round 1"
|
||||
mode: GameService.GameScoring.FirstGuess
|
||||
item_id: 100
|
||||
item_name: "Item 1"
|
||||
mode: GameService.GameScoring.FirstGuessThenHighestAmount
|
||||
item_id: 1061153
|
||||
item_name: "Dreamweave Silk Selection Gift Box"
|
||||
item_image: ""
|
||||
clue: "Clue 1"
|
||||
clue: "Dreamweave Silk Selection Gift Box"
|
||||
}
|
||||
ListElement {
|
||||
name: "Round 2"
|
||||
@@ -50,11 +50,16 @@ ApplicationWindow {
|
||||
}
|
||||
}
|
||||
|
||||
SqlLeaderboardModel {
|
||||
id: leaderboard
|
||||
}
|
||||
|
||||
IdleView {
|
||||
id: idleView
|
||||
|
||||
anchors.fill: parent
|
||||
|
||||
leaderboard: leaderboard
|
||||
rounds: rounds
|
||||
selectedRound: rounds.get(0)
|
||||
onRoundSelected: {
|
||||
@@ -75,6 +80,7 @@ ApplicationWindow {
|
||||
onClose: {
|
||||
idleView.visible = true
|
||||
ongoingView.visible = false
|
||||
leaderboard.select()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user