public ModuleSetEntry(Rect rect, ModuleSet mod, Texture2D tex, ButtonPress callBack) { Entry = rect; moduleSet = mod; Texture = tex; buttonCallBack = callBack; Icon = new Rect(Entry.x + Entry.height * 0.06f, Entry.y + Entry.height * 0.06f, Entry.height * 0.88f, Entry.height * 0.88f); Name = new Rect(Icon.xMax + Entry.height * 0.06f, Entry.y + Entry.height * 0.03f, Entry.width - Icon.width - Entry.height * 0.2f, Entry.height * 0.25f); Description = new Rect(Name.x, Name.yMax, Name.width, Entry.height * 0.5f); Mod = new Rect(Name.x, Description.yMax, Name.width, Entry.height * 0.25f); DisplayName = ResourceManager.GetLocalization(moduleSet.Name); DisplayDiscription = ResourceManager.GetLocalization(moduleSet.Description); if (moduleSet.GetParentMod() != null) { DisplayMod = "Mod: " + moduleSet.GetParentMod().Name; } else { DisplayMod = "Mod: N/A"; } }