|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmoapi.gui.GuiController
public class GuiController
Gui controller for a single mod and all of it's suboption menus Moved from GuiController to Controller
Constructor Summary | |
---|---|
GuiController()
Create the controller |
Method Summary | |
---|---|
void |
addFormatter(ModOption option,
DisplayStringFormatter formatter)
Add a new formatter for this specific option's output string |
java.lang.String |
getDisplayString(ModOption o)
Get the display string for an option, which will use a string formatter to decide the output of the text for a global value |
java.lang.String |
getDisplayString(ModOption o,
boolean localMode)
Get the display string for an option, which will use a string formatter to decide the output of the text Value is local value if localMode is true, otherwise global |
boolean |
isWide(ModOption o)
Check if the given option is in a wide bar format |
void |
setFormatter(ModOption option,
DisplayStringFormatter formatter)
Set the text formatting class for a specific option's output string and removes all other formatters |
void |
setWide(ModOption option)
Sets the named option to show as a full width bar instead of the default half-width |
void |
setWide(java.lang.String name)
Sets the named option to show as a full width bar instead of the default half-width |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GuiController()
Method Detail |
---|
public void setWide(java.lang.String name)
name
- Name of option to set widepublic void setWide(ModOption option)
option
- Option to set widepublic boolean isWide(ModOption o)
o
- Check if this option is widepublic void setFormatter(ModOption option, DisplayStringFormatter formatter)
option
- Option to set a single formatter forformatter
- String formatterpublic void addFormatter(ModOption option, DisplayStringFormatter formatter)
option
- Option to add a formatter toformatter
- Formatter to add to this options format queuepublic java.lang.String getDisplayString(ModOption o)
o
- Get display string
public java.lang.String getDisplayString(ModOption o, boolean localMode)
o
- Get display stringlocalMode
- True if use local valu
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |