RPC image updates depending on ingame background now!

This commit is contained in:
hailey
2021-09-26 14:02:35 +10:00
parent 50f6010ed1
commit 817ffd5c13
24 changed files with 13 additions and 8 deletions

View File

@@ -27,9 +27,7 @@ function GameScene:new(game_mode, ruleset, inputs)
DiscordRPC:update({
details = self.game.rpc_details,
state = self.game.name,
--largeImageText = "Level "..self.game.level????
largeImageKey = "ingame-0"
--largeImageKey = ingame-<section>
largeImageKey = "ingame-"..self.game:getBackground().."00"
})
end
@@ -41,6 +39,11 @@ function GameScene:update()
end
self.game:update(inputs, self.ruleset)
self.game.grid:update()
print("ingame-"..self.game:getBackground().."00")
DiscordRPC:update({
largeImageKey = "ingame-"..self.game:getBackground().."00"
})
end
end