Class MenuUserCreationOverlayView

java.lang.Object
view.overlays.menuOverlays.MenuOverlayView
view.overlays.menuOverlays.MenuUserCreationOverlayView

public class MenuUserCreationOverlayView extends MenuOverlayView
The MenuUserCreationOverlayView class represents the overlay view for the MenuUserCreationOverlayModel class. It handles drawing the user creation interface, including the user picture, name, and controls.
  • Constructor Details

    • MenuUserCreationOverlayView

      public MenuUserCreationOverlayView(MenuUserCreationOverlayModel menuUserCreationOverlayModel)
      Constructs a MenuUserCreationOverlayView with the specified MenuUserCreationOverlayModel. Initializes the images and starts the blinking animation timer.
      Parameters:
      menuUserCreationOverlayModel - the model of the user creation overlay
  • Method Details

    • draw

      public void draw(Graphics g)
      Draws the user creation overlay on the screen.
      Specified by:
      draw in class MenuOverlayView
      Parameters:
      g - the Graphics object to draw with
    • setUpArrowIndex

      public void setUpArrowIndex(int upArrowIndex)
      Sets the index of the up arrow image.
      Parameters:
      upArrowIndex - the index of the up arrow image
    • setDownArrowIndex

      public void setDownArrowIndex(int downArrowIndex)
      Sets the index of the down arrow image.
      Parameters:
      downArrowIndex - the index of the down arrow image