Buy/sell dialogue buttons
This commit is contained in:
parent
a6f9b11c43
commit
53e5dd38b2
8 changed files with 52 additions and 15 deletions
|
|
@ -24,8 +24,6 @@ func fetch_items():
|
|||
items_on_buy = base.items_on_buy
|
||||
sell_prices = base.sell_prices
|
||||
buy_prices = base.buy_prices
|
||||
print(base)
|
||||
print(items_on_sell, "\n", items_on_buy)
|
||||
|
||||
## Returns buy/sell description of a selected item
|
||||
func item_description(buy: bool, id: int) -> String:
|
||||
|
|
@ -46,3 +44,7 @@ func get_buy_sell_list(buy: bool) -> String:
|
|||
for item in range(len(list)):
|
||||
total += item_description(buy, item) + "\n"
|
||||
return total
|
||||
|
||||
func get_buy_sell_len(buy: bool) -> int:
|
||||
var list = items_on_buy if buy else items_on_sell
|
||||
return len(list)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue