Permalink
Browse files

CT: Moved the main-map uncut image to utils, and added a return butto…

…n in the game.
  • Loading branch information...
1 parent 6f22037 commit 8fc20fb0e4acebe9c27eef26cd11515a7e641a6b @DDR0 DDR0 committed May 3, 2012
@@ -368,6 +368,9 @@ on_create: "[//debug('HI THERE'), //By Gregory Clark. Good book. Do recommend.s
set(button.erase.vars.offset, [129 - margin, -46 - button.erase.img_h + margin]),
set(button.erase.parent, button.toolbox),
set(self.vars.erase_button, button.erase),
+ add_object(button.return),
+ set(button.return.vars.action, fire_event(self, 'exit_level')),
+ set(button.return.vars.offset, -margin),
] where button = { 'nav1' -> object('ct-button-nav-1'),
'nav3' -> object('ct-button-nav-3'),
@@ -382,6 +385,7 @@ on_create: "[//debug('HI THERE'), //By Gregory Clark. Good book. Do recommend.s
'toolcw' -> object('ct-button-nav-cw'),
'trains' -> object('ct-button-trains'),
'erase' -> object('ct-button-erase'),
+ 'return' -> object('ct-button-return'),
}
where margin = -10",
on_ctrl_left: "move([0,-1,0])",
@@ -0,0 +1,13 @@
+{
+id: "ct-button-return",
+zorder: 100,
+prototype: ["ct-button-nav"],
+animation: {
+ id: "normal",
+ image: "experimental/cube trains/ui/buttons.png",
+ x: 0,
+ y: 200,
+ w: 100,
+ h: 50,
+},
+}
@@ -7,7 +7,6 @@
# 6) Undo step #3.
# 7) Launch game. Note that tutorial-1 is hard-coded to be partially solved, right now.
-
{
id: "ct-map-marker",
prototype: ["button_input"], #drag_input - makes the object behave as editable. button_input - makes the object behave normally.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.

0 comments on commit 8fc20fb

Please sign in to comment.