mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2025-03-13 09:15:13 +01:00
Offset back button, fix buttons appearing in ingame menu when returning from options
This commit is contained in:
parent
e0debda422
commit
c394a6381e
2 changed files with 3 additions and 1 deletions
|
@ -7999,6 +7999,8 @@ static void returntoingametemp(void)
|
|||
{
|
||||
extern Game game;
|
||||
game.returntomenu(game.kludge_ingametemp);
|
||||
// Hacky fix to prevent touch buttons from being stuck on the screen
|
||||
touch::remove_dynamic_buttons();
|
||||
}
|
||||
|
||||
static void returntoedsettings(void)
|
||||
|
|
|
@ -404,7 +404,7 @@ namespace touch
|
|||
buttons[TOUCH_BUTTON_CONFIRM].image = graphics.grphx.im_button_right;
|
||||
|
||||
buttons[TOUCH_BUTTON_MAP_BACK].x = width - ((double)(240 - (int) graphics.lerp(graphics.oldmenuoffset, graphics.menuoffset)) / 240.0) * (60 * scale);
|
||||
buttons[TOUCH_BUTTON_MAP_BACK].y = 0;
|
||||
buttons[TOUCH_BUTTON_MAP_BACK].y = 8;
|
||||
buttons[TOUCH_BUTTON_MAP_BACK].width = 60 * scale;
|
||||
buttons[TOUCH_BUTTON_MAP_BACK].height = 26 * scale;
|
||||
buttons[TOUCH_BUTTON_MAP_BACK].text = loc::gettext("BACK");
|
||||
|
|
Loading…
Add table
Reference in a new issue