private void DoList(Rect rect, ActionMaker actionMaker, string header, string headerTooltip) { Rect labelRect = new Rect(rect) { height = 24f, xMax = rect.xMax - 15f }; Widgets.Label(labelRect, header.Bolded()); TooltipHandler.TipRegion(labelRect, headerTooltip); Widgets.DrawHighlight(labelRect); rect.y = labelRect.yMax; rect.xMin += 10f; actionMaker.Draw(rect, ref selected); }
public Profile() { levelUpActionMaker = new ActionMaker(); levelDownActionMaker = new ActionMaker(); generalSettingsContent = new GeneralSettingsContent(); }