27 m_Root =
GetGame().GetWorkspace().CreateWidgets(
"gui/layouts/new_ui/mods_menu/mods_menu_detailed_entry.layout", parent);
28 m_Detail =
m_Root.FindAnyWidget(
"DetailContainer");
32 m_IconCollapse.LoadImageFile(1,
"set:dayz_gui image:icon_open");
69 m_IconSmall.Show(
false);
70 m_IconCollapse.SetImage(1);
81 m_IconBig.Show(
false);
82 m_IconSmall.Show(
true);
83 m_IconCollapse.SetImage(0);
96 string version =
m_Data.GetVersion();
101 m_IconBig.LoadImageFile(0,
picture);
103 m_IconBig.LoadImageFile(0,
logo);
109 m_IconSmall.LoadImageFile(0,
logo);
111 m_IconSmall.LoadImageFile(0,
picture);
133 m_Version.Show(
true);
134 m_Version.SetText(version);
137#ifdef PLATFORM_WINDOWS
139 m_ActionWebsite.Show(
true);
145 m_Root.FindAnyWidget(
"ModOwnership").Show(
true);
148 m_ActionPurchase.Show(
true);
149 m_Version.Show(
false);
155 if (
w == m_IconCollapse)
157 m_ParentMenu.Select(
m_Data, !m_IsOpen);
160 else if (
w == m_ActionWebsite)
162 else if (
w == m_ActionPurchase)
169 if (
w == m_ActionWebsite)
171 m_ActionWebsite.SetBold(
true);
172 m_ActionWebsite.SetText(
"#mod_detail_info_website");
175 if (
w == m_ActionPurchase)
177 m_ActionPurchase.SetBold(
true);
178 m_ActionPurchase.SetText(
"#mod_detail_info_store");
183 if (
m_Data.GetTooltip() !=
"")
184 m_ParentMenu.PrepareTooltip(
m_Data);
193 if (
w == m_ActionWebsite)
195 m_ActionWebsite.SetBold(
false);
196 m_ActionWebsite.SetText(
"#mod_detail_info_website");
199 if (
w == m_ActionPurchase)
201 m_ActionPurchase.SetBold(
false);
202 m_ActionPurchase.SetText(
"#mod_detail_info_store");
207 m_ParentMenu.HideTooltip();
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
static const string DEFAULT_PICTURE
static const string DEFAULT_OVERVIEW
static const string DEFAULT_LOGO_SMALL
proto native CGame GetGame()
string m_Description
class purpose description
int ARGBF(float fa, float fr, float fg, float fb)
Converts <0.0, 1.0> ARGB into color.