Class UIManager
java.lang.Object
zombie.ui.UIManager
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic booleanstatic Texturestatic booleanstatic Clockstatic UIDebugConsolestatic KahluaThreadstatic booleanstatic floatstatic intstatic intstatic booleanstatic booleanstatic booleanstatic floatstatic Texturestatic intstatic intstatic floatstatic floatstatic IsoObjectstatic Stringstatic ModalDialogstatic final MoodlesUI[]static Texturestatic Texturestatic Texturestatic Texturestatic IsoObjectPicker.ClickObjectstatic final Vector2static final Vector2static KahluaThreadstatic final ActionProgressBar[]static IsoObjectstatic SpeedControlsstatic ObjectTooltipstatic final ArrayList<UIElementInterface> static final ArrayList<UIElementInterface> static TextureFBOstatic longstatic longstatic booleanstatic longstatic longstatic booleanstatic boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidAddUI(UIElementInterface uIElementInterface) static voidstatic voidstatic voidstatic voidCreateFBO(int width, int height) static TextureFBOcreateTexture(float x, float y, boolean test) static voiddebugBreakpoint(String filename, long pc) static voidDrawTexture(Texture tex, double x, double y) static voidDrawTexture(Texture tex, double x, double y, double width, double height, double alpha) static voidFadeIn(double seconds) static voidFadeIn(double playerIndex, double seconds) static voidFadeOut(double seconds) static voidFadeOut(double playerIndex, double seconds) static TexturegetBlack()static floatgetBlinkAlpha(int int0) static ClockgetClock()static UIDebugConsolestatic KahluaThreadstatic Doublestatic Doublestatic Doublestatic floatgetFadeAlpha(double playerIndex) static Doublestatic Doublestatic floatstatic Texturestatic Doublestatic Doublestatic floatstatic floatstatic IsoObjectstatic doublestatic doublestatic ModalDialoggetModal()static MoodlesUIgetMoodleUI(double index) static Texturestatic Texturestatic Texturestatic Texturestatic IsoObjectPicker.ClickObjectstatic Vector2static Vector2static ActionProgressBargetProgressBar(double index) static IsoObjectstatic doublestatic doublestatic SpeedControlsstatic intgetSyncedIconIndex(int var0, int int0) static Vector2getTileFromMouse(double mx, double my, double z) static ObjectTooltipstatic ArrayList<UIElementInterface> getUI()static voidinit()static booleanstatic BooleanisDoubleClick(double x1, double y1, double x2, double y2, double clickTime) static Booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanonKeyPress(int key) static booleanonKeyRelease(int key) static booleanonKeyRepeat(int key) static voidRemoveElement(UIElementInterface uIElementInterface) static voidrender()static voidstatic intresetSyncedIconIndex(int var0) static voidresize()static voidsetbFadeBeforeUI(boolean abFadeBeforeUI) static voidstatic voidstatic voidsetDebugConsole(UIDebugConsole aDebugConsole) static voidsetDoneTutorials(ArrayList<String> aDoneTutorials) static voidsetFadeAlpha(double aFadeAlpha) static voidsetFadeBeforeUI(int playerIndex, boolean _bFadeBeforeUI) static voidsetFadeInTime(double aFadeInTime) static voidsetFadeInTimeMax(double aFadeInTimeMax) static voidsetFadeTime(double playerIndex, double FadeTime) static voidsetFadingOut(boolean aFadingOut) static voidsetLastAlpha(float aLastAlpha) static voidsetLastMouseTexture(Texture aLastMouseTexture) static voidsetLastMouseX(double aLastMouseX) static voidsetLastMouseY(double aLastMouseY) static voidsetLastOffX(float aLastOffX) static voidsetLastOffY(float aLastOffY) static voidsetLastPicked(IsoObject aLastPicked) static voidsetModal(ModalDialog aModal) static voidsetMoodleUI(double index, MoodlesUI aMoodleUI) static voidsetMouseArrow(Texture aMouseArrow) static voidsetMouseAttack(Texture aMouseAttack) static voidsetMouseExamine(Texture aMouseExamine) static voidsetMouseGrab(Texture aMouseGrab) static voidsetPicked(IsoObjectPicker.ClickObject aPicked) static voidsetPickedTile(Vector2 aPickedTile) static voidsetPickedTileLocal(Vector2 aPickedTileLocal) static voidsetPlayerInventory(int int0, UIElementInterface uIElementInterface0, UIElementInterface uIElementInterface1) static voidsetPlayerInventoryTooltip(int int0, UIElementInterface uIElementInterface0, UIElementInterface uIElementInterface1) static voidsetProgressBar(double index, ActionProgressBar aProgressBar) static voidsetRightDownObject(IsoObject aRightDownObject) static voidsetShowLuaDebuggerOnError(boolean show) static voidsetShowPausedMessage(boolean _showPausedMessage) static voidsetSpeedControls(SpeedControls aSpeedControls) static voidsetToolTip(ObjectTooltip aToolTip) static voidsetUI(ArrayList<UIElementInterface> aUI) static voidsetVisibleAllUI(boolean visible) static Objecttableget(KahluaTable table, Object object) static voidupdate()static void
-
Field Details
-
lastMouseX
public static int lastMouseX -
lastMouseY
public static int lastMouseY -
Picked
-
clock
-
UI
-
toolTip
-
mouseArrow
-
mouseExamine
-
mouseAttack
-
mouseGrab
-
speedControls
-
DebugConsole
-
MoodleUI
-
bFadeBeforeUI
public static boolean bFadeBeforeUI -
ProgressBar
-
FadeAlpha
public static float FadeAlpha -
FadeInTimeMax
public static int FadeInTimeMax -
FadeInTime
public static int FadeInTime -
FadingOut
public static boolean FadingOut -
lastMouseTexture
-
LastPicked
-
DoneTutorials
-
lastOffX
public static float lastOffX -
lastOffY
public static float lastOffY -
Modal
-
KeyDownZoomIn
public static boolean KeyDownZoomIn -
KeyDownZoomOut
public static boolean KeyDownZoomOut -
doTick
public static boolean doTick -
VisibleAllUI
public static boolean VisibleAllUI -
UIFBO
-
useUIFBO
public static boolean useUIFBO -
UITextureContentsValid
public static boolean UITextureContentsValid -
black
-
bSuspend
public static boolean bSuspend -
lastAlpha
public static float lastAlpha -
PickedTileLocal
-
PickedTile
-
RightDownObject
-
uiUpdateTimeMS
public static long uiUpdateTimeMS -
uiUpdateIntervalMS
public static long uiUpdateIntervalMS -
uiRenderTimeMS
public static long uiRenderTimeMS -
uiRenderIntervalMS
public static long uiRenderIntervalMS -
toTop
-
defaultthread
-
previousThread
-
luaDebuggerAction
-
-
Constructor Details
-
UIManager
public UIManager()
-
-
Method Details
-
AddUI
-
RemoveElement
-
clearArrays
public static void clearArrays() -
closeContainers
public static void closeContainers() -
CloseContainers
public static void CloseContainers() -
DrawTexture
-
DrawTexture
public static void DrawTexture(Texture tex, double x, double y, double width, double height, double alpha) -
FadeIn
public static void FadeIn(double seconds) -
FadeOut
public static void FadeOut(double seconds) -
CreateFBO
public static void CreateFBO(int width, int height) -
createTexture
- Throws:
Exception
-
init
public static void init() -
render
public static void render() -
renderFadeOverlay
public static void renderFadeOverlay() -
resize
public static void resize() -
getTileFromMouse
-
update
public static void update() -
getLastMouseX
- Returns:
- the lastMouseX
-
setLastMouseX
public static void setLastMouseX(double aLastMouseX) - Parameters:
aLastMouseX- the lastMouseX to set
-
getLastMouseY
- Returns:
- the lastMouseY
-
setLastMouseY
public static void setLastMouseY(double aLastMouseY) - Parameters:
aLastMouseY- the lastMouseY to set
-
getPicked
- Returns:
- the Picked
-
setPicked
- Parameters:
aPicked- the Picked to set
-
getClock
- Returns:
- the clock
-
setClock
- Parameters:
aClock- the clock to set
-
getUI
- Returns:
- the UI
-
setUI
- Parameters:
aUI- the UI to set
-
getToolTip
- Returns:
- the toolTip
-
setToolTip
- Parameters:
aToolTip- the toolTip to set
-
getMouseArrow
- Returns:
- the mouseArrow
-
setMouseArrow
- Parameters:
aMouseArrow- the mouseArrow to set
-
getMouseExamine
- Returns:
- the mouseExamine
-
setMouseExamine
- Parameters:
aMouseExamine- the mouseExamine to set
-
getMouseAttack
- Returns:
- the mouseAttack
-
setMouseAttack
- Parameters:
aMouseAttack- the mouseAttack to set
-
getMouseGrab
- Returns:
- the mouseGrab
-
setMouseGrab
- Parameters:
aMouseGrab- the mouseGrab to set
-
getSpeedControls
- Returns:
- the speedControls
-
setSpeedControls
- Parameters:
aSpeedControls- the speedControls to set
-
getDebugConsole
- Returns:
- the DebugConsole
-
setDebugConsole
- Parameters:
aDebugConsole- the DebugConsole to set
-
getMoodleUI
- Returns:
- the MoodleUI
-
setMoodleUI
- Parameters:
index-aMoodleUI- the MoodleUI to set
-
isbFadeBeforeUI
public static boolean isbFadeBeforeUI()- Returns:
- the bFadeBeforeUI
-
setbFadeBeforeUI
public static void setbFadeBeforeUI(boolean abFadeBeforeUI) - Parameters:
abFadeBeforeUI- the bFadeBeforeUI to set
-
getProgressBar
- Returns:
- the ProgressBar
-
setProgressBar
- Parameters:
index-aProgressBar- the ProgressBar to set
-
getFadeAlpha
- Returns:
- the FadeAlpha
-
setFadeAlpha
public static void setFadeAlpha(double aFadeAlpha) - Parameters:
aFadeAlpha- the FadeAlpha to set
-
getFadeInTimeMax
- Returns:
- the FadeInTimeMax
-
setFadeInTimeMax
public static void setFadeInTimeMax(double aFadeInTimeMax) - Parameters:
aFadeInTimeMax- the FadeInTimeMax to set
-
getFadeInTime
- Returns:
- the FadeInTime
-
setFadeInTime
public static void setFadeInTime(double aFadeInTime) - Parameters:
aFadeInTime- the FadeInTime to set
-
isFadingOut
- Returns:
- the FadingOut
-
setFadingOut
public static void setFadingOut(boolean aFadingOut) - Parameters:
aFadingOut- the FadingOut to set
-
getLastMouseTexture
- Returns:
- the lastMouseTexture
-
setLastMouseTexture
- Parameters:
aLastMouseTexture- the lastMouseTexture to set
-
getLastPicked
- Returns:
- the LastPicked
-
setLastPicked
- Parameters:
aLastPicked- the LastPicked to set
-
getDoneTutorials
-
setDoneTutorials
-
getLastOffX
public static float getLastOffX()- Returns:
- the lastOffX
-
setLastOffX
public static void setLastOffX(float aLastOffX) - Parameters:
aLastOffX- the lastOffX to set
-
getLastOffY
public static float getLastOffY()- Returns:
- the lastOffY
-
setLastOffY
public static void setLastOffY(float aLastOffY) - Parameters:
aLastOffY- the lastOffY to set
-
getModal
- Returns:
- the Modal
-
setModal
- Parameters:
aModal- the Modal to set
-
getBlack
- Returns:
- the black
-
setBlack
- Parameters:
aBlack- the black to set
-
getLastAlpha
public static float getLastAlpha()- Returns:
- the lastAlpha
-
setLastAlpha
public static void setLastAlpha(float aLastAlpha) - Parameters:
aLastAlpha- the lastAlpha to set
-
getPickedTileLocal
- Returns:
- the PickedTileLocal
-
setPickedTileLocal
- Parameters:
aPickedTileLocal- the PickedTileLocal to set
-
getPickedTile
- Returns:
- the PickedTile
-
setPickedTile
- Parameters:
aPickedTile- the PickedTile to set
-
getRightDownObject
- Returns:
- the RightDownObject
-
setRightDownObject
- Parameters:
aRightDownObject- the RightDownObject to set
-
isShowPausedMessage
public static boolean isShowPausedMessage() -
setShowPausedMessage
public static void setShowPausedMessage(boolean _showPausedMessage) -
setShowLuaDebuggerOnError
public static void setShowLuaDebuggerOnError(boolean show) -
isShowLuaDebuggerOnError
public static boolean isShowLuaDebuggerOnError() -
debugBreakpoint
-
getDefaultThread
-
getDoubleClickInterval
-
getDoubleClickDist
-
isDoubleClick
-
setPlayerInventory
public static void setPlayerInventory(int int0, UIElementInterface uIElementInterface0, UIElementInterface uIElementInterface1) -
setPlayerInventoryTooltip
public static void setPlayerInventoryTooltip(int int0, UIElementInterface uIElementInterface0, UIElementInterface uIElementInterface1) -
isMouseOverInventory
public static boolean isMouseOverInventory() -
updateBeforeFadeOut
public static void updateBeforeFadeOut() -
setVisibleAllUI
public static void setVisibleAllUI(boolean visible) -
setFadeBeforeUI
public static void setFadeBeforeUI(int playerIndex, boolean _bFadeBeforeUI) -
getFadeAlpha
public static float getFadeAlpha(double playerIndex) -
setFadeTime
public static void setFadeTime(double playerIndex, double FadeTime) -
FadeIn
public static void FadeIn(double playerIndex, double seconds) -
FadeOut
public static void FadeOut(double playerIndex, double seconds) -
isFBOActive
public static boolean isFBOActive() -
getMillisSinceLastUpdate
public static double getMillisSinceLastUpdate() -
getSecondsSinceLastUpdate
public static double getSecondsSinceLastUpdate() -
getMillisSinceLastRender
public static double getMillisSinceLastRender() -
getSecondsSinceLastRender
public static double getSecondsSinceLastRender() -
onKeyPress
public static boolean onKeyPress(int key) -
onKeyRepeat
public static boolean onKeyRepeat(int key) -
onKeyRelease
public static boolean onKeyRelease(int key) -
isForceCursorVisible
public static boolean isForceCursorVisible() -
tableget
-
getBlinkAlpha
public static float getBlinkAlpha(int int0) -
getSyncedIconIndex
public static int getSyncedIconIndex(int var0, int int0) -
resetSyncedIconIndex
public static int resetSyncedIconIndex(int var0) -
isRendering
public static boolean isRendering() -
isUpdating
public static boolean isUpdating() -
isModalVisible
public static boolean isModalVisible()
-