jsem / mtg-life-counter

A personalised life counter for mtg
0 stars 0 forks source link

Create profile editor #13

Open jsem opened 6 years ago

jsem commented 6 years ago

This is a screen that allows you to edit a profile.

this is essentially just a watered down version of the game screen, that only contains 1 player area.

the player area should contain all of the features of a normal game screen player area. the profile is modified using the same player menu as available in the game screen.

the difference is that this screen should contain an additional menu with options to save the profile or return to the profile menu without saving. this can either be included in the profile editing menu, or as a separate button on the player area that opens the menu.

might want to hold off on this until ticket #15 is completed so we can just reuse the player area component created in that ticket

dwsemple commented 5 years ago

Profile Screen will look like this:

image

The top will have a drop down menu to select the setting you want to change (Player name, foreground colour, background colour and background image). The inputs below will change to the correct inputs for the chosen setting. At the bottom left will be a Update / Save button. Update if the menu was opened from a player area on the game screen, allowing you to temporarily change the settings applied to your player. Save if the menu was opened from the profile menu allowing you to make permanent changes to the selected profile. Close will return the app to the previous screen (game screen if opened from a player area, profile menu if opened from the profile menu). Selecting the type of profile editor is done by passing the parameter screenType as either ProfileScreen.PROFILE_MENU_UPDATE or ProfileScreen.PROFILE_MENU_SAVE when navigating to the screen. It will have the same basic formatting as the player area. It has a border of foreground colour, the background will be the background colour unless a background image is chosen, text will be the foreground colour. This will allow you to get an idea of what the player area will look like from the profile editing screen. Most items will be transparent where possible to allow you to see the background colour / background image better.

dwsemple commented 5 years ago

The profile editor will show a version of a player area which will allow you to then access the profile screen to make edits to the profile. The flow will go: Profile Menu -> User selects profile -> Player Area showing what the profile looks like will open -> User clicks on cog to open the Profile Screen -> Profile Screen opens and allows you to make permanent changes to the profile