[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pingus-CVS] CVS: Games/Pingus/src/editor editor.cxx,1.43,1.44 editor_he
From: |
grumbel |
Subject: |
[Pingus-CVS] CVS: Games/Pingus/src/editor editor.cxx,1.43,1.44 editor_help_screen.cxx,1.3,1.4 panel.cxx,1.5,1.6 panel_icons.cxx,1.6,1.7 panel_icons.hxx,1.7,1.8 |
Date: |
18 Feb 2003 10:30:33 -0000 |
Update of /usr/local/cvsroot/Games/Pingus/src/editor
In directory dark:/tmp/cvs-serv9986
Modified Files:
editor.cxx editor_help_screen.cxx panel.cxx panel_icons.cxx
panel_icons.hxx
Log Message:
added icon for help screen
Index: editor.cxx
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/editor/editor.cxx,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -d -r1.43 -r1.44
--- editor.cxx 25 Jan 2003 18:34:36 -0000 1.43
+++ editor.cxx 18 Feb 2003 10:30:31 -0000 1.44
@@ -72,7 +72,7 @@
}
Editor::Editor () : event_handler_ref_counter(0),
- move_x(0), move_y(0), show_help_screen(true),
tool(SELECTOR_TOOL)
+ move_x(0), move_y(0), show_help_screen(false),
tool(SELECTOR_TOOL)
{
EditorObj::set_editor(this);
event = new EditorEvent;
Index: editor_help_screen.cxx
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/editor/editor_help_screen.cxx,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- editor_help_screen.cxx 30 Jun 2002 22:03:13 -0000 1.3
+++ editor_help_screen.cxx 18 Feb 2003 10:30:31 -0000 1.4
@@ -33,8 +33,8 @@
void
EditorHelpScreen::draw ()
{
- CL_Display::fill_rect (0,0, CL_Display::get_width (), CL_Display::get_height
(),
- 0.0f, 0.0f, 0.0f, 0.5f);
+ CL_Display::fill_rect (25,0, CL_Display::get_width (),
CL_Display::get_height (),
+ 0.0f, 0.0f, 0.0f, 1.0f);
large_font->print_center (CL_Display::get_width ()/2, 32, "Editor Helpscreen
(hide with F1)");
int x_pos;
Index: panel.cxx
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/editor/panel.cxx,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- panel.cxx 11 Sep 2002 12:45:58 -0000 1.5
+++ panel.cxx 18 Feb 2003 10:30:31 -0000 1.6
@@ -134,6 +134,7 @@
buttons.push_back(new PanelIconRun);
+ buttons.push_back(new PanelIconHelp);
buttons.push_back(new PanelIconExit);
is_init = true;
Index: panel_icons.cxx
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/editor/panel_icons.cxx,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- panel_icons.cxx 28 Nov 2002 20:09:54 -0000 1.6
+++ panel_icons.cxx 18 Feb 2003 10:30:31 -0000 1.7
@@ -195,6 +195,18 @@
editor->get_event()->editor_show_actions_window ();
}
+PanelIconHelp::PanelIconHelp ()
+{
+ tooltip = _("Display Help Screen");
+ sur = PingusResource::load_surface("editor/help", "core");
+}
+
+void
+PanelIconHelp::on_click()
+{
+ editor->toggle_help_screen ();
+}
+
} // namespace EditorNS
/* EOF */
Index: panel_icons.hxx
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/editor/panel_icons.hxx,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- panel_icons.hxx 27 Sep 2002 11:26:45 -0000 1.7
+++ panel_icons.hxx 18 Feb 2003 10:30:31 -0000 1.8
@@ -189,6 +189,18 @@
PanelIconSetupActions& operator= (const PanelIconSetupActions&);
};
+
+class PanelIconHelp : public PanelIcon
+{
+public:
+ PanelIconHelp ();
+ virtual void on_click();
+
+private:
+ PanelIconHelp (const PanelIconHelp&);
+ PanelIconHelp& operator= (const PanelIconHelp&);
+};
+
} // namespace EditorNS
#endif
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pingus-CVS] CVS: Games/Pingus/src/editor editor.cxx,1.43,1.44 editor_help_screen.cxx,1.3,1.4 panel.cxx,1.5,1.6 panel_icons.cxx,1.6,1.7 panel_icons.hxx,1.7,1.8,
grumbel <=
- Prev by Date:
[Pingus-CVS] CVS: Games/Pingus/src/worldobjsdata fake_exit_data.cxx,1.7,1.8 groundpiece_data.cxx,1.9,1.10 ice_block_data.cxx,1.6,1.7 info_box_data.cxx,1.8,1.9 prefab_obj_data.cxx,1.5,1.6 switch_door_data.cxx,1.7,1.8 teleporter_data.cxx,1.7,1.8
- Next by Date:
[Pingus-CVS] CVS: Games/Pingus/src/worldmap dot.cxx,1.3,1.4 node_data.cxx,1.8,1.9
- Previous by thread:
[Pingus-CVS] CVS: Games/Pingus/src/worldobjsdata fake_exit_data.cxx,1.7,1.8 groundpiece_data.cxx,1.9,1.10 ice_block_data.cxx,1.6,1.7 info_box_data.cxx,1.8,1.9 prefab_obj_data.cxx,1.5,1.6 switch_door_data.cxx,1.7,1.8 teleporter_data.cxx,1.7,1.8
- Next by thread:
[Pingus-CVS] CVS: Games/Pingus/src/worldmap dot.cxx,1.3,1.4 node_data.cxx,1.8,1.9
- Index(es):