1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-19 01:29:49 +00:00

Add more achievements

This commit is contained in:
Variable 2024-08-14 20:50:31 +05:00
parent 1a99d524d1
commit 6e62361b24
5 changed files with 11 additions and 0 deletions

View file

@ -150,6 +150,7 @@ func commit_undo() -> void:
if Global.canvas.selection.is_moving_content: if Global.canvas.selection.is_moving_content:
Global.canvas.selection.transform_content_cancel() Global.canvas.selection.transform_content_cancel()
else: else:
SteamManager.set_achievement("ACH_TIME_TRAVELLER")
undo_redo.undo() undo_redo.undo()

View file

@ -10,12 +10,17 @@ const APP_ID := 2779170
## because it is not available in non-Steam builds. ## because it is not available in non-Steam builds.
static var steam_class static var steam_class
static var achievements := { static var achievements := {
"ACH_ART_LOVER": false,
"ACH_FIRST_PIXEL": false, "ACH_FIRST_PIXEL": false,
"ACH_ERASE_PIXEL": false, "ACH_ERASE_PIXEL": false,
"ACH_TIME_TRAVELLER": false,
"ACH_SAVE": false, "ACH_SAVE": false,
"ACH_ALMOST_FORGOT": false,
"ACH_PREFERENCES": false, "ACH_PREFERENCES": false,
"ACH_ONLINE_DOCS": false, "ACH_ONLINE_DOCS": false,
"ACH_SUPPORT_DEVELOPMENT": false, "ACH_SUPPORT_DEVELOPMENT": false,
"ACH_BLEND_IN": false,
"ACH_STRONGER_TOGETHER": false,
"ACH_3D_LAYER": false, "ACH_3D_LAYER": false,
} }

View file

@ -532,6 +532,7 @@ func _on_QuitAndSaveDialog_custom_action(action: String) -> void:
func _on_QuitAndSaveDialog_confirmed() -> void: func _on_QuitAndSaveDialog_confirmed() -> void:
is_quitting_on_save = true is_quitting_on_save = true
show_save_dialog(changed_projects_on_quit[0]) show_save_dialog(changed_projects_on_quit[0])
SteamManager.set_achievement("ACH_ALMOST_FORGOT")
func _quit() -> void: func _quit() -> void:

View file

@ -90,6 +90,8 @@ func _on_SplashDialog_about_to_show() -> void:
func change_artwork(direction: int) -> void: func change_artwork(direction: int) -> void:
if direction != 0:
SteamManager.set_achievement("ACH_ART_LOVER")
chosen_artwork = wrapi(chosen_artwork + direction, 0, artworks.size()) chosen_artwork = wrapi(chosen_artwork + direction, 0, artworks.size())
splash_art_texturerect.texture = artworks[chosen_artwork].artwork splash_art_texturerect.texture = artworks[chosen_artwork].artwork
set_process(artworks[chosen_artwork].artwork is AnimatedTexture) set_process(artworks[chosen_artwork].artwork is AnimatedTexture)

View file

@ -236,6 +236,7 @@ func _on_blend_modes_item_selected(index: int) -> void:
project.undo_redo.add_undo_method(_update_layer_ui) project.undo_redo.add_undo_method(_update_layer_ui)
project.undo_redo.add_undo_method(Global.canvas.draw_layers) project.undo_redo.add_undo_method(Global.canvas.draw_layers)
project.undo_redo.commit_action() project.undo_redo.commit_action()
SteamManager.set_achievement("ACH_BLEND_IN")
func add_frame() -> void: func add_frame() -> void:
@ -793,6 +794,7 @@ func add_layer(type := 0) -> void:
l = PixelLayer.new(project) l = PixelLayer.new(project)
Global.LayerTypes.GROUP: Global.LayerTypes.GROUP:
l = GroupLayer.new(project) l = GroupLayer.new(project)
SteamManager.set_achievement("ACH_STRONGER_TOGETHER")
Global.LayerTypes.THREE_D: Global.LayerTypes.THREE_D:
l = Layer3D.new(project) l = Layer3D.new(project)
SteamManager.set_achievement("ACH_3D_LAYER") SteamManager.set_achievement("ACH_3D_LAYER")