internal static Texture2D GetTexture(string name) { return(Styles.GetUIScaledTexture(name)); }
internal static Texture2D GetTexture(string name, int width = 16, int height = 16, float prescalar = 1.0f) { return(Styles.GetUIScaledTexture(name, width, height, prescalar)); }
///<summary> Initializes the icons </summary> internal static void Initialize() { TexturePath = KSPUtil.ApplicationRootPath + "GameData/Kerbalism/Textures/"; empty = Styles.GetUIScaledTexture("empty"); // an empty icon to maintain alignment close = Styles.GetUIScaledTexture("close"); // black close icon left_arrow = Styles.GetUIScaledTexture("left-arrow"); // white left arrow right_arrow = Styles.GetUIScaledTexture("right-arrow"); // white right arrow toggle_green = Styles.GetUIScaledTexture("toggle-green"); // green check mark toggle_red = Styles.GetUIScaledTexture("toggle-red"); // red check mark send_black = Styles.GetUIScaledTexture("send-black"); // used by file man send_cyan = Styles.GetUIScaledTexture("send-cyan"); lab_black = Styles.GetUIScaledTexture("lab-black"); lab_cyan = Styles.GetUIScaledTexture("lab-cyan"); applauncher = Lib.GetTexture("applauncher", 32, 32); small_info = Styles.GetUIScaledTexture("small-info"); small_folder = Styles.GetUIScaledTexture("small-folder"); small_console = Styles.GetUIScaledTexture("small-console"); small_config = Styles.GetUIScaledTexture("small-config"); small_search = Styles.GetUIScaledTexture("small-search"); small_notes = Styles.GetUIScaledTexture("small-notes"); category_normal = Styles.GetUIScaledTexture("category-normal"); category_selected = Styles.GetUIScaledTexture("category-selected"); sun_black = Styles.GetUIScaledTexture("sun-black"); sun_white = Styles.GetUIScaledTexture("sun-white"); battery_white = Styles.GetUIScaledTexture("battery-white"); battery_yellow = Styles.GetUIScaledTexture("battery-yellow"); battery_red = Styles.GetUIScaledTexture("battery-red"); box_white = Styles.GetUIScaledTexture("box-white"); box_yellow = Styles.GetUIScaledTexture("box-yellow"); box_red = Styles.GetUIScaledTexture("box-red"); wrench_white = Styles.GetUIScaledTexture("wrench-white"); wrench_yellow = Styles.GetUIScaledTexture("wrench-yellow"); wrench_red = Styles.GetUIScaledTexture("wrench-red"); signal_white = Styles.GetUIScaledTexture("signal-white"); signal_yellow = Styles.GetUIScaledTexture("signal-yellow"); signal_red = Styles.GetUIScaledTexture("signal-red"); recycle_yellow = Styles.GetUIScaledTexture("recycle-yellow"); recycle_red = Styles.GetUIScaledTexture("recycle-red"); radiation_yellow = Styles.GetUIScaledTexture("radiation-yellow"); radiation_red = Styles.GetUIScaledTexture("radiation-red"); health_white = Styles.GetUIScaledTexture("health-white"); health_yellow = Styles.GetUIScaledTexture("health-yellow"); health_red = Styles.GetUIScaledTexture("health-red"); brain_white = Styles.GetUIScaledTexture("brain-white"); brain_yellow = Styles.GetUIScaledTexture("brain-yellow"); brain_red = Styles.GetUIScaledTexture("brain-red"); storm_yellow = Styles.GetUIScaledTexture("storm-yellow"); storm_red = Styles.GetUIScaledTexture("storm-red"); plant_white = Styles.GetUIScaledTexture("plant-white"); plant_yellow = Styles.GetUIScaledTexture("plant-yellow"); station_black = Styles.GetUIScaledTexture("vessels/station-black", 80, 80, 4); station_white = Styles.GetUIScaledTexture("vessels/station-white", 80, 80, 4); base_black = Styles.GetUIScaledTexture("vessels/base-black", 80, 80, 4); base_white = Styles.GetUIScaledTexture("vessels/base-white", 80, 80, 4); ship_black = Styles.GetUIScaledTexture("vessels/ship-black", 80, 80, 4); ship_white = Styles.GetUIScaledTexture("vessels/ship-white", 80, 80, 4); probe_black = Styles.GetUIScaledTexture("vessels/probe-black", 80, 80, 4); probe_white = Styles.GetUIScaledTexture("vessels/probe-white", 80, 80, 4); relay_black = Styles.GetUIScaledTexture("vessels/relay-black", 40, 40, 1.75f); relay_white = Styles.GetUIScaledTexture("vessels/relay-white", 40, 40, 1.75f); rover_black = Styles.GetUIScaledTexture("vessels/rover-black", 80, 80, 4); rover_white = Styles.GetUIScaledTexture("vessels/rover-white", 80, 80, 4); lander_black = Styles.GetUIScaledTexture("vessels/lander-black", 80, 80, 4); lander_white = Styles.GetUIScaledTexture("vessels/lander-white", 80, 80, 4); eva_black = Styles.GetUIScaledTexture("vessels/eva-black", 80, 80, 4); eva_white = Styles.GetUIScaledTexture("vessels/eva-white", 80, 80, 4); plane_black = Styles.GetUIScaledTexture("vessels/plane-black", 40, 40, 2.25f); plane_white = Styles.GetUIScaledTexture("vessels/plane-white", 40, 40, 2.25f); }