marouen-lamiri / Second-Soul

Unity-Game
2 stars 0 forks source link

In-Game Main Menu #88

Closed marouen-lamiri closed 9 years ago

marouen-lamiri commented 9 years ago

As a user, i want to have an in-game main menu[SP: 8] [Priority: 3]

smileyWolf commented 9 years ago

Task breakdown (in hours)

smileyWolf commented 9 years ago

Implementation Breakdown (in hours)

smileyWolf commented 9 years ago

First Draft (In-Game Menu)

Here is the first draft of our in-game main menu.

ingamemenu

smileyWolf commented 9 years ago

First prototype implementation (In-Game Menu)

Here is the first version of the in-game menu. (https://github.com/marouen-lamiri/Second-Soul/commit/ec8476f8b050d529d302ec134512d72f9a9b4a08)

ingamemenu-2

smileyWolf commented 9 years ago

New (final) version (In-Game Menu)

Below is the new (final) version of the in-game menu, yet not linked to the game-scene. (5f7a83d) The Box's height is adjusted depending on the number of buttons included in the code.

ingamemenu-3

smileyWolf commented 9 years ago

Black-Box Testing

Tests # Inputs Expected Output Status
Display Menu Press Escape-button when menu is hidden. The In-Game menu appears on the screen. Pass
Hide Menu (Escape-button) Press Escape-button when menu is displayed. The In-Game menu disappears. Pass
Resume Game / Hide Menu (Resume-button) Left-Click on Resume-button when menu is displayed. The In-Game menu disappears. Pass
Get Options Left-Click on Options-button when menu is displayed A console-message says that the button was pressed, yet there is not implementation for now. Pass
Quit Game Left-Click on Quit-button when menu is displayed The game ends by closing the game-window. Pass

Regression Testing

These issues have been retested: #27 Tests failed: None Last edit: 05/03/2015

smileyWolf commented 9 years ago

Demo Steps

  1. Display Menu
    1. Press the Escape-button (on the keyboard) when the menu is hidden.
  2. Hide Menu
    1. Press the Escape-button (on the keyboard) when the menu is displayed.
  3. Resume Game
    1. If the In-Game Menu is hidden, press the Escape-button to display the menu.
    2. Left-Click on Resume-button.
  4. Game Options
    1. If the In-Game Menu is hidden, press the Escape-button to display the menu.
    2. Left-Click on Options-button.
  5. Quit Game
    1. If the In-Game Menu is hidden, press the Escape-button to display the menu.
    2. Left-Click on Quit-button.
smileyWolf commented 9 years ago

In-Game Menu linked to the game

Here is how the menu looks within the game (6fe384d).

ingamemenu-4

smileyWolf commented 9 years ago

First Draft (Stats)

Here is the first prototype of our new Player's stats display.

displayplayerstats-2


Task breakdown for New Stats Display (in hours)

Also refers to US #74


Implementation Breakdown for New Stats Display (in hours)

Also refers to US #74

smileyWolf commented 9 years ago

Tool-tip for Primary Stats

Display the tool-tips for player's Primary Stats when hover over the stats' label (https://github.com/marouen-lamiri/Second-Soul/commit/22841f9ee8c99b4e44128d2b77626ee1ada70a38).

displayplayerstats-tooltip

smileyWolf commented 9 years ago

Tooltips for Primary and Secondary Stats

Here is an image that shows both Primary and Secondary stats windows with tooltips appearing whenever hovering on a stats label. I also improved the layout. The stats menu is not yet linked with the game. (https://github.com/marouen-lamiri/Second-Soul/commit/40fc0921cd15093341bae3f47d1b9a7c26a39173)

displayplayerstats-tooltip-secondary

smileyWolf commented 9 years ago

Player's Stats linked to game (unfinished version)

displayplayerstats-liked-2

smileyWolf commented 9 years ago

Final version and Linked to Game

The commit (https://github.com/marouen-lamiri/Second-Soul/commit/934ef6cfceb456ac7647bd189d0cdbbbacdf1d19) contains both InGameMenu and DisplayPlayerStatsNew functionality.

displayplayerstats-liked-all

smileyWolf commented 9 years ago

Black-Box Testing for New Stats Display

Also refers to US #74

Tests # Inputs Expected Output Status
Display Menu Press 's'-key when menu is hidden. The Stats-menu appears on the screen. Pass
Hide Menu Press 's'-key when menu is displayed. The Stats-menu disappears. Pass
Display Secondary Stats Press the Details-button when the Secondary stats are hidden. The Secondary Stats window is displayed. Pass
Hide Secondary Stats Press the Details-button when the secondary stats is displayed. The Secondary Stats window disappears. Pass
Display Tooltip Hover over either Primary or Secondary Stats label when the Stats window is displayed on the screen. The tooltip for the hovered over label is displayed. Pass

Regression Testing

These issues have been retested: #27, #74 Tests failed: None Last edit: 16/03/2015


Demo Steps for New Stats Display

Also refers to US #74

  1. Display Menu
    1. Press the 's'-key (on the keyboard) when the Stats-menu is hidden.
  2. Hide Menu
    1. Press the 's'-key (on the keyboard) when the Stats-menu is displayed.
  3. Display Secondary Stats
    1. If the Stats Menu is hidden, press the 's'-key to display the menu.
    2. Left-Click on Details-button.
  4. Hide Secondary Stats
    1. If the Stats Menu is displayed, press the Details-button to hide the menu.
  5. Display Tooltip
    1. If the Stats-menu is hidden, press the 's'-key to display the menu.
    2. Hover over any label to display the tooltip.
Kishor0122 commented 9 years ago

Menu correctly opens on escape key, and stats page correctly opens on 's' key. Love the appearance. Mouse-over shows tool-tip which is nice. One comment, when you close the stats menu the details section should collapse, i.e. if you open the stats again the details section should not be open. Signing off.

smileyWolf commented 9 years ago

Fix to the Stakeholder's comment

Fixed the details-section display issue based on stakeholder's comment (https://github.com/marouen-lamiri/Second-Soul/commit/71f72a240c5ec0e02bd51b5765e3366861085780).

smileyWolf commented 9 years ago

Fix the Update-issue

Put the stats' updates into the right place - the Update method; commit (https://github.com/marouen-lamiri/Second-Soul/commit/6b1a2f063c8d7b3790affecbe067eb8f97075ee0).

Emmanuel-Tsapekis commented 9 years ago

Duplicate Bug

Dan, theres a key duplication error. You're adding to the menu each update. You want to only add in start and update in update menu

smileyWolf commented 9 years ago

Fixed the Duplicate Bug

Here is the commit that fixes the duplicate bug (https://github.com/marouen-lamiri/Second-Soul/commit/627fafa45095479ee93a956b5aa0196d5aa19eab).

smileyWolf commented 9 years ago

Fixing the Click-While-Opened-Menu/Stats issue

Here are the commits that fixed the bug referred to Click-While-Opened-Menu/Stats (https://github.com/marouen-lamiri/Second-Soul/commit/5d4e089b1e0067c013f766ef4a13d1b145c4af54) and (https://github.com/marouen-lamiri/Second-Soul/commit/752981a5246fc20045eaf217787b7a7bea226ed6). The issue was that whenever clicking on the Game-Menu or Stats windows, the player was taking it as a position change.

smileyWolf commented 9 years ago

Regression Testing

These issues have been retested: #27, #74, #90, #83 Tests failed: None Last edit: 07/04/2015