27 m_Root =
g_Game.GetWorkspace().CreateWidgets(
"gui/layouts/new_ui/mods_menu/mods_menu_detailed_entry.layout", parent);
36 m_Author = MultilineTextWidget.Cast(
m_Root.FindAnyWidget(
"Author"));
37 m_Author.SetLineBreakingOverride(LinebreakOverrideMode.LINEBREAK_WESTERN);
71 bool isOwned =
m_Data.GetIsOwned();
72 m_Root.FindAnyWidget(
"Owned").Show( isOwned );
73 m_Root.FindAnyWidget(
"Unowned").Show( !isOwned );
109 string picture =
m_Data.GetPicture();
110 string logo =
m_Data.GetLogoSmall();
112 string description =
m_Data.GetOverview();
113 string author =
m_Data.GetAuthor();
114 string version =
m_Data.GetVersion();
115 string action =
m_Data.GetAction();
136 else if (picture !=
"")
150 if (description !=
"")
173 #ifdef PLATFORM_WINDOWS
182 bool isOwned =
m_Data.GetIsOwned();
183 m_Root.FindAnyWidget(
"ModOwnership").Show(
true );
184 m_Root.FindAnyWidget(
"Owned").Show( isOwned );
185 m_Root.FindAnyWidget(
"Unowned").Show( !isOwned );
222 if (
m_Data.GetTooltip() !=
"")
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
static const string DEFAULT_PICTURE
static const string DEFAULT_OVERVIEW
static const string DEFAULT_LOGO_SMALL
int ARGBF(float fa, float fr, float fg, float fb)
Converts <0.0, 1.0> ARGB into color.