public override void Draw(float position, float width, ITab_Pawn_Log_Utility.LogDrawData data) { float height = base.GetHeight(width); float width2 = width - 29f; Rect rect = new Rect(0f, position, width, height); if (this.log == data.highlightEntry) { Widgets.DrawRectFast(rect, new Color(1f, 1f, 1f, ITab_Pawn_Log_Utility.HighlightAlpha * data.highlightIntensity), null); data.highlightIntensity = Mathf.Max(0f, data.highlightIntensity - Time.deltaTime / ITab_Pawn_Log_Utility.HighlightDuration); } else if (data.alternatingBackground) { Widgets.DrawRectFast(rect, new Color(1f, 1f, 1f, ITab_Pawn_Log_Utility.AlternateAlpha), null); } data.alternatingBackground = !data.alternatingBackground; Widgets.Label(new Rect(29f, position, width2, height), this.log.ToGameStringFromPOV(this.pawn, false)); Texture2D texture2D = this.log.IconFromPOV(this.pawn); if (texture2D != null) { Rect position2 = new Rect(0f, position + (height - 26f) / 2f, 26f, 26f); GUI.DrawTexture(position2, texture2D); } Widgets.DrawHighlightIfMouseover(rect); TooltipHandler.TipRegion(rect, () => this.log.GetTipString(), 613261 + this.log.LogID * 2063); if (Widgets.ButtonInvisible(rect, false)) { this.log.ClickedFromPOV(this.pawn); } if (DebugViewSettings.logCombatLogMouseover && Mouse.IsOver(rect)) { this.log.ToGameStringFromPOV(this.pawn, true); } }
public override void Draw(float position, float width, ITab_Pawn_Log_Utility.LogDrawData data) { }
public override void Draw(float position, float width, ITab_Pawn_Log_Utility.LogDrawData data) { Text.Font = GameFont.Medium; Widgets.Label(new Rect(0f, position, width, base.GetHeight(width)), this.text); Text.Font = GameFont.Small; }
public abstract void Draw(float position, float width, ITab_Pawn_Log_Utility.LogDrawData data);