This commit is contained in:
Ishaan Bhardwaj 2021-09-25 22:40:18 -04:00
commit ef966d8190
9 changed files with 28 additions and 10 deletions

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

Binary file not shown.

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

@ -29,7 +29,7 @@ function ConfigScene:new()
self.highlight = 1 self.highlight = 1
DiscordRPC:update({ DiscordRPC:update({
details = "In menus", details = "In settings",
state = "Changing game settings", state = "Changing game settings",
}) })

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

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

View File

@ -8,11 +8,20 @@ local menu_screens = {
TuningScene TuningScene
} }
local settingsidle = {
"Tweaking some knobs",
"Tuning up",
"Adjusting options",
"Setting up",
"Setting the settings"
}
function SettingsScene:new() function SettingsScene:new()
self.menu_state = 1 self.menu_state = 1
DiscordRPC:update({ DiscordRPC:update({
details = "In menus", details = "In settings",
state = "Changing settings", state = settingsidle[math.random(#settingsidle)],
largeImageKey = "settings",
}) })
end end

View File

@ -23,6 +23,10 @@ local mainmenuidle = {
"Having a nap", "Having a nap",
"In menus", "In menus",
"Bottom text", "Bottom text",
"Trying to see all the funny rpc messages (maybe)",
"Not not not playing",
"AFK",
"Preparing for their next game"
} }
function TitleScene:new() function TitleScene:new()
@ -35,6 +39,7 @@ function TitleScene:new()
DiscordRPC:update({ DiscordRPC:update({
details = "In menus", details = "In menus",
state = mainmenuidle[math.random(#mainmenuidle)], state = mainmenuidle[math.random(#mainmenuidle)],
largeImageKey = "icon2",
}) })
end end