
    m`Y                     r    S SK r S SKJr  S SKJr  SS\S\S\S\SS4
S	 jjr  SS
\S\S\\   S\SS4
S jjr	g)    N)datetime)OptionalTitleMessageDurationMenuHintreturnc                     [         R                  " 5       R                  S   R                  nUR	                  5       nUc  gUR                  5         UR                  UU USSSSUR                  SU5
        g)a  
Displays a small training message on the left side of the screen, like those used for the
 respawn cost messages.

Note that this should not be used for critical messages. It only works while the main game HUD
 is shown, so it will silently fail if the user is in any menu. Additionally, if another message
 is shown (including ones the game creates) it will immediately be overwritten.

Args:
    Title: The title of the training message.
    Message: The message to be shown in the main body of the training message.
    Duration: How long the training message should be shown for (in seconds). Defaults to 2.
    MenuHint:
        If to display a hint to open your menu, and what menu should be opened when you do.
         Defaults to 0, no hint. 1-5 represent the different the different menu tabs, in the
         same order as the game: Missions; Map; Inventory; Skills; BAR. Defaults to 0.
r   N  FT)	unrealsdk	GetEngineGamePlayersActorGetHUDMovieClearTrainingTextAddTrainingTextPlayerReplicationInfo)r   r   r   r   PC	hud_movies         \Z:\mnt\Skyabridged\SteamLibrary\steamapps\common\Borderlands 2\sdk_mods\UserFeedback\Misc.pyShowHUDMessager      sv    $ 
				*	*1	-	3	3B I!

	
      User	TimestampShowTimestampc                 z   Uc  [         R                  " 5       n[        R                  " S5      S   R                  S:H  nUR                  SU   5      R                  5       nU(       a  U  SU 3OU n[        R                  " 5       R                  S   R                  R                  5       nUR                  Xa5        g )NWillowSaveGameManager12)z
[%H:%M:%S]z[%I:%M:%S%p] r   )r   nowr   FindAll
TimeFormatstrftimelowerr   r   r   GetTextChatMovieAddChatMessageInternal)r   r   r   r   is12htime_struser_str
chat_movies           r   ShowChatMessager-   -   s     LLN	56r:EEME!!"@"GHNNPH'4$q
#$H$$&2215;;LLNJ%%h8r   )   r   )NT)
r   r   typingr   strfloatintr   boolr-   r   r   r   <module>r4      sx      $# $ $u $C $X\ $T %)	9
99 !9 	9
 
9r   