diff options
author | Gonzalo Odiard <godiard@gmail.com> | 2012-02-21 23:56:24 (GMT) |
---|---|---|
committer | Gonzalo Odiard <godiard@gmail.com> | 2012-02-21 23:56:24 (GMT) |
commit | 5b45b6e35c5d90e483cc0b81d4562ebf27d7e407 (patch) | |
tree | 488ea32e6324e1afabc4441185a0b2e6afff5230 /activity.py | |
parent | 5e068d9062129e939f0b903f14bbc78699794369 (diff) |
Add / delete and position of furniture in the map
The x,y posittion in the wall is in pixels, then is not resolution independent
we need change it to be in porcentage of the width / height
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
Diffstat (limited to 'activity.py')
-rw-r--r-- | activity.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/activity.py b/activity.py index 03c2084..17a900f 100644 --- a/activity.py +++ b/activity.py @@ -174,6 +174,8 @@ class IngeniumMachinaActivity(activity.Activity): self.collect_resources_win.add_resource() elif self.action == EDIT_QUESTIONS_ACTION: self.prepare_questions_win.add_question() + elif self.action == EDIT_MAP_ACTION: + self.edit_map_win.add_selected_object() def __remove_cb(self, button): if self.action is None: @@ -182,6 +184,8 @@ class IngeniumMachinaActivity(activity.Activity): self.collect_resources_win.del_resource() elif self.action == EDIT_QUESTIONS_ACTION: self.prepare_questions_win.del_question() + elif self.action == EDIT_MAP_ACTION: + self.edit_map_win.remove_selected_object() def update_buttons_state(self): self._resources_button.set_sensitive(self.mode == EDIT_MODE) |