aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/kr/syeyoung/dungeonsguide/config/guiconfig/PanelDelegate.java
blob: c8971acd7cfb9bc11b26a0352330dda76b27ba71 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package kr.syeyoung.dungeonsguide.config.guiconfig;

import kr.syeyoung.dungeonsguide.features.GuiFeature;
import kr.syeyoung.dungeonsguide.roomedit.MPanel;

import java.awt.*;

public class PanelDelegate extends MPanel {
    private GuiFeature guiFeature;
    public PanelDelegate(GuiFeature guiFeature) {
        this.guiFeature = guiFeature;
    }

    @Override
    public Rectangle getBounds() {
        return guiFeature.getFeatureRect();
    }

    @Override
    public void render(int absMousex, int absMousey, int relMousex0, int relMousey0, float partialTicks, Rectangle scissor) {
        super.render(absMousex, absMousey, relMousex0, relMousey0, partialTicks, scissor);
    }
}