private void renderSelectionInfo(Graphics g)
    {
        StringBuffer strBuffer = new StringBuffer();

        strBuffer.append("selection: ");
        if (this.m_selectedObject == null)
        {
            strBuffer.append("none");
        }
        else if (house.Room.house_cast(this.m_selectedObject) != null)
        {
            house.Room room = house.Room.house_cast(this.m_selectedObject);
            strBuffer.append("room (floor=").append(GlobalConstants.LOOKUP_FLOOR[room.getFloor()]).append(", wall=").append(GlobalConstants.LOOKUP_WALL[room.getWall()]).append(")");
        }
        else if (Door.house_cast(this.m_selectedObject) != null)
        {
            Door door = Door.house_cast(this.m_selectedObject);
            strBuffer.append("door (type=").append(GlobalConstants.LOOKUP_OBJECT[door.getType()]).append(")");
        }
        else if (HouseObject.house_cast(this.m_selectedObject) != null)
        {
            HouseObject houseObject = HouseObject.house_cast(this.m_selectedObject);
            strBuffer.append("object (type=").append(GlobalConstants.LOOKUP_OBJECT[houseObject.getType()]).append(")");
        }
        else if (Window.house_cast(this.m_selectedObject) != null)
        {
            Window window = Window.house_cast(this.m_selectedObject);
            strBuffer.append("window (type=").append(GlobalConstants.LOOKUP_OBJECT[window.getType()]).append(")");
        }
        this.m_engine.getTextManager().drawString(g, strBuffer, 5, 5, 5, 9);
    }
    private void initStateEditAttributes()
    {
        this.m_lookupsFirstList               = (string[])null;
        this.m_numPagesFirstList              = 0;
        this.m_currPageFirstList              = 0;
        this.m_lookupSizeFirstList            = 0;
        this.m_lookupsSecondList              = (string[])null;
        this.m_numPagesSecondList             = 0;
        this.m_currPageSecondList             = 0;
        this.m_lookupSizeFirstList            = 0;
        this.m_currSelectionFirstList         = 0;
        this.m_currSelectionSecondList        = 0;
        this.m_currentFacingSelectionButtonId = -1;
        this.m_attrEditButtons[4].hide();
        this.m_attrEditButtons[5].hide();
        this.m_attrEditButtons[6].hide();
        this.m_attrEditButtons[7].hide();
        this.m_attrEditButtons[0].hide();
        this.m_attrEditButtons[2].hide();
        this.m_attrEditButtons[1].hide();
        this.m_attrEditButtons[3].hide();
        if (house.Room.house_cast(this.m_selectedObject) != null)
        {
            house.Room room = house.Room.house_cast(this.m_selectedObject);
            this.m_lookupsFirstList        = GlobalConstants.LOOKUP_FLOOR;
            this.m_lookupSizeFirstList     = this.m_simWorld.getFloorCount();
            this.m_currSelectionFirstList  = room.getFloor();
            this.m_lookupsSecondList       = GlobalConstants.LOOKUP_WALL;
            this.m_lookupSizeSecondList    = this.m_simWorld.getWallCount();
            this.m_currSelectionSecondList = room.getWall();
        }
        else if (Door.house_cast(this.m_selectedObject) != null)
        {
            Door door = Door.house_cast(this.m_selectedObject);
            this.m_lookupsFirstList       = GlobalConstants.LOOKUP_OBJECT;
            this.m_lookupSizeFirstList    = this.m_simWorld.getDoorTypeNthCount();
            this.m_currSelectionFirstList = this.m_simWorld.getObjectOfTypeIndexFromObjectArrayIndex(15, door.getType() == -1 ? 70 : door.getType());
            JSystem.println("door count = " + (object)this.m_lookupSizeFirstList);
        }
        else if (HouseObject.house_cast(this.m_selectedObject) != null)
        {
            HouseObject houseObject = HouseObject.house_cast(this.m_selectedObject);
            this.m_attrEditButtons[4].show();
            this.m_attrEditButtons[5].show();
            this.m_attrEditButtons[6].show();
            this.m_attrEditButtons[7].show();
            switch (houseObject.getFacing())
            {
            case 0:
                this.m_currentFacingSelectionButtonId = 4;
                break;

            case 1:
                this.m_currentFacingSelectionButtonId = 6;
                break;

            case 2:
                this.m_currentFacingSelectionButtonId = 5;
                break;

            case 3:
                this.m_currentFacingSelectionButtonId = 7;
                break;
            }
            this.m_lookupsFirstList    = GlobalConstants.LOOKUP_OBJECT;
            this.m_lookupSizeFirstList = this.m_simWorld.getBuildableNthCount();
            JSystem.println("object count = " + (object)this.m_lookupSizeFirstList);
            this.m_currSelectionFirstList = this.m_simWorld.getBuildableObjectIndexFromObjectArrayIndex(houseObject.getType());
        }
        else if (Window.house_cast(this.m_selectedObject) != null)
        {
            Window window = Window.house_cast(this.m_selectedObject);
            this.m_lookupsFirstList    = GlobalConstants.LOOKUP_OBJECT;
            this.m_lookupSizeFirstList = this.m_simWorld.getWindowTypeNthCount();
            JSystem.println("window count = " + (object)this.m_lookupSizeFirstList);
            this.m_currSelectionFirstList = this.m_simWorld.getObjectOfTypeIndexFromObjectArrayIndex(32, window.getType());
        }
        if (this.m_lookupsFirstList != null)
        {
            this.m_numPagesFirstList = 1 + (this.m_lookupSizeFirstList - 1) / this.m_numListRows;
            if (this.m_numPagesFirstList > 1)
            {
                this.m_attrEditButtons[1].show();
            }
        }
        if (this.m_lookupsSecondList == null)
        {
            return;
        }
        this.m_numPagesSecondList = 1 + (this.m_lookupSizeSecondList - 1) / this.m_numListRows;
        if (this.m_numPagesSecondList <= 1)
        {
            return;
        }
        this.m_attrEditButtons[3].show();
    }