Skip to content

Commit

Permalink
Make bug reporting button an option menu
Browse files Browse the repository at this point in the history
  • Loading branch information
nico-abram committed Aug 17, 2018
1 parent 70badae commit 0a88eb2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 21 deletions.
21 changes: 1 addition & 20 deletions Themes/Til Death/BGAnimations/ScreenTitleMenu underlay.lua
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,7 @@ t[#t+1] = LoadFont("Common Large") .. {

-- lazy game update button -mina
local gameneedsupdating = false
local buttonsWidth = 126
local buttons = {x=22,y=40,width=140,height=36,fontScale=0.3,color=getMainColor('frames'),spacing=50}
local buttons = {x=22,y=40,width=140,height=36,fontScale=0.3,color=getMainColor('frames')}
t[#t+1] = Def.Quad{
InitCommand=function(self)
self:xy(buttons.x,buttons.y):zoomto(buttons.width,buttons.height):halign(1):valign(0):diffuse(buttons.color):diffusealpha(0)
Expand Down Expand Up @@ -89,24 +88,6 @@ t[#t+1] = LoadFont("Common Large") .. {
end
}

-- lazy bug reporting button --nick12
t[#t+1] = Def.Quad{
InitCommand=function(self)
self:xy(SCREEN_WIDTH-buttons.x,buttons.y+buttons.spacing):zoomto(buttons.width,buttons.height):halign(1):valign(0):diffuse(buttons.color):diffusealpha(1)
end,
MouseLeftClickMessageCommand=function(self)
if isOver(self) then
GAMESTATE:ApplyGameCommand("urlnoexit, https://github.com/etternagame/etterna/blob/master/BugReporting.md;text,GitHub")
end
end
}

t[#t+1] = LoadFont("Common Large") .. {
OnCommand=function(self)
self:xy(SCREEN_WIDTH-(buttons.x+3),buttons.y+14+buttons.spacing):halign(1):zoom(buttons.fontScale):diffuse(getMainColor('positive'))
self:settext("Report a bug/error")
end
}

function mysplit(inputstr, sep)
if sep == nil then
Expand Down
3 changes: 2 additions & 1 deletion Themes/Til Death/metrics.ini
Original file line number Diff line number Diff line change
Expand Up @@ -178,12 +178,13 @@ ScrollerTransform=function(self,offset,itemIndex,numItems) \
self:y(20*(itemIndex-(numItems-1)/2)); \
end; \

ChoiceNames="GameStart,Multi,Options,AV,Color,GitHub,Exit"
ChoiceNames="GameStart,Multi,Options,AV,Color,GitHub,ReportABug,Exit"
ChoiceColor="screen,ScreenColorChange;text,ColorChange"
ChoiceColor="screen,ScreenColorChange;text,ColorChange"
ChoiceMulti="text,Multi;applydefaultoptions;screen,"..Branch.MultiScreen()
ChoiceAV="urlnoexit,https://www.ddrnl.com/viewtopic.php?f=13&t=156;text,Editor"
ChoiceGitHub="urlnoexit,https://github.com/etternagame/etterna;text,GitHub"
ChoiceReportABug="urlnoexit,https://github.com/etternagame/etterna/blob/master/BugReporting.md;text,GitHub"

[ScreenSelectMusic]
# at some point going to switch to a custom one
Expand Down

0 comments on commit 0a88eb2

Please sign in to comment.