添加discordRPC支持
This commit is contained in:
@@ -29,6 +29,7 @@ function scene.enter()
|
||||
slide=true
|
||||
pathVis=true
|
||||
revKB=false
|
||||
DiscordRPC.update("Playing 15-Puzzle")
|
||||
end
|
||||
|
||||
local function moveU(x,y)
|
||||
|
||||
@@ -234,6 +234,7 @@ function scene.enter()
|
||||
tapControl=false
|
||||
startTime=0
|
||||
reset()
|
||||
DiscordRPC.update("Playing 2048")
|
||||
end
|
||||
|
||||
function scene.mouseDown(x,y,k)
|
||||
|
||||
@@ -40,6 +40,7 @@ function scene.enter()
|
||||
startTime=0
|
||||
time=0
|
||||
state=0
|
||||
DiscordRPC.update("Spamming keyboard")
|
||||
end
|
||||
|
||||
function scene.keyDown(key,isRep)
|
||||
|
||||
@@ -100,6 +100,7 @@ function scene.enter()
|
||||
restart()
|
||||
BGM.play('truth')
|
||||
BG.set('rainbow')
|
||||
DiscordRPC.update("Playing Ultimate Tic-Tac-Toe")
|
||||
end
|
||||
|
||||
function scene.mouseMove(x,y)
|
||||
|
||||
@@ -360,6 +360,7 @@ function scene.enter()
|
||||
drawing=false
|
||||
numScale=1
|
||||
BGM.play('truth')
|
||||
DiscordRPC.update("Playing Arithmetic")
|
||||
end
|
||||
|
||||
function scene.keyDown(key,isRep)
|
||||
|
||||
@@ -28,6 +28,7 @@ function scene.enter()
|
||||
BG.set('none')
|
||||
BGM.stop()
|
||||
reg,val,sym=false,"0",false
|
||||
DiscordRPC.update("Calculating something")
|
||||
end
|
||||
function scene.leave()
|
||||
BGM.play()
|
||||
|
||||
@@ -15,6 +15,7 @@ function scene.enter()
|
||||
ex,ey=626,260
|
||||
BG.set('matrix')
|
||||
BGM.play('hang out')
|
||||
DiscordRPC.update("Shooting cannon balls")
|
||||
end
|
||||
|
||||
function scene.keyDown(key,isRep)
|
||||
|
||||
@@ -1034,6 +1034,7 @@ userG.the_key=first_key
|
||||
function scene.enter()
|
||||
WIDGET.focus(inputBox)
|
||||
BG.set('none')
|
||||
DiscordRPC.update("Hacking the system")
|
||||
end
|
||||
|
||||
function scene.wheelMoved(_,y)
|
||||
|
||||
@@ -59,6 +59,7 @@ function scene.enter()
|
||||
gc.setLineJoin('bevel')
|
||||
BGM.play('push')
|
||||
BG.set('none')
|
||||
DiscordRPC.update("Playing Cubefield")
|
||||
end
|
||||
|
||||
function scene.touchDown(x)
|
||||
|
||||
@@ -38,6 +38,7 @@ function scene.enter()
|
||||
state='menu'
|
||||
BGM.play('hang out')
|
||||
BG.set('space')
|
||||
DiscordRPC.update("Playing Dropper")
|
||||
end
|
||||
|
||||
function scene.keyDown(key,isRep)
|
||||
|
||||
@@ -201,6 +201,7 @@ function scene.enter()
|
||||
reset()
|
||||
BG.set('fixColor',.26,.26,.26)
|
||||
BGM.play(bgm)
|
||||
DiscordRPC.update("Avoiding touching white tiles")
|
||||
end
|
||||
|
||||
local function touch(n)
|
||||
|
||||
@@ -249,6 +249,7 @@ function scene.enter()
|
||||
invis=false
|
||||
newGame()
|
||||
BGM.play('truth')
|
||||
DiscordRPC.update("Playing Link")
|
||||
end
|
||||
|
||||
function scene.keyDown(key,isRep)
|
||||
|
||||
@@ -109,6 +109,7 @@ function scene.enter()
|
||||
BG.set('fixColor',.26,.62,.26)
|
||||
_newGame()
|
||||
selected=false
|
||||
DiscordRPC.update("Playing Mahjong")
|
||||
end
|
||||
|
||||
function scene.mouseMove(x,y)
|
||||
|
||||
@@ -36,6 +36,7 @@ function scene.enter()
|
||||
input=''
|
||||
showNum='memoriZe'
|
||||
BGM.play('reason')
|
||||
DiscordRPC.update("Playing memoriZe")
|
||||
end
|
||||
|
||||
function scene.keyDown(key,isRep)
|
||||
|
||||
@@ -95,6 +95,7 @@ function scene.enter()
|
||||
generateVKey()
|
||||
_notHoldCS()
|
||||
_showVirtualKey(MOBILE)
|
||||
DiscordRPC.update("Playing music")
|
||||
end
|
||||
|
||||
function scene.leave()
|
||||
|
||||
@@ -40,6 +40,7 @@ function scene.enter()
|
||||
end
|
||||
BG.set('none')
|
||||
BGM.play('dream')
|
||||
DiscordRPC.update("Playing polyforge")
|
||||
end
|
||||
|
||||
function scene.keyDown(key,isRep)
|
||||
|
||||
@@ -35,6 +35,7 @@ function scene.enter()
|
||||
vy=0,
|
||||
y0=false,
|
||||
}
|
||||
DiscordRPC.update("Playing Pong")
|
||||
end
|
||||
|
||||
local function start()
|
||||
|
||||
@@ -18,6 +18,7 @@ end
|
||||
function scene.enter()
|
||||
reset()
|
||||
BG.set('none')
|
||||
DiscordRPC.update("Playing Reflect")
|
||||
end
|
||||
|
||||
function scene.keyDown(key,isRep)
|
||||
|
||||
@@ -25,6 +25,7 @@ function scene.enter()
|
||||
mistake=0
|
||||
state=0
|
||||
progress=0
|
||||
DiscordRPC.update("Playing Schulte Grid")
|
||||
end
|
||||
|
||||
local function newBoard()
|
||||
|
||||
@@ -15,6 +15,10 @@ end)
|
||||
|
||||
local scene={}
|
||||
|
||||
function scene.enter()
|
||||
DiscordRPC.update("Playing a non-sense thing")
|
||||
end
|
||||
|
||||
function scene.keyDown(key,isRep)
|
||||
if isRep then return end
|
||||
if key=='space' or key=='return' then
|
||||
|
||||
@@ -27,6 +27,7 @@ function scene.enter()
|
||||
state=0
|
||||
time1=STRING.time(0)
|
||||
time2=STRING.time(0)
|
||||
DiscordRPC.update("Timing something")
|
||||
end
|
||||
|
||||
function scene.mouseDown()
|
||||
|
||||
@@ -14,6 +14,7 @@ function scene.enter()
|
||||
keyTime={} for i=1,40 do keyTime[i]=-1e99 end
|
||||
BG.set('fixColor',.26,.26,.26)
|
||||
BGM.play('push')
|
||||
DiscordRPC.update("Spamming keyboard")
|
||||
end
|
||||
|
||||
function scene.keyDown(key,isRep)
|
||||
|
||||
@@ -64,6 +64,7 @@ function scene.enter()
|
||||
invis=false
|
||||
nexts=true
|
||||
reset()
|
||||
DiscordRPC.update("Playing Get the Ten")
|
||||
end
|
||||
|
||||
local function merge()
|
||||
|
||||
@@ -267,6 +267,7 @@ local scene={}
|
||||
function scene.enter()
|
||||
player:reset()
|
||||
BGM.play('truth')
|
||||
DiscordRPC.update("Playing Triple Town")
|
||||
end
|
||||
|
||||
function scene.mouseClick(x,y)
|
||||
|
||||
@@ -163,6 +163,7 @@ function scene.enter()
|
||||
|
||||
if not MOBILE then WIDGET.focus(inputBox) end
|
||||
BG.set('rainbow')
|
||||
DiscordRPC.update("Learning Zictionary")
|
||||
end
|
||||
|
||||
function scene.wheelMoved(_,y)
|
||||
|
||||
@@ -13,6 +13,7 @@ function scene.enter()
|
||||
if SETTING then
|
||||
SFX.fplay('error',SETTING.voc*.8 or 0)
|
||||
end
|
||||
DiscordRPC.update("Struke by an error")
|
||||
end
|
||||
|
||||
function scene.draw()
|
||||
|
||||
@@ -222,6 +222,8 @@ function scene.enter()
|
||||
_updateStepButton()
|
||||
_updateRepButtons()
|
||||
_updateMenuButtons()
|
||||
|
||||
DiscordRPC.update("Playing "..GAME.curMode.name)
|
||||
end
|
||||
|
||||
scene.mouseDown=NULL
|
||||
|
||||
@@ -21,6 +21,9 @@ local curLang=1
|
||||
|
||||
local scene={}
|
||||
|
||||
function scene.enter()
|
||||
DiscordRPC.update("Setting language")
|
||||
end
|
||||
function scene.leave()
|
||||
saveSettings()
|
||||
end
|
||||
|
||||
@@ -168,6 +168,10 @@ local function press(x,y)
|
||||
end
|
||||
end
|
||||
|
||||
function scene.enter()
|
||||
DiscordRPC.update("Playing Launchpad")
|
||||
end
|
||||
|
||||
function scene.touchDown(x,y)
|
||||
x,y=floor((x-pad.x)/80),floor((y-pad.y)/80)
|
||||
if x>=0 and x<=8 and y>=0 and y<=7 then
|
||||
|
||||
@@ -44,6 +44,8 @@ function scene.enter()
|
||||
GAME.setting={}
|
||||
PLY.newDemoPlayer(1)
|
||||
PLAYERS[1]:setPosition(520,140,.8)
|
||||
|
||||
DiscordRPC.update("In Main Menu")
|
||||
end
|
||||
|
||||
function scene.resize()
|
||||
|
||||
@@ -5,6 +5,7 @@ local tip=GC.newText(getFont(30),"")
|
||||
function scene.enter()
|
||||
tip:set(text.getTip())
|
||||
BG.set()
|
||||
DiscordRPC.update("In Simple Menu")
|
||||
end
|
||||
|
||||
function scene.draw()
|
||||
|
||||
@@ -44,6 +44,7 @@ function scene.enter()
|
||||
end
|
||||
end
|
||||
modUsed=usingMod()
|
||||
DiscordRPC.update("Picking mode")
|
||||
end
|
||||
|
||||
local function _getK()
|
||||
|
||||
@@ -26,6 +26,7 @@ if #bgmList==0 then bgmList={"[NO BGM]"} end
|
||||
function scene.enter()
|
||||
playing=BGM.getPlaying()[1]
|
||||
selected=TABLE.find(bgmList,playing) or 1
|
||||
DiscordRPC.update("Elevating the soul through music")
|
||||
end
|
||||
|
||||
function scene.wheelMoved(_,y)
|
||||
|
||||
@@ -5,6 +5,7 @@ local scene={}
|
||||
function scene.enter()
|
||||
BG.set('galaxy')
|
||||
BGM.play('exploration')
|
||||
DiscordRPC.update("Dreaming Techmino Galaxy coming out")
|
||||
end
|
||||
|
||||
function scene.draw()
|
||||
|
||||
@@ -72,6 +72,7 @@ function scene.enter()
|
||||
BG.set(GAME.prevBG)
|
||||
GAME.prevBG=false
|
||||
end
|
||||
DiscordRPC.update("Playing Multiplayer")
|
||||
end
|
||||
function scene.leave()
|
||||
TASK.unlock('netPlaying')
|
||||
|
||||
@@ -2,6 +2,7 @@ local scene={}
|
||||
|
||||
function scene.enter()
|
||||
BG.set()
|
||||
DiscordRPC.update("Ready to Click \"Rooms\"")
|
||||
end
|
||||
function scene.leave()
|
||||
NET.ws_close()
|
||||
|
||||
@@ -53,6 +53,7 @@ end
|
||||
function scene.enter()
|
||||
sure=0
|
||||
destroyPlayers()
|
||||
DiscordRPC.update("Creating new room...")
|
||||
end
|
||||
function scene.leave()
|
||||
BGM.play()
|
||||
|
||||
@@ -74,6 +74,7 @@ local scene={}
|
||||
function scene.enter()
|
||||
BG.set()
|
||||
_fetchRoom()
|
||||
DiscordRPC.update("Checking room list")
|
||||
end
|
||||
|
||||
function scene.keyDown(key)
|
||||
|
||||
@@ -15,6 +15,7 @@ function scene.enter()
|
||||
else
|
||||
scene.widgetList.texts:setTexts({"No data"})
|
||||
end
|
||||
DiscordRPC.update("Checking Latest News")
|
||||
end
|
||||
|
||||
function scene.wheelMoved(_,y)
|
||||
|
||||
@@ -77,6 +77,7 @@ function scene.enter()
|
||||
BG.set()
|
||||
listBox:setList(REPLAY)
|
||||
_updateButtonVisibility()
|
||||
DiscordRPC.update("Finding replay")
|
||||
end
|
||||
function scene.leave()
|
||||
if #mods>0 then
|
||||
|
||||
@@ -9,6 +9,7 @@ function scene.enter()
|
||||
das,arr=SETTING.das,SETTING.arr
|
||||
pos,dir,wait=0,1,30
|
||||
BG.set('bg1')
|
||||
DiscordRPC.update("Tweaking control settings")
|
||||
end
|
||||
|
||||
local trigFrame=0
|
||||
|
||||
@@ -4,6 +4,7 @@ local scene={}
|
||||
|
||||
function scene.enter()
|
||||
BG.set()
|
||||
DiscordRPC.update("Tweaking Settings")
|
||||
end
|
||||
function scene.leave()
|
||||
saveSettings()
|
||||
|
||||
@@ -102,6 +102,7 @@ function scene.enter()
|
||||
selected=false
|
||||
_freshKeyList()
|
||||
BG.set('none')
|
||||
DiscordRPC.update("Binding keys")
|
||||
end
|
||||
function scene.leave()
|
||||
saveFile(KEY_MAP,'conf/key')
|
||||
|
||||
@@ -15,6 +15,7 @@ function scene.enter()
|
||||
scene.widgetList.sfxPack:reset()
|
||||
scene.widgetList.vocPack:reset()
|
||||
BG.set()
|
||||
DiscordRPC.update("Tweaking Settings")
|
||||
end
|
||||
function scene.leave()
|
||||
saveSettings()
|
||||
|
||||
@@ -2,6 +2,9 @@ local gc=love.graphics
|
||||
|
||||
local scene={}
|
||||
|
||||
function scene.enter()
|
||||
DiscordRPC.update("Tweaking Settings")
|
||||
end
|
||||
function scene.leave()
|
||||
saveSettings()
|
||||
end
|
||||
|
||||
@@ -17,6 +17,7 @@ function scene.enter()
|
||||
BG.set()
|
||||
names={}
|
||||
counter=26
|
||||
DiscordRPC.update("Knowing Staffs")
|
||||
end
|
||||
|
||||
function scene.mouseDown(x,y)
|
||||
|
||||
@@ -37,6 +37,7 @@ function scene.enter()
|
||||
for i=1,11 do
|
||||
item[i]=text.stat[i].."\t"..item[i]
|
||||
end
|
||||
DiscordRPC.update("Admiring Oneself")
|
||||
end
|
||||
|
||||
function scene.mouseDown(x,y)
|
||||
|
||||
@@ -1,5 +1,9 @@
|
||||
local scene={}
|
||||
|
||||
function scene.enter()
|
||||
DiscordRPC.update("Sponsoring a Great Cause")
|
||||
end
|
||||
|
||||
function scene.draw()
|
||||
-- QR Code frame
|
||||
GC.setLineWidth(2)
|
||||
|
||||
Reference in New Issue
Block a user