mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-01-19 09:39:48 +00:00
Add more achievements
This commit is contained in:
parent
1a99d524d1
commit
6e62361b24
|
@ -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()
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -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,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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:
|
||||||
|
|
|
@ -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)
|
||||||
|
|
|
@ -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")
|
||||||
|
|
Loading…
Reference in a new issue