Skip to content

Commit

Permalink
Death animation improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
pontaoski committed Dec 16, 2019
1 parent 7213b0b commit d708107
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/global.vala
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ namespace Taigo.Globals {
public static GtkClutter.Embed scene;
public static Taigochi taigochi;
public static StateManager.StateMachine statemachine;
public static Gtk.Window global_win;
public static Taigo.Window global_win;
}
5 changes: 5 additions & 0 deletions src/taigochi.vala
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,11 @@ namespace Taigo {
this.care_misses++;
this.missed_calls = 0;
if (this.care_misses > 5) {
global_win.content_stack.hide();
Timeout.add(2000, () => {
global_win.content_stack.show();
return false;
}, Priority.DEFAULT);
this.ttype = Taigos.MOLICHI;
var pixbuf = new Gdk.Pixbuf.from_resource("/com/github/appadeia/Taigo/images/bgs/graveyard.svg");
var img = new Clutter.Image();
Expand Down
2 changes: 1 addition & 1 deletion src/window.vala
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ namespace Taigo {
Gtk.MenuButton hamberder;

[GtkChild]
Gtk.Stack content_stack;
public Gtk.Stack content_stack;

[GtkChild]
Gtk.Image taigo_sleeping;
Expand Down

0 comments on commit d708107

Please sign in to comment.