本文整理汇总了C#中Server.Multis.BaseHouse.GetAosCurLockdowns方法的典型用法代码示例。如果您正苦于以下问题:C# BaseHouse.GetAosCurLockdowns方法的具体用法?C# BaseHouse.GetAosCurLockdowns怎么用?C# BaseHouse.GetAosCurLockdowns使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Server.Multis.BaseHouse
的用法示例。
在下文中一共展示了BaseHouse.GetAosCurLockdowns方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: HouseGumpAOS
//.........这里部分代码省略.........
AddButtonLabeled(210, 170, GetButtonID(3, 14), 1011247); // Change the house locks
AddHtmlLocalized( 245, 130, 240, 20, 1060695, SelectedColor, false, false ); // Change to Private
AddButtonLabeled( 210, 150, GetButtonID( 3, 13 ), 1060694, isOwner ); // Change to Public
}
break;
}
case HouseGumpPageAOS.Storage:
{
AddHtmlLocalized( 10, 130, 400, 20, 1060682, LabelColor, false, false ); // <CENTER>HOUSE STORAGE SUMMARY</CENTER>
// This is not as OSI; storage changes not yet implemented
/*AddHtmlLocalized( 10, 170, 275, 20, 1011237, LabelColor, false, false ); // Number of locked down items:
AddLabel( 310, 170, LabelHue, m_House.LockDownCount.ToString() );
AddHtmlLocalized( 10, 190, 275, 20, 1011238, LabelColor, false, false ); // Maximum locked down items:
AddLabel( 310, 190, LabelHue, m_House.MaxLockDowns.ToString() );
AddHtmlLocalized( 10, 210, 275, 20, 1011239, LabelColor, false, false ); // Number of secure containers:
AddLabel( 310, 210, LabelHue, m_House.SecureCount.ToString() );
AddHtmlLocalized( 10, 230, 275, 20, 1011240, LabelColor, false, false ); // Maximum number of secure containers:
AddLabel( 310, 230, LabelHue, m_House.MaxSecures.ToString() );*/
int fromSecures, fromVendors, fromLockdowns, fromMovingCrate;
int maxSecures = house.GetAosMaxSecures();
int curSecures = house.GetAosCurSecures( out fromSecures, out fromVendors, out fromLockdowns, out fromMovingCrate );
int maxLockdowns = house.GetAosMaxLockdowns();
int curLockdowns = house.GetAosCurLockdowns();
int bonusStorage = (int)((house.BonusStorageScalar * 100)-100);
if( bonusStorage > 0 )
{
AddHtmlLocalized( 10, 150, 300, 20, 1072519, LabelColor, false, false ); // Increased Storage
AddLabel( 310, 150, LabelHue, String.Format( "{0}%", bonusStorage ) );
}
AddHtmlLocalized( 10, 170, 300, 20, 1060683, LabelColor, false, false ); // Maximum Secure Storage
AddLabel( 310, 170, LabelHue, maxSecures.ToString() );
AddHtmlLocalized( 10, 190, 300, 20, 1060685, LabelColor, false, false ); // Used by Moving Crate
AddLabel( 310, 190, LabelHue, fromMovingCrate.ToString() );
AddHtmlLocalized( 10, 210, 300, 20, 1060686, LabelColor, false, false ); // Used by Lockdowns
AddLabel( 310, 210, LabelHue, fromLockdowns.ToString() );
if ( BaseHouse.NewVendorSystem )
{
AddHtmlLocalized( 10, 230, 300, 20, 1060688, LabelColor, false, false ); // Used by Secure Containers
AddLabel( 310, 230, LabelHue, fromSecures.ToString() );
AddHtmlLocalized( 10, 250, 300, 20, 1060689, LabelColor, false, false ); // Available Storage
AddLabel( 310, 250, LabelHue, Math.Max( maxSecures - curSecures, 0 ).ToString() );
AddHtmlLocalized( 10, 290, 300, 20, 1060690, LabelColor, false, false ); // Maximum Lockdowns
AddLabel( 310, 290, LabelHue, maxLockdowns.ToString() );
AddHtmlLocalized( 10, 310, 300, 20, 1060691, LabelColor, false, false ); // Available Lockdowns
AddLabel( 310, 310, LabelHue, Math.Max( maxLockdowns - curLockdowns, 0 ).ToString() );
示例2: HouseGumpAOS
//.........这里部分代码省略.........
//AddButtonLabeled( 210, 150, GetButtonID( 3, 13 ), 1060694, isOwner ); // Change to Public
AddButtonLabeled(10, 310, GetButtonID(3, 10), "Lista de Acessos", true); // View Access List
AddButtonLabeled(10, 330, GetButtonID(3, 11), "Limpar Lista de Acessos", true); // Clear Access List
AddHtml(245, 130, 240, 20, "Tornar Casa Privada", false, false); // Change to Private
AddButtonLabeled(210, 150, GetButtonID(3, 13), "Tornar Casa Pública", isOwner); // Change to Public
}
break;
}
case HouseGumpPageAOS.Storage:
{
AddHtmlLocalized( 10, 130, 400, 20, 1060682, LabelColor, false, false ); // <CENTER>HOUSE STORAGE SUMMARY</CENTER>
// This is not as OSI; storage changes not yet implemented
/*AddHtmlLocalized( 10, 170, 275, 20, 1011237, LabelColor, false, false ); // Number of locked down items:
AddLabel( 310, 170, LabelHue, m_House.LockDownCount.ToString() );
AddHtmlLocalized( 10, 190, 275, 20, 1011238, LabelColor, false, false ); // Maximum locked down items:
AddLabel( 310, 190, LabelHue, m_House.MaxLockDowns.ToString() );
AddHtmlLocalized( 10, 210, 275, 20, 1011239, LabelColor, false, false ); // Number of secure containers:
AddLabel( 310, 210, LabelHue, m_House.SecureCount.ToString() );
AddHtmlLocalized( 10, 230, 275, 20, 1011240, LabelColor, false, false ); // Maximum number of secure containers:
AddLabel( 310, 230, LabelHue, m_House.MaxSecures.ToString() );*/
int fromSecures, fromVendors, fromLockdowns, fromMovingCrate;
int maxSecures = house.GetAosMaxSecures();
int curSecures = house.GetAosCurSecures( out fromSecures, out fromVendors, out fromLockdowns, out fromMovingCrate );
int maxLockdowns = house.GetAosMaxLockdowns();
int curLockdowns = house.GetAosCurLockdowns();
int bonusStorage = (int)((house.BonusStorageScalar * 100)-100);
//if( bonusStorage > 0 )
//{
// //AddHtmlLocalized( 10, 150, 300, 20, 1072519, LabelColor, false, false ); // Increased Storage
// AddLabel( 310, 150, LabelHue, String.Format( "{0}%", bonusStorage ) );
//}
//AddHtmlLocalized( 10, 170, 300, 20, 1060683, LabelColor, false, false ); // Maximum Secure Storage
AddHtml(10, 170, 300, 20, "Maximo de Secures", false, false); // Maximum Secure Storage
AddLabel( 310, 170, LabelHue, maxSecures.ToString() );
//AddHtmlLocalized( 10, 190, 300, 20, 1060685, LabelColor, false, false ); // Used by Moving Crate
AddHtml(10, 190, 300, 20, "Utilizado por Itens Moveis", false, false); // Used by Moving Crate
AddLabel( 310, 190, LabelHue, fromMovingCrate.ToString() );
//AddHtmlLocalized( 10, 210, 300, 20, 1060686, LabelColor, false, false ); // Used by Lockdowns
AddHtml(10, 210, 300, 20, "Utilizado por Lockdowns", false, false); // Used by Lockdowns
AddLabel( 310, 210, LabelHue, fromLockdowns.ToString() );
if ( BaseHouse.NewVendorSystem )
{
//AddHtmlLocalized( 10, 230, 300, 20, 1060688, LabelColor, false, false ); // Used by Secure Containers
AddHtml(10, 230, 300, 20, "Utilizado por Secures Containers", false, false); // Used by Secure Containers
AddLabel( 310, 230, LabelHue, fromSecures.ToString() );
//AddHtmlLocalized( 10, 250, 300, 20, 1060689, LabelColor, false, false ); // Available Storage
AddHtml(10, 250, 300, 20, "Storages Disponíveis", false, false); // Available Storage
AddLabel( 310, 250, LabelHue, Math.Max( maxSecures - curSecures, 0 ).ToString() );
//AddHtmlLocalized( 10, 290, 300, 20, 1060690, LabelColor, false, false ); // Maximum Lockdowns
示例3: RemainingLocks
public static int RemainingLocks( BaseHouse house )
{
if ( house == null )
return 0;
return (Core.AOS ? house.GetAosMaxLockdowns() - house.GetAosCurLockdowns() : house.MaxLockDowns - house.LockDownCount) - AllRentalLocks( house );
}
示例4: HouseGumpAOS
//.........这里部分代码省略.........
{
AddButtonLabeled( 10, 310, GetButtonID( 3, 10 ), 1060699 ); // View Access List
AddButtonLabeled( 10, 330, GetButtonID( 3, 11 ), 1060700 ); // Clear Access List
AddButtonLabeled( 210, 130, GetButtonID( 3, 13 ), 1060694, isOwner ); // Make This House Public
}
break;
}
case HouseGumpPageAOS.Storage:
{
AddHtmlLocalized( 10, 130, 400, 20, 1060682, LabelColor, false, false ); // <CENTER>HOUSE STORAGE SUMMARY</CENTER>
// This is not as OSI; storage changes not yet implemented
/*AddHtmlLocalized( 10, 170, 275, 20, 1011237, LabelColor, false, false ); // Number of locked down items:
AddLabel( 310, 170, LabelHue, m_House.LockDownCount.ToString() );
AddHtmlLocalized( 10, 190, 275, 20, 1011238, LabelColor, false, false ); // Maximum locked down items:
AddLabel( 310, 190, LabelHue, m_House.MaxLockDowns.ToString() );
AddHtmlLocalized( 10, 210, 275, 20, 1011239, LabelColor, false, false ); // Number of secure containers:
AddLabel( 310, 210, LabelHue, m_House.SecureCount.ToString() );
AddHtmlLocalized( 10, 230, 275, 20, 1011240, LabelColor, false, false ); // Maximum number of secure containers:
AddLabel( 310, 230, LabelHue, m_House.MaxSecures.ToString() );*/
int fromSecures, fromVendors, fromLockdowns;
int maxSecures = house.GetAosMaxSecures();
int curSecures = house.GetAosCurSecures( out fromSecures, out fromVendors, out fromLockdowns );
int maxLockdowns = house.GetAosMaxLockdowns();
int curLockdowns = house.GetAosCurLockdowns();
AddHtmlLocalized( 10, 170, 300, 20, 1060683, LabelColor, false, false ); // Maximum Secure Storage
AddLabel( 310, 170, LabelHue, maxSecures.ToString() );
AddHtmlLocalized( 10, 190, 300, 20, 1060685, LabelColor, false, false ); // Used by Moving Crate
AddLabel( 310, 190, LabelHue, "0" );
AddHtmlLocalized( 10, 210, 300, 20, 1060686, LabelColor, false, false ); // Used by Lockdowns
AddLabel( 310, 210, LabelHue, fromLockdowns.ToString() );
AddHtmlLocalized( 10, 230, 300, 20, 1060687, LabelColor, false, false ); // Used by Vendors
AddLabel( 310, 230, LabelHue, fromVendors.ToString() );
AddHtmlLocalized( 10, 250, 300, 20, 1060688, LabelColor, false, false ); // Used by Secure Containers
AddLabel( 310, 250, LabelHue, fromSecures.ToString() );
AddHtmlLocalized( 10, 270, 300, 20, 1060689, LabelColor, false, false ); // Available Storage
AddLabel( 310, 270, LabelHue, Math.Max( maxSecures - curSecures, 0 ).ToString() );
AddHtmlLocalized( 10, 330, 300, 20, 1060690, LabelColor, false, false ); // Maximum Lockdowns
AddLabel( 310, 330, LabelHue, maxLockdowns.ToString() );
AddHtmlLocalized( 10, 350, 300, 20, 1060691, LabelColor, false, false ); // Available Lockdowns
AddLabel( 310, 350, LabelHue, Math.Max( maxLockdowns - curLockdowns, 0 ).ToString() );
break;
}
case HouseGumpPageAOS.Customize:
{
bool isCustomizable = isOwner && ( house is HouseFoundation );
AddButtonLabeled( 10, 120, GetButtonID( 5, 0 ), 1060759, isOwner && !isCustomizable && ( house.ConvertEntry != null ) ); // Convert Into Customizable House