RyLib
Shared UI library for Holdfast client mods. Lets several mods add P menu tabs, a shared Mods tab, a battle map, player and kill log actions, key hints and world or minimap markers without colliding.Changelog
1.2.0
- Ships on map pages.
- Ships and boats show with the game's icon for their type, in their owner's color.
- A captured ship changes color.
- Players aboard are hidden and listed when the ship is selected.
- Admins get Go To, Bring Ship, Move Ship and Remove Ship.
[Map] ShowShipsand[Map] HideCrewturn these off.
- Map pages without an rc login.
HeaderTab.MapPagehas an overload withadminOnly. Without anrc loginthe page shows only the viewer's own team and no actions. - Team filter. Admins can show both teams or one team on a map page.
- Header width. Header tabs no longer stretch across the bar. Each takes at most one sixth of it, lined up from the left.
- Tooltips. Hovering over a section control or row label shows its config description.
Section.ButtonandSection.ConfirmButtonhave overloads that take a tooltip. - Privateer icons on map pages are black with a white outline.
Factions.Darkreports factions like this. - Long names in the map side panel shrink to fit.
- Cleaner map image. Ship models, smoke and other particle effects are hidden while the image is taken.
1.1.1
- World rings follow the ground instead of floating at the height of the mark. On a bridge or floor above the terrain, the ring lies flat on it.
1.1.0
- Settings rows. Sections can hold sliders, dropdowns and text fields in the style of the game's Admin tab:
Section.Slider,Section.DropdownandSection.TextField. Section.ConfirmButtonneeds a second click within four seconds.- Admin tab look. Section pages and the Mods tab use the Admin tab's header with its gold bars, section titles have a divider line, and sliders and text boxes sit in the Admin tab's boxes.
- Hide the Rules tab.
PMenu.StockTabVisible(owner, StockTab.Rules, visible)hides the game's Rules tab, and the other headers share its space. - Map pages.
- The image is 8192 pixels on the long side.
- It covers only the terrains that hold the spawns and capture points.
- Players, horses and ships are hidden while it is taken.
- Battle Area frames the live spawn positions, so moved spawns are framed correctly.
TextIcons.Swatch()gives a rounded square for color keys.- American spelling.
WorldMark.Colour,MinimapMark.Colour,MapMark.ColourandFactions.Colour()are nowColor. Mods built against 1.0.0 that use them need a rebuild.
1.0.0
First release. Everything a mod can ask for is listed in the README; in short:
- P menu tabs. Header tabs with pages of switches, cycles, steppers and buttons bound to config entries, and a shared Mods tab where each mod gets its own sub tab. Every header, the game's own included, is fitted to the space.
- Players tab. Switches in the bar beside Admin Raygun, and buttons on an expanded player's admin row, laid out in the same grid as the stock ones.
- Kill log actions. A click on a kill log row opens actions for both the killer and the victim.
- Key hints. Entries in the free roam and spectating key bars, with key caps drawn to match the game's.
- World and minimap marks. Rings, beams, labels and a through-walls glow in the world, and markers on the minimap that follow the game's own reveal rules.
- Map pages. An overhead picture of the battle with every player drawn by class and faction, a class legend with live counts, search, zoom, and admin actions that never fire from a stray click.
