public TooltipWindow(AbstractGauge gauge) : base(Constants.WINDOW_ID_TOOLTIP, gauge.GetName()) { this.gauge = gauge; SetSize(TOOLTIP_WIDTH, gauge.GetHeight()); this.title = gauge.GetName(); this.text = gauge.GetDescription(); }
private void snapGaugeAt(AbstractGauge gauge, int x, int y) { gauge.SetPosition(x, y); NanoGauges.configuration.SetWindowPosition(gauge); if (Log.IsLogable(Log.LEVEL.DETAIL)) { Log.Detail("snapped window " + gauge.GetName() + " at " + x + "/" + y); } }
public void UpdateText() { this.title = gauge.GetName(); this.text = gauge.GetDescription(); }