Add artwork export and stamping
This commit is contained in:
parent
ba35db1015
commit
8107e2d89c
21 changed files with 1727 additions and 105 deletions
|
|
@ -1118,6 +1118,10 @@ func _refresh_supplies() -> void:
|
|||
var canvas_grid := _add_stock_icon_grid()
|
||||
for product_id: StringName in ArtShopStockType.GRID_PRODUCTS:
|
||||
_add_art_upgrade_button(product_id, canvas_grid)
|
||||
_add_stock_section("stamps")
|
||||
var stamp_grid := _add_stock_icon_grid()
|
||||
for product_id: StringName in ArtShopStockType.STAMP_PRODUCTS:
|
||||
_add_art_upgrade_button(product_id, stamp_grid)
|
||||
call_deferred("_configure_controller_focus")
|
||||
|
||||
|
||||
|
|
@ -1361,7 +1365,9 @@ func _add_art_upgrade_button(
|
|||
var marker_color_id: StringName = (
|
||||
PlayerArtUnlocksType.color_id_for_product(product_id)
|
||||
)
|
||||
if marker_color_id.is_empty():
|
||||
if product_id == PlayerArtUnlocksType.STAMP_PRODUCT_ID:
|
||||
_configure_art_text_tile(button, "stamp")
|
||||
elif marker_color_id.is_empty():
|
||||
var upgrade_icon: Texture2D = ART_UPGRADE_ICONS.get(
|
||||
product_id,
|
||||
FALLBACK_SUPPLY_ICON,
|
||||
|
|
@ -1390,6 +1396,16 @@ func _add_art_upgrade_button(
|
|||
button.pressed.connect(_purchase_art_upgrade.bind(product_id))
|
||||
|
||||
|
||||
func _configure_art_text_tile(button: Button, label_text: String) -> void:
|
||||
button.custom_minimum_size = SUPPLY_ICON_TILE_SIZE
|
||||
button.size_flags_horizontal = Control.SIZE_SHRINK_BEGIN
|
||||
button.icon = null
|
||||
button.expand_icon = false
|
||||
button.alignment = HORIZONTAL_ALIGNMENT_CENTER
|
||||
button.text = label_text
|
||||
button.add_theme_font_size_override("font_size", 17)
|
||||
|
||||
|
||||
func _make_stock_button(
|
||||
button_text: String,
|
||||
tooltip: String,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue