From: Miloš Klouček Date: Mon, 27 Oct 2008 18:26:18 +0000 (+0000) Subject: Added checkboxes for attributes defined in supertux/src/tile.hpp X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=f3f28c8e62e0f80882c42d319007258f853f4b18;p=supertux.git Added checkboxes for attributes defined in supertux/src/tile.hpp SVN-Revision: 5814 --- diff --git a/tools/tilemanager/Application.cs b/tools/tilemanager/Application.cs index bbb738732..deaf73b96 100644 --- a/tools/tilemanager/Application.cs +++ b/tools/tilemanager/Application.cs @@ -14,6 +14,7 @@ public class Application { [Glade.Widget] private Gtk.DrawingArea DrawingArea; [Glade.Widget] + //Flags CheckButtons private Gtk.CheckButton SolidCheckButton; [Glade.Widget] private Gtk.CheckButton UniSolidCheckButton; @@ -22,12 +23,25 @@ public class Application { [Glade.Widget] private Gtk.CheckButton WaterCheckButton; [Glade.Widget] + private Gtk.CheckButton HurtsCheckButton; + [Glade.Widget] + private Gtk.CheckButton FireCheckButton; + [Glade.Widget] + private Gtk.CheckButton BrickCheckButton; + [Glade.Widget] + private Gtk.CheckButton CoinCheckButton; + [Glade.Widget] + private Gtk.CheckButton FullBoxCheckButton; + [Glade.Widget] private Gtk.CheckButton SlopeCheckButton; [Glade.Widget] + private Gtk.CheckButton GoalCheckButton; + [Glade.Widget] private Gtk.CheckButton DontUseCheckButton; [Glade.Widget] private Gtk.CheckButton HiddenCheckButton; [Glade.Widget] + private Gtk.Entry DataEntry; [Glade.Widget] private Gtk.Entry AnimFpsEntry; @@ -414,8 +428,20 @@ public class Application { tile.SetAttribute(Attribute.ICE, IceCheckButton.Active); if(sender == WaterCheckButton) tile.SetAttribute(Attribute.WATER, WaterCheckButton.Active); + if(sender == HurtsCheckButton) + tile.SetAttribute(Attribute.HURTS, HurtsCheckButton.Active); + if(sender == FireCheckButton) + tile.SetAttribute(Attribute.FIRE, FireCheckButton.Active); + if(sender == BrickCheckButton) + tile.SetAttribute(Attribute.BRICK, BrickCheckButton.Active); + if(sender == CoinCheckButton) + tile.SetAttribute(Attribute.COIN, CoinCheckButton.Active); + if(sender == FullBoxCheckButton) + tile.SetAttribute(Attribute.FULLBOX, FullBoxCheckButton.Active); if(sender == SlopeCheckButton) tile.SetAttribute(Attribute.SLOPE, SlopeCheckButton.Active); + if(sender == GoalCheckButton) + tile.SetAttribute(Attribute.GOAL, GoalCheckButton.Active); if(sender == HiddenCheckButton) tile.Hidden = HiddenCheckButton.Active; if(sender == DontUseCheckButton) @@ -467,7 +493,13 @@ public class Application { UniSolidCheckButton.Active = tile.HasAttribute(Attribute.UNISOLID); IceCheckButton.Active = tile.HasAttribute(Attribute.ICE); WaterCheckButton.Active = tile.HasAttribute(Attribute.WATER); + HurtsCheckButton.Active = tile.HasAttribute(Attribute.HURTS); + FireCheckButton.Active = tile.HasAttribute(Attribute.FIRE); + BrickCheckButton.Active = tile.HasAttribute(Attribute.BRICK); + CoinCheckButton.Active = tile.HasAttribute(Attribute.COIN); + FullBoxCheckButton.Active = tile.HasAttribute(Attribute.FULLBOX); SlopeCheckButton.Active = tile.HasAttribute(Attribute.SLOPE); + GoalCheckButton.Active = tile.HasAttribute(Attribute.GOAL); HiddenCheckButton.Active = tile.Hidden; DontUseCheckButton.Active = tile.ID == -1; DataEntry.Text = tile.Data.ToString(); diff --git a/tools/tilemanager/tiler.glade b/tools/tilemanager/tiler.glade index 5f54f842c..518b75ee3 100644 --- a/tools/tilemanager/tiler.glade +++ b/tools/tilemanager/tiler.glade @@ -328,7 +328,7 @@ 6 True - 6 + 9 3 False 6 @@ -427,29 +427,6 @@ - - True - True - Slope - True - GTK_RELIEF_NORMAL - True - False - False - True - - - - 0 - 1 - 2 - 3 - fill - - - - - True Data: @@ -470,8 +447,8 @@ 0 1 - 3 - 4 + 6 + 7 fill @@ -493,8 +470,8 @@ 1 2 - 3 - 4 + 6 + 7 @@ -520,8 +497,8 @@ 0 1 - 4 - 5 + 7 + 8 fill @@ -543,8 +520,8 @@ 1 2 - 4 - 5 + 7 + 8 @@ -570,8 +547,8 @@ 0 1 - 5 - 6 + 8 + 9 fill @@ -593,8 +570,54 @@ 1 2 - 5 - 6 + 8 + 9 + + + + + + + True + True + Hidden + True + GTK_RELIEF_NORMAL + True + False + False + True + + + + 2 + 3 + 0 + 1 + fill + + + + + + + True + True + FullBox + True + GTK_RELIEF_NORMAL + True + False + False + True + + + + 0 + 1 + 4 + 5 + fill @@ -615,6 +638,75 @@ 1 2 + 5 + 6 + fill + + + + + + + True + True + Hurts + True + GTK_RELIEF_NORMAL + True + False + False + True + + + + 0 + 1 + 2 + 3 + fill + + + + + + + True + True + Brick + True + GTK_RELIEF_NORMAL + True + False + False + True + + + + 0 + 1 + 3 + 4 + fill + + + + + + + True + True + Fire + True + GTK_RELIEF_NORMAL + True + False + False + True + + + + 1 + 2 2 3 fill @@ -623,23 +715,69 @@ - + True True - Hidden + Slope True GTK_RELIEF_NORMAL True False False True - + - 2 - 3 - 0 - 1 + 1 + 2 + 4 + 5 + fill + + + + + + + True + True + Goal + True + GTK_RELIEF_NORMAL + True + False + False + True + + + + 0 + 1 + 5 + 6 + fill + + + + + + + True + True + Coin + True + GTK_RELIEF_NORMAL + True + False + False + True + + + + 1 + 2 + 3 + 4 fill