forked from Mirrors/openclonk
remove option to display components in old style menus
parent
dff30d60f5
commit
00d5a06ec0
|
@ -37,11 +37,6 @@
|
|||
<col>0</col>
|
||||
<col>Nothing</col>
|
||||
</row>
|
||||
<row>
|
||||
<col>C4MN_Extra_Components</col>
|
||||
<col>1</col>
|
||||
<col>Components</col>
|
||||
</row>
|
||||
<row>
|
||||
<col>C4MN_Extra_Value</col>
|
||||
<col>2</col>
|
||||
|
|
|
@ -61,12 +61,6 @@ C4MenuItem::C4MenuItem(C4Menu *pMenu, int32_t iIndex, const char *szCaption,
|
|||
// some info caption corrections
|
||||
SReplaceChar(InfoCaption, 10, ' '); SReplaceChar(InfoCaption, 13, '|');
|
||||
SetToolTip(InfoCaption);
|
||||
// components initialization
|
||||
if (idID)
|
||||
{
|
||||
C4Def *pDef = C4Id2Def(idID);
|
||||
if (pDef) pDef->GetComponents(&Components, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
C4MenuItem::~C4MenuItem()
|
||||
|
@ -849,9 +843,6 @@ void C4Menu::DrawElement(C4TargetFacet &cgo)
|
|||
// Draw specified extra
|
||||
switch (Extra)
|
||||
{
|
||||
case C4MN_Extra_Components:
|
||||
if (pItem) pItem->Components.Draw(cgoExtra,-1,::Definitions,C4D_All,true,C4FCT_Right | C4FCT_Triple | C4FCT_Half);
|
||||
break;
|
||||
case C4MN_Extra_Value:
|
||||
{
|
||||
if (pDef) ::GraphicsResource.fctWealth.DrawValue(cgoExtra,iValue,0,0,C4FCT_Right);
|
||||
|
|
|
@ -42,7 +42,6 @@ enum
|
|||
enum
|
||||
{
|
||||
C4MN_Extra_None = 0,
|
||||
C4MN_Extra_Components = 1,
|
||||
C4MN_Extra_Value = 2,
|
||||
C4MN_Extra_Info = 4,
|
||||
};
|
||||
|
@ -88,7 +87,6 @@ protected:
|
|||
int32_t iIndex;
|
||||
bool IsSelectable;
|
||||
int32_t TextDisplayProgress; // dialog menus only: Amount of text which is to be displayed already (-1 for everything)
|
||||
C4IDList Components; // components to be displayed in info line if item is selected
|
||||
|
||||
private:
|
||||
bool IsDragElement();
|
||||
|
|
|
@ -2448,7 +2448,6 @@ C4ScriptConstDef C4ScriptObjectConstMap[]=
|
|||
{ "C4MN_Style_EqualItemHeight",C4V_Int, C4MN_Style_EqualItemHeight},
|
||||
|
||||
{ "C4MN_Extra_None" ,C4V_Int, C4MN_Extra_None},
|
||||
{ "C4MN_Extra_Components" ,C4V_Int, C4MN_Extra_Components},
|
||||
{ "C4MN_Extra_Value" ,C4V_Int, C4MN_Extra_Value},
|
||||
{ "C4MN_Extra_Info" ,C4V_Int, C4MN_Extra_Info},
|
||||
|
||||
|
|
Loading…
Reference in New Issue