2014-04-29 10:54:20 +10:00
|
|
|
package codechicken.nei;
|
|
|
|
|
|
2022-06-24 12:32:13 +01:00
|
|
|
public class VisiblityData {
|
2023-01-28 17:55:51 -08:00
|
|
|
|
2014-04-29 10:54:20 +10:00
|
|
|
public boolean showUtilityButtons = true;
|
|
|
|
|
/**
|
|
|
|
|
* Item panel and associated buttons
|
|
|
|
|
*/
|
|
|
|
|
public boolean showItemPanel = true;
|
2019-12-24 13:37:41 -08:00
|
|
|
/**
|
|
|
|
|
* Bookmark panel and associated buttons
|
|
|
|
|
*/
|
|
|
|
|
public boolean showBookmarkPanel = true;
|
2022-02-17 09:28:48 +02:00
|
|
|
/**
|
|
|
|
|
* Subset dropdown
|
|
|
|
|
*/
|
|
|
|
|
public boolean showSubsetDropdown = true;
|
|
|
|
|
/**
|
|
|
|
|
* Presets dropdown
|
|
|
|
|
*/
|
|
|
|
|
public boolean showPresetsDropdown = true;
|
2014-04-29 10:54:20 +10:00
|
|
|
/**
|
|
|
|
|
* Item and search section
|
|
|
|
|
*/
|
|
|
|
|
public boolean showItemSection = true;
|
|
|
|
|
/**
|
|
|
|
|
* Dropdown and Item search field
|
|
|
|
|
*/
|
|
|
|
|
public boolean showSearchSection = true;
|
|
|
|
|
/**
|
|
|
|
|
* All widgets except options button
|
|
|
|
|
*/
|
|
|
|
|
public boolean showWidgets = true;
|
|
|
|
|
/**
|
|
|
|
|
* The entire NEI interface, aka hidden
|
|
|
|
|
*/
|
|
|
|
|
public boolean showNEI = true;
|
2022-06-24 12:32:13 +01:00
|
|
|
|
2014-04-29 10:54:20 +10:00
|
|
|
public boolean enableDeleteMode = true;
|
2020-01-07 11:15:03 -08:00
|
|
|
|
|
|
|
|
// Deprecated -- left in for campatability with other mods that mess with this
|
|
|
|
|
public boolean showStateButtons = false;
|
|
|
|
|
|
2022-06-24 12:32:13 +01:00
|
|
|
public void translateDependancies() {
|
|
|
|
|
if (!showNEI) showWidgets = false;
|
|
|
|
|
if (!showWidgets) showItemSection = showUtilityButtons = false;
|
|
|
|
|
if (!showItemSection)
|
2022-02-17 09:28:48 +02:00
|
|
|
showBookmarkPanel = showSubsetDropdown = showPresetsDropdown = showSearchSection = showItemPanel = false;
|
2014-04-29 10:54:20 +10:00
|
|
|
}
|
|
|
|
|
}
|