Display modes
Reticle chooses how to draw a menu for each player at the moment the menu opens, and keeps that choice until it closes. The menu file is the same in all three modes.
| Mode | Who gets it |
|---|---|
| Shader mode | Clients 1.21.11 and newer that loaded Reticle's resource pack |
| World mode | Clients 1.21.9 and 1.21.10, and newer clients without the pack |
| Chest menu | Clients older than 1.21.9, which join through ViaVersion and ViaBackwards |
A newer client is without the pack when the player declined it, when the download failed, when you switched the pack off, or when another plugin sends a pack that replaces one of the shader files Reticle's pack replaces. Resource pack explains each case.
Reticle learns each client's version from ViaVersion. Without ViaVersion every player counts as the server's own version.
To see which mode a player has, open a menu for him and run reticle probe <player> in the console: "mode" reads shader or world.
HUDs need shader mode too. A player in world mode or on a chest client gets their fallback boss bar instead. Maps need it as well: in world mode a menu shows one line in the map's place, a chest leaves the map out, and a minimap lends a player on 1.21.9 or newer a vanilla map in his empty off hand.
Shader mode
The world holds still and the menu lies flat in the middle of the screen with sharp pixels. Moving the mouse moves a small arrow pointer over it, as on a desktop, while his view stays where it was. His own game draws the pointer, so it follows the mouse without waiting for the server, at any ping. The pointer stops at the edge of a 480 by 270 area around the middle of the screen, the size of the largest menu, so it never leaves the screen. The world behind the menu goes dark, and the crosshair, the hotbar, the hearts, the food bar, the experience or locator bar and his level leave the screen until the menu closes. A 1.21.11 game draws particles after the menu, so particles and rain splashes behind an open menu are hidden there, while 26.1 and newer show them dimmed.
To hold his view still, Reticle moves his camera onto an invisible mannequin at his eyes and seats his body one or two blocks behind it, out of his sight, in free air: never on top of or beyond a wall, a fence or a glass pane, never in real water and never outside the world border. His game believes that body has water at its eyes, which is what lets it draw the pointer. Other players see him sit there until the menu closes. Reticle's pack mutes the underwater ambience for this, so players with the pack hear no underwater ambience on your server, also while they really dive. When no such spot lies behind him, for example in a narrow hole, with his back to a wall or with his head under water, the menu still lies flat, but his view turns: the pointer follows his view while the world turns behind it, and the hotbar, the hearts and the food bar stay on the screen.
The element under the pointer takes its hover color once the server learns where the player points, so on a slow connection the color comes a moment after the pointer. In third person view (F5) the pointer is gone and the menu shows only as a small panel in the world, beside a block of water only he sees; in the turning view his own head hides it. Both are back when he returns to first person. With a shader pack on, the menu stands in the world and the pointer comes a moment late, see Shader packs.
World mode
The same menu stands a quarter of a block in front of the player's eyes, facing him, and the normal crosshair is the pointer. The crosshair is part of his own screen, so pointing has no delay, and the hover color comes once the server learns where he looks. The world behind the menu keeps its light.
Chest menu
Clients older than 1.21.9 cannot draw these menus, so they get a chest. A newer client gets the chest too when another plugin refuses to seat him, see A menu opens as a chest on a new client. Each clickable element becomes one item, read from top to bottom and from left to right, nine to a row, every row centered; buttons that only close the menu or go back come after all the others. The item is the element's Icon; without one it is a barrier for a button that closes, an arrow for one that goes back, and paper for anything else. Its name is the element's Text in the element's Color, and an element without Text keeps the item's own name. The tooltip starts with the element's Subtitle when it has one and then says what a click does: "Opens Shop", "Goes back", "Closes the menu", "Takes you to survival" or "Asks you to type". Panels, plain texts and the background and hover colors are left out, and a chest holds at most 54 clickable elements.
The chest title is the menu's Title with its colors and placeholders, or the menu's name when it has none. Clicks run the same actions as in the other modes. A change saved in the editor shows in an open chest at once, and /reticle reload closes it. After a player types into an input, the chest opens again unless one of the input's actions opened, closed or left the menu.
While a menu is open
In shader and world mode:
- The player sits on an invisible seat, so he cannot walk. In shader mode the mouse moves the pointer and his view stays still, unless there is no room behind him and his view turns; in world mode he turns his head to point. The menu opens straight ahead of him, at most 30 degrees above or below the horizon.
- A left or right click presses the element under the pointer. Sneaking goes back to the previous menu, or closes the first one, and the action bar says "Sneak to go back".
- He sees neither his hand nor what he holds. Other players still see his items, and his inventory does not change.
- He cannot scroll the hotbar, drop items, swap hands, attack, or use blocks and entities. A click or drag in his own inventory closes the menu.
- In a menu with a map, the mouse wheel zooms the map and W, A, S and D move it.
- Damage, death, a teleport, a change of world, leaving the server and
/reticle reloadclose the menu. - When the menu closes, he stands where he opened it. If his view was held he faces what the menu showed, otherwise he looks where he looked last. His fall distance starts from zero, and if he was flying and may still fly, he keeps flying.
- Opening, closing and every accepted click play a short sound.
A player cannot open a menu while he is dead, in a vehicle, in bed, gliding, in spectator mode, or in the air without flying or being in water. He gets a message that tells him what to do, see Common issues.
On Folia a teleport does not reach a player who sits in a menu, so the menu stays open, see Common issues.
