more rpc stuff!

This commit is contained in:
hailey 2021-09-26 09:51:43 +10:00
parent b28759e0c8
commit ea38ebb89d
7 changed files with 11 additions and 7 deletions

BIN
res/img/rpc/ingame-0.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

View File

Before

Width:  |  Height:  |  Size: 1.2 MiB

After

Width:  |  Height:  |  Size: 1.2 MiB

View File

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

View File

@ -27,9 +27,9 @@ function ConfigScene:new()
-- load current config -- load current config
self.config = config.input self.config = config.input
self.highlight = 1 self.highlight = 1
DiscordRPC:update({ DiscordRPC:update({
details = "In menus", details = "In settings",
state = "Changing game settings", state = "Changing game settings",
}) })
@ -52,7 +52,7 @@ function ConfigScene:render()
love.graphics.setFont(font_3x5_4) love.graphics.setFont(font_3x5_4)
love.graphics.print("GAME SETTINGS", 80, 40) love.graphics.print("GAME SETTINGS", 80, 40)
--Lazy check to see if we're on the SFX or BGM slider. Probably will need to be rewritten if more options get added. --Lazy check to see if we're on the SFX or BGM slider. Probably will need to be rewritten if more options get added.
love.graphics.setColor(1, 1, 1, 0.5) love.graphics.setColor(1, 1, 1, 0.5)
if not ConfigScene.options[self.highlight][3] then if not ConfigScene.options[self.highlight][3] then
@ -60,7 +60,7 @@ function ConfigScene:render()
else else
love.graphics.rectangle("fill", 65 + (1+self.highlight-#self.options) * 300, 342, 215, 33) love.graphics.rectangle("fill", 65 + (1+self.highlight-#self.options) * 300, 342, 215, 33)
end end
love.graphics.setFont(font_3x5_2) love.graphics.setFont(font_3x5_2)
for i, option in ipairs(ConfigScene.options) do for i, option in ipairs(ConfigScene.options) do
if not option[3] then if not option[3] then

View File

@ -10,7 +10,7 @@ local menu_screens = {
function ConfigScene:new() function ConfigScene:new()
self.menu_state = 1 self.menu_state = 1
DiscordRPC:update({ DiscordRPC:update({
details = "In menus", details = "In settings",
state = "Changing input config", state = "Changing input config",
}) })
end end
@ -63,4 +63,4 @@ function ConfigScene:onInputPress(e)
end end
end end
return ConfigScene return ConfigScene

View File

@ -35,7 +35,7 @@ function KeyConfigScene:new()
self.new_input = {} self.new_input = {}
DiscordRPC:update({ DiscordRPC:update({
details = "In menus", details = "In settings",
state = "Changing key config", state = "Changing key config",
}) })
end end

View File

@ -39,6 +39,7 @@ function ModeSelectScene:new()
DiscordRPC:update({ DiscordRPC:update({
details = "In menus", details = "In menus",
state = "Choosing a mode", state = "Choosing a mode",
largeImageKey = "icon2"
}) })
end end