Exemplo n.º 1
0
    public ConfigEntry(TextSource text, GuiElement element, int pos) {
      super(0, pos, ConfigList.this.width(), 0);

      this.element = element;
      textDisplay =
          new MultilineText(
              BORDER_THICKNESS + element.width() + BORDER_THICKNESS, BORDER_THICKNESS, null);
      translatedText = text;
      translatedText.addListener(this);
      addElement(element);
      recalculateHeight();
    }
Exemplo n.º 2
0
 public CurrentThemeTextSource() {
   source = new TranslatedTextSource("craftguide.gui.config.current_theme.format_string");
   source.addListener(this);
 }