public TilegroupSelector(Application application, TileListWidget tileList)
    {
        this.tileList = tileList;
        application.LevelChanged += OnLevelChanged;

        CellRendererText renderer = new CellRendererText();
        PackStart(renderer, false);
        SetCellDataFunc(renderer, TextDataFunc);

        Changed += OnTileGroupChosen;
    }
예제 #2
0
    public TilegroupSelector(IEditorApplication application, TileListWidget tileList)
    {
        this.tileList             = tileList;
        application.LevelChanged += OnLevelChanged;

        CellRendererText renderer = new CellRendererText();

        PackStart(renderer, false);
        SetCellDataFunc(renderer, TextDataFunc);

        Changed += OnTileGroupChosen;
    }
예제 #3
0
    private Gtk.Widget CreateTileList()
    {
        Gtk.VBox box = new Gtk.VBox();
        box.Homogeneous = false;

        Gtk.Adjustment vadjustment = new Gtk.Adjustment(0, 0, 100, 1, 10, 10);

        tileList = new TileListWidget(this, selection, vadjustment);
        TilegroupSelector selector = new TilegroupSelector(this, tileList);

        Gtk.HBox hbox = new Gtk.HBox(false, 0);

        Gtk.VScrollbar scrollbar = new Gtk.VScrollbar(vadjustment);

        hbox.PackStart(tileList, true, true, 0);
        hbox.PackEnd(scrollbar, false, true, 0);

        box.PackStart(selector, false, true, 0);
        box.PackStart(hbox, true, true, 0);

        return(box);
    }
예제 #4
0
    private Widget CreateTileList()
    {
        VBox box = new VBox();
        box.Homogeneous = false;

        tileList = new TileListWidget(this, selection);
        TilegroupSelector selector = new TilegroupSelector(this, tileList);

        box.PackStart(selector, false, true, 0);
        box.PackStart(tileList, true, true, 0);

        return box;
    }
예제 #5
0
    private Gtk.Widget CreateTileList()
    {
        Gtk.VBox box = new Gtk.VBox();
        box.Homogeneous = false;

        Gtk.Adjustment vadjustment = new Gtk.Adjustment(0, 0, 100, 1, 10, 10);

        tileList = new TileListWidget(this, selection, vadjustment);
        TilegroupSelector selector = new TilegroupSelector(this, tileList);

        Gtk.HBox hbox = new Gtk.HBox(false, 0);

        Gtk.VScrollbar scrollbar = new Gtk.VScrollbar(vadjustment);

        hbox.PackStart(tileList, true, true, 0);
        hbox.PackEnd(scrollbar, false, true, 0);

        box.PackStart(selector, false, true, 0);
        box.PackStart(hbox, true, true, 0);

        return box;
    }