public RTSUIHoverPanel(RectButton b, BaseWidget p) { TargetButton = b; PanelWidget = p; TargetButton.OnMouseEntry += TargetButton_OnMouseEntry; TargetButton.OnMouseExit += TargetButton_OnMouseExit; shouldShow = false; }
protected virtual void OnSelfCompute(BaseWidget w) { drawText.TextHeight = Height; drawText.location = new Vector2(X, Y); drawText.layerDepth = layer; }
private void OnSelfCompute(BaseWidget w) { drawRect.location = widgetRect; drawRect.layerDepth = layer; }
protected virtual void OnParentRecompute(BaseWidget w) { Recompute(); }