Package view.overlays.menuOverlays
Class MenuUserCreationOverlayView
java.lang.Object
view.overlays.menuOverlays.MenuOverlayView
view.overlays.menuOverlays.MenuUserCreationOverlayView
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.-
Field Summary
Fields inherited from class view.overlays.menuOverlays.MenuOverlayView
nesFont, retroFont -
Constructor Summary
ConstructorsConstructorDescriptionMenuUserCreationOverlayView(MenuUserCreationOverlayModel menuUserCreationOverlayModel) Constructs a MenuUserCreationOverlayView with the specified MenuUserCreationOverlayModel. -
Method Summary
Modifier and TypeMethodDescriptionvoidDraws the user creation overlay on the screen.voidsetDownArrowIndex(int downArrowIndex) Sets the index of the down arrow image.voidsetUpArrowIndex(int upArrowIndex) Sets the index of the up arrow image.
-
Constructor Details
-
MenuUserCreationOverlayView
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
Draws the user creation overlay on the screen.- Specified by:
drawin classMenuOverlayView- 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
-