mirror of
https://github.com/DeltaV-Station/Delta-v.git
synced 2026-10-04 21:37:27 +00:00
* Merge pull request impstation/imp-station-14#468 from hivehum/highlight Add text highlighting (cherry picked from commit e442cc4bb20fbb4d5b970275c82cc87508e6f687) * More cleanly separate auto-generated and manual highlights Edge case that's not handled: Closing and reopening the game drops the list of auto-generated highlights * Use LocalizedDatasets to make higlight lists for all jobs * DeltaV-ification Since the implementation is now fundamentally incompatible with the (still open) upstream PR, move to our own cvars * Try to untroll code * Untroll * Untroll for real this time * Fix wrong count in ChatHighlightBorg * Escape highlights Depends on space-wizards/RobustToolbox/pull/5688 * add missing using directive * Fix failing test * Rename CVars to avoid clash with previous implementation * Tidy some stuff up * Show auto highlights * Remove redundant check --------- Co-authored-by: V <97265903+formlessnameless@users.noreply.github.com>
21 lines
694 B
C#
21 lines
694 B
C#
using Content.Client._DV.Options.UI;
|
|
using Robust.Shared.Configuration;
|
|
|
|
namespace Content.Client.Options.UI;
|
|
|
|
public sealed partial class OptionsTabControlRow
|
|
{
|
|
/// <summary>
|
|
/// Add a color slider option, backed by a simple string CVar.
|
|
/// </summary>
|
|
/// <param name="cVar">The CVar represented by the slider.</param>
|
|
/// <param name="slider">The UI control for the option.</param>
|
|
/// <returns>The option instance backing the added option.</returns>
|
|
public OptionColorSliderCVar AddOptionColorSlider(
|
|
CVarDef<string> cVar,
|
|
OptionColorSlider slider)
|
|
{
|
|
return AddOption(new OptionColorSliderCVar(this, _cfg, cVar, slider));
|
|
}
|
|
}
|