File size: 1,330 Bytes
24b81cb |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 |
class ModStructure
{
protected int m_ModIndex;
protected string m_ModPath;
protected string m_ModName;
protected string m_ModLogo;
protected string m_ModLogoSmall;
protected string m_ModLogoOver;
protected string m_ModActionURL;
protected string m_ModTooltip;
protected string m_ModOverview;
void ModStructure( int index, string path )
{
m_ModIndex = index;
m_ModPath = path;
LoadData();
}
void LoadData()
{
if( GetGame().ConfigIsExisting( m_ModPath ) )
{
GetGame().ConfigGetText( m_ModPath + " name", m_ModName );
GetGame().ConfigGetText( m_ModPath + " picture", m_ModLogo );
GetGame().ConfigGetText( m_ModPath + " logo", m_ModLogoSmall );
GetGame().ConfigGetText( m_ModPath + " logoSmall", m_ModLogoOver );
GetGame().ConfigGetText( m_ModPath + " logoOver", m_ModActionURL );
GetGame().ConfigGetText( m_ModPath + " tooltip", m_ModTooltip );
GetGame().ConfigGetText( m_ModPath + " overview", m_ModOverview );
}
}
string GetModName()
{
return m_ModName;
}
string GetModLogo()
{
return m_ModName;
}
string GetModLogoSmall()
{
return m_ModName;
}
string GetModLogoOver()
{
return m_ModName;
}
string GetModActionURL()
{
return m_ModName;
}
string GetModToltip()
{
return m_ModName;
}
string GetModOverview()
{
return m_ModName;
}
} |