當前位置: 首頁>>代碼示例>>C#>>正文


C# BaseHouse.GetNewVendorSystemMaxVendors方法代碼示例

本文整理匯總了C#中Server.Multis.BaseHouse.GetNewVendorSystemMaxVendors方法的典型用法代碼示例。如果您正苦於以下問題:C# BaseHouse.GetNewVendorSystemMaxVendors方法的具體用法?C# BaseHouse.GetNewVendorSystemMaxVendors怎麽用?C# BaseHouse.GetNewVendorSystemMaxVendors使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Server.Multis.BaseHouse的用法示例。


在下文中一共展示了BaseHouse.GetNewVendorSystemMaxVendors方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: HouseGumpAOS


//.........這裏部分代碼省略.........
					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() );

						int maxVendors = house.GetNewVendorSystemMaxVendors();
						int vendors = house.PlayerVendors.Count + house.VendorRentalContracts.Count;

						AddHtmlLocalized( 10, 350, 300, 20, 1062391, LabelColor, false, false ); // Vendor Count
						AddLabel( 310, 350, LabelHue, vendors.ToString() + " / " + maxVendors.ToString() );
					}
					else
					{
						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
					AddButtonLabeled( 10, 160, GetButtonID( 5, 1 ), 1060765, isOwner && isCustomizable ); // Customize This House
					AddButtonLabeled( 10, 180, GetButtonID( 5, 2 ), 1060760, isOwner && house.MovingCrate != null ); // Relocate Moving Crate
開發者ID:greeduomacro,項目名稱:GoUO,代碼行數:67,代碼來源:HouseGumpAOS.cs

示例2: HouseGumpAOS


//.........這裏部分代碼省略.........
                    //    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
                        AddHtml(10, 290, 300, 20, "Máximo de Lockdowns", false, false); // Maximum Lockdowns
                        AddLabel( 310, 290, LabelHue, maxLockdowns.ToString() );

                        //AddHtmlLocalized( 10, 310, 300, 20, 1060691, LabelColor, false, false ); // Available Lockdowns
                        AddHtml(10, 310, 300, 20, "Lockdowns Disponíveis", false, false); // Available Lockdowns
                        AddLabel( 310, 310, LabelHue, Math.Max( maxLockdowns - curLockdowns, 0 ).ToString() );

                        int maxVendors = house.GetNewVendorSystemMaxVendors();
                        int vendors = house.PlayerVendors.Count + house.VendorRentalContracts.Count;

                        //AddHtmlLocalized( 10, 350, 300, 20, 1062391, LabelColor, false, false ); // Vendor Count
                        AddHtml(10, 350, 300, 20, "Total Vendors", false, false); // Vendor Count
                        AddLabel( 310, 350, LabelHue, vendors.ToString() + " / " + maxVendors.ToString() );
                    }
                    else
                    {
                        //AddHtmlLocalized( 10, 230, 300, 20, 1060687, LabelColor, false, false ); // Used by Vendors
                        AddHtml(10, 230, 300, 20, "Utilizado por Vendors", false, false); // Used by Vendors
                        AddLabel( 310, 230, LabelHue, fromVendors.ToString() );

                        //AddHtmlLocalized( 10, 250, 300, 20, 1060688, LabelColor, false, false ); // Used by Secure Containers
                        AddHtml(10, 250, 300, 20, "Utilizado por Secure Containers", false, false); // Used by Secure Containers
                        AddLabel( 310, 250, LabelHue, fromSecures.ToString() );

                        //AddHtmlLocalized( 10, 270, 300, 20, 1060689, LabelColor, false, false ); // Available Storage
                        AddHtml(10, 270, 300, 20, "Storages Disponíveis", 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
                        AddHtml(10, 330, 300, 20, "Máximo de Lockdowns", false, false); // Maximum Lockdowns
                        AddLabel( 310, 330, LabelHue, maxLockdowns.ToString() );

                        //AddHtmlLocalized( 10, 350, 300, 20, 1060691, LabelColor, false, false ); // Available Lockdowns
                        AddHtml(10, 350, 300, 20, "Lockdowns Disponíveis", false, false); // Available Lockdowns
                        AddLabel( 310, 350, LabelHue, Math.Max( maxLockdowns - curLockdowns, 0 ).ToString() );
                    }

                    break;
                }
                case HouseGumpPageAOS.Customize:
開發者ID:greeduomacro,項目名稱:DimensionsNewAge,代碼行數:67,代碼來源:HouseGumpAOS.cs


注:本文中的Server.Multis.BaseHouse.GetNewVendorSystemMaxVendors方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。