Blood(1997)-like dynamic weapon widget

Hi all! There is an array with weapons, to which any number of weapons can be added in any sequence. This weapon scrolls cyclically, ammo values and icons are displayed on the widget. How do I make a widget that would display the current weapon in the player’s hands in the widget icon in the middle (the main icon), and the previous and next weapons would be displayed in icons on the sides of the main icon, as in the game Blood (1997)?

For the widget to update the image u need to keep the widget as variable and tell it what weapon is the player using currently. U must have a current weapon variable so just share that information with the widget.
Because I can see the widget updating whenever you pick up a new one