Innopolis University DevOps Playground
Skip to content

Create the "Settings" fragment

Using existing fragments as a reference, build the "Settings" fragment. This fragment should provide the following features:

  • A centered modal-like box with everything
  • Should display city's name using Unity's TextField
    • The text field should restrict city's name by 20 characters
    • On the right side of the field should be a "Pencil" button. Clicking this button will enable the text field and transition focus to it
    • When text field loses focus, the name should automatically be saved, text field should be disabled, pencil button - enabled
    • For now, the DataStorage is not ready, print logs whenever you want to save or retrieve data and add TODO comments as I did in other files
  • Should display a slider for music volume.
    • Whenever the slider is dragged, new value should be logged (add TODO to save it when DataStorage is ready).
    • Whenever the fragment is displayed, slider's value should be set to Random.Range(0f, 1f), add TODO to retrieve volume from storage
  • Should display a slider for SFX volume
  • Should display a button with a text and an icon saying "Visit our website", will be used later.

Refer to this mock-up (sketch) with notes:

image