Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…n in the game.
  • Loading branch information...
commit 8fc20fb0e4acebe9c27eef26cd11515a7e641a6b 1 parent 6f22037
@DDR0 DDR0 authored
View
4 modules/cube_trains/data/object_prototypes/ct-cursor.cfg
@@ -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])",
View
13 modules/cube_trains/data/objects/ct-button-return.cfg
@@ -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,
+},
+}
View
1  modules/cube_trains/data/objects/ct-map-marker.cfg
@@ -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.
View
BIN  modules/cube_trains/images/experimental/cube trains/ui/buttons.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  modules/cube_trains/utils/buttons.xcf
Binary file not shown
View
0  ...ges/experimental/cube trains/custom/ct-map-01.png → modules/cube_trains/utils/ct-map-01.png
File renamed without changes
Please sign in to comment.
Something went wrong with that request. Please try again.