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(); }
public CurrentThemeTextSource() { source = new TranslatedTextSource("craftguide.gui.config.current_theme.format_string"); source.addListener(this); }