feat: rename game to ModBison and currency to Buffalo Chips
checkpoint / checkpoint (push) Successful in 5m56s

This commit is contained in:
2026-09-17 18:29:48 +00:00
parent e05e18c384
commit aa5f945287
9 changed files with 44 additions and 44 deletions
+3 -3
View File
@@ -96,7 +96,7 @@ func refresh_balance() -> void:
if res.ok and res.data is Dictionary:
var balance: int = int(res.data.get("balance", 0))
if balance_label:
balance_label.text = "Wallet: %d CR" % balance
balance_label.text = "Wallet: %d Buffalo Chips" % balance
func search_listings() -> void:
@@ -201,7 +201,7 @@ func _create_listing_card(listing: Dictionary) -> Control:
var price: int = int(listing.get("price", 0))
var price_lbl := Label.new()
price_lbl.text = "%d CR" % price
price_lbl.text = "%d Buffalo Chips" % price
price_lbl.add_theme_font_size_override("font_size", 16)
price_lbl.add_theme_color_override("font_color", Color(1.0, 0.8, 0.2))
price_lbl.size_flags_horizontal = Control.SIZE_EXPAND_FILL
@@ -223,7 +223,7 @@ func _on_buy_clicked(listing_id: int, item_name: String, price: int) -> void:
show_status("Please login to purchase items", true)
return
show_status("Purchasing '%s' for %d CR..." % [item_name, price])
show_status("Purchasing '%s' for %d Buffalo Chips..." % [item_name, price])
var res: Dictionary = await EconomyApiClient.purchase_listing(api, listing_id)
if res.ok:
show_status("Successfully purchased '%s'! Item added to inventory." % item_name)
+10 -10
View File
@@ -131,7 +131,7 @@ func _on_create_listing_pressed() -> void:
var desc: String = item_desc_input.text.strip_edges() if item_desc_input else ""
var price_text: String = price_input.text.strip_edges() if price_input else ""
if not price_text.is_valid_int() or price_text.to_int() <= 0:
show_status("Valid positive price in Credits is required", true)
show_status("Valid positive price in Buffalo Chips is required", true)
return
var price: int = price_text.to_int()
@@ -147,7 +147,7 @@ func _on_create_listing_pressed() -> void:
# 2. Create Listing
var list_res: Dictionary = await EconomyApiClient.create_listing(api, item_id, price)
if list_res.ok:
show_status("Successfully listed '%s' for %d Credits!" % [item_name, price])
show_status("Successfully listed '%s' for %d Buffalo Chips!" % [item_name, price])
if item_name_input: item_name_input.text = ""
if item_desc_input: item_desc_input.text = ""
if price_input: price_input.text = ""
@@ -193,7 +193,7 @@ func render_my_listings(listings: Array) -> void:
hbox.add_child(type_lbl)
var price_lbl := Label.new()
price_lbl.text = "%d CR" % int(l.get("price", 0))
price_lbl.text = "%d Buffalo Chips" % int(l.get("price", 0))
price_lbl.custom_minimum_size = Vector2(80, 0)
price_lbl.add_theme_color_override("font_color", Color(1.0, 0.8, 0.2))
hbox.add_child(price_lbl)
@@ -239,9 +239,9 @@ func refresh_creator_balance() -> void:
var pend: int = int(res.data.get("pending", 0))
var life: int = int(res.data.get("lifetime_earned", 0))
if available_lbl: available_lbl.text = "%d CR" % avail
if pending_lbl: pending_lbl.text = "%d CR" % pend
if lifetime_lbl: lifetime_lbl.text = "%d CR" % life
if available_lbl: available_lbl.text = "%d Buffalo Chips" % avail
if pending_lbl: pending_lbl.text = "%d Buffalo Chips" % pend
if lifetime_lbl: lifetime_lbl.text = "%d Buffalo Chips" % life
func refresh_payouts() -> void:
@@ -261,15 +261,15 @@ func _on_request_payout_pressed() -> void:
var amt_str: String = payout_amount_input.text.strip_edges() if payout_amount_input else ""
if not amt_str.is_valid_int() or amt_str.to_int() < 100:
show_status("Minimum payout amount is 100 Credits", true)
show_status("Minimum payout amount is 100 Buffalo Chips", true)
return
var amount: int = amt_str.to_int()
var dest: String = payout_dest_input.text.strip_edges() if payout_dest_input else ""
show_status("Submitting payout request for %d CR..." % amount)
show_status("Submitting payout request for %d Buffalo Chips..." % amount)
var res: Dictionary = await EconomyApiClient.request_payout(api, amount, dest)
if res.ok:
show_status("Payout request for %d CR submitted successfully!" % amount)
show_status("Payout request for %d Buffalo Chips submitted successfully!" % amount)
if payout_amount_input: payout_amount_input.text = ""
if payout_dest_input: payout_dest_input.text = ""
refresh_creator_balance()
@@ -311,7 +311,7 @@ func render_payouts(payouts: Array) -> void:
hbox.add_child(date_lbl)
var amt_lbl := Label.new()
amt_lbl.text = "%d CR" % int(p.get("amount", 0))
amt_lbl.text = "%d Buffalo Chips" % int(p.get("amount", 0))
amt_lbl.custom_minimum_size = Vector2(90, 0)
amt_lbl.add_theme_font_size_override("font_size", 14)
hbox.add_child(amt_lbl)
+8 -8
View File
@@ -95,7 +95,7 @@ func refresh_wallet() -> void:
if res.ok and res.data is Dictionary:
var balance: int = int(res.data.get("balance", 0))
if balance_label:
balance_label.text = "%d CR" % balance
balance_label.text = "%d Buffalo Chips" % balance
else:
show_status("Failed to fetch wallet: " + res.detail, true)
@@ -118,15 +118,15 @@ func refresh_transactions() -> void:
func _buy_pack(credits: int) -> void:
var api = _get_api()
if not api or not api.has_token():
show_status("Please login to purchase Credits", true)
show_status("Please login to purchase Buffalo Chips", true)
return
show_status("Processing purchase of %d Credits..." % credits)
show_status("Processing purchase of %d Buffalo Chips..." % credits)
var res: Dictionary = await EconomyApiClient.purchase_credits(api, credits)
if res.ok and res.data is Dictionary:
var new_bal: int = int(res.data.get("new_balance", 0))
if balance_label:
balance_label.text = "%d CR" % new_bal
show_status("Successfully purchased %d Credits! Balance: %d CR" % [credits, new_bal])
balance_label.text = "%d Buffalo Chips" % new_bal
show_status("Successfully purchased %d Buffalo Chips! Balance: %d Buffalo Chips" % [credits, new_bal])
refresh_transactions()
else:
show_status("Purchase failed: " + res.detail, true)
@@ -171,16 +171,16 @@ func render_transactions(tx_list: Array) -> void:
var amount: int = int(tx.get("amount", 0))
var amt_lbl := Label.new()
if amount > 0:
amt_lbl.text = "+%d CR" % amount
amt_lbl.text = "+%d Buffalo Chips" % amount
amt_lbl.add_theme_color_override("font_color", Color(0.2, 0.9, 0.2))
else:
amt_lbl.text = "%d CR" % amount
amt_lbl.text = "%d Buffalo Chips" % amount
amt_lbl.add_theme_color_override("font_color", Color(0.9, 0.3, 0.3))
amt_lbl.custom_minimum_size = Vector2(100, 0)
hbox.add_child(amt_lbl)
var bal_lbl := Label.new()
bal_lbl.text = "Bal: %s CR" % str(tx.get("balance_after", 0))
bal_lbl.text = "Bal: %s Buffalo Chips" % str(tx.get("balance_after", 0))
bal_lbl.custom_minimum_size = Vector2(100, 0)
bal_lbl.add_theme_color_override("font_color", Color(0.8, 0.8, 0.8))
hbox.add_child(bal_lbl)