diff options
author | jacopograndi <jak.sk8@hotmail.it> | 2021-08-29 13:57:41 +0200 |
---|---|---|
committer | jacopograndi <jak.sk8@hotmail.it> | 2021-08-29 13:57:41 +0200 |
commit | ace5c3f3093c50ff7fa6f8b281a377e3788abbd5 (patch) | |
tree | 8a52803dc2b777822e9b1cab148bec8798bfeadf /game/menu.cpp | |
parent | a8bcacc95045102e67f2feabbdddf79535837554 (diff) |
adding techs
Diffstat (limited to 'game/menu.cpp')
-rw-r--r-- | game/menu.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/game/menu.cpp b/game/menu.cpp index 76913b5..a9ec886 100644 --- a/game/menu.cpp +++ b/game/menu.cpp @@ -8,7 +8,7 @@ void Menu::open (vec2 res) { active = true; pos = vec2 { (float)res.x, (float)res.y }; float height = options.size() * 20; - size = vec2 { 120, height+10 }; + size = vec2 { 150, height+10 }; pos *= 0.5f; pos -= size/2; } @@ -16,8 +16,8 @@ void Menu::open (vec2 res) { int Menu::mouse_option (vec2 mouse) { int i=0; for (Option opt : options) { - vec2 off { 10, 10.0f + i*20 }; - vec2 sizeopt { 100, 20 }; + vec2 off { 0, 5.0f + i*20 }; + vec2 sizeopt { 150, 20 }; off += pos; if (off.x < mouse.x && mouse.x < off.x+sizeopt.x && off.y < mouse.y && mouse.y < off.y+sizeopt.y ) { |