mirror of
https://github.com/islehorse/HISP.git
synced 2025-04-23 13:15:53 +12:00
Add shop info .
This commit is contained in:
parent
8763524116
commit
9705e9889f
8 changed files with 253 additions and 43 deletions
|
@ -74,15 +74,30 @@ namespace HISP.Game
|
|||
|
||||
// Inventory
|
||||
public static string InventoryItemFormat;
|
||||
|
||||
public static string InventoryHeaderFormat;
|
||||
|
||||
public static string ItemDropButton;
|
||||
public static string ItemInformationButton;
|
||||
public static string ItemInformationByIdButton;
|
||||
public static string ItemConsumeButton;
|
||||
public static string ItemThrowButton;
|
||||
public static string ItemUseButton;
|
||||
public static string ItemReadButton;
|
||||
|
||||
public static string ShopEntryFormat;
|
||||
public static string ShopBuyButton;
|
||||
public static string ShopBuy5Button;
|
||||
public static string ShopBuy25Button;
|
||||
|
||||
public static string SellButton;
|
||||
public static string SellAllButton;
|
||||
|
||||
// Shop
|
||||
public static string ThingsIAmSelling;
|
||||
public static string ThingsYouSellMe;
|
||||
public static string InfinitySign;
|
||||
|
||||
// Npc
|
||||
public static string NpcStartChatFormat;
|
||||
public static string NpcChatpointFormat;
|
||||
|
@ -123,6 +138,38 @@ namespace HISP.Game
|
|||
public static string WagonCutscene;
|
||||
public static string BallonCutscene;
|
||||
|
||||
|
||||
|
||||
public static string FormatShopEntry(int iconid, string count, string name, int price)
|
||||
{
|
||||
return ShopEntryFormat.Replace("%ICONID%", iconid.ToString()).Replace("%COUNT%", count).Replace("%TITLE%", name).Replace("%PRICE%", price.ToString());
|
||||
}
|
||||
|
||||
public static string FormatItemInformationByIdButton(int itemId)
|
||||
{
|
||||
return ItemInformationByIdButton.Replace("%ITEMID%", itemId.ToString());
|
||||
}
|
||||
public static string FormatBuyItemButton(int itemId)
|
||||
{
|
||||
return ShopBuyButton.Replace("%ITEMID%", itemId.ToString());
|
||||
}
|
||||
public static string FormatBuy5ItemButton(int itemId)
|
||||
{
|
||||
return ShopBuy5Button.Replace("%ITEMID%", itemId.ToString());
|
||||
}
|
||||
public static string FormatBuy25ItemButton(int itemId)
|
||||
{
|
||||
return ShopBuy25Button.Replace("%ITEMID%", itemId.ToString());
|
||||
}
|
||||
public static string ForamtSellButton(int randomId)
|
||||
{
|
||||
return SellButton.Replace("%RANDOMID%", randomId.ToString());
|
||||
}
|
||||
public static string FormatSellAllButton(int itemId)
|
||||
{
|
||||
return SellAllButton.Replace("%ITEMID%", itemId.ToString());
|
||||
}
|
||||
|
||||
public static string FormatNpcInformation(string name, string description)
|
||||
{
|
||||
return NpcInformationFormat.Replace("%NAME%", name).Replace("%DESCRIPTION%", description);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue