Class UIManager
java.lang.Object
zombie.ui.UIManager
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic boolean
static Texture
static boolean
static Clock
static UIDebugConsole
static se.krka.kahlua.vm.KahluaThread
static boolean
static float
static int
static int
static boolean
static boolean
static boolean
static float
static Texture
static int
static int
static float
static float
static IsoObject
static String
static ModalDialog
static final MoodlesUI[]
static Texture
static Texture
static Texture
static Texture
static IsoObjectPicker.ClickObject
static final Vector2
static final Vector2
static se.krka.kahlua.vm.KahluaThread
static final ActionProgressBar[]
static IsoObject
static SpeedControls
static ObjectTooltip
static final ArrayList
<UIElementInterface> static final ArrayList
<UIElementInterface> static TextureFBO
static long
static long
static boolean
static long
static long
static boolean
static boolean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
AddUI
(UIElementInterface uIElementInterface) static void
static void
static void
static void
CreateFBO
(int width, int height) static TextureFBO
createTexture
(float x, float y, boolean test) static void
debugBreakpoint
(String filename, long pc) static void
DrawTexture
(Texture tex, double x, double y) static void
DrawTexture
(Texture tex, double x, double y, double width, double height, double alpha) static void
FadeIn
(double seconds) static void
FadeIn
(double playerIndex, double seconds) static void
FadeOut
(double seconds) static void
FadeOut
(double playerIndex, double seconds) static Texture
getBlack()
static float
getBlinkAlpha
(int int0) static Clock
getClock()
static UIDebugConsole
static se.krka.kahlua.vm.KahluaThread
static Double
static Double
static Double
static float
getFadeAlpha
(double playerIndex) static Double
static Double
static float
static Texture
static Double
static Double
static float
static float
static IsoObject
static double
static double
static ModalDialog
getModal()
static MoodlesUI
getMoodleUI
(double index) static Texture
static Texture
static Texture
static Texture
static IsoObjectPicker.ClickObject
static Vector2
static Vector2
static ActionProgressBar
getProgressBar
(double index) static IsoObject
static double
static double
static SpeedControls
static int
getSyncedIconIndex
(int var0, int int0) static Vector2
getTileFromMouse
(double mx, double my, double z) static ObjectTooltip
static ArrayList
<UIElementInterface> getUI()
static void
init()
static boolean
static Boolean
isDoubleClick
(double x1, double y1, double x2, double y2, double clickTime) static Boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
onKeyPress
(int key) static boolean
onKeyRelease
(int key) static boolean
onKeyRepeat
(int key) static void
RemoveElement
(UIElementInterface uIElementInterface) static void
render()
static void
static int
resetSyncedIconIndex
(int var0) static void
resize()
static void
setbFadeBeforeUI
(boolean abFadeBeforeUI) static void
static void
static void
setDebugConsole
(UIDebugConsole aDebugConsole) static void
setDoneTutorials
(ArrayList<String> aDoneTutorials) static void
setFadeAlpha
(double aFadeAlpha) static void
setFadeBeforeUI
(int playerIndex, boolean _bFadeBeforeUI) static void
setFadeInTime
(double aFadeInTime) static void
setFadeInTimeMax
(double aFadeInTimeMax) static void
setFadeTime
(double playerIndex, double FadeTime) static void
setFadingOut
(boolean aFadingOut) static void
setLastAlpha
(float aLastAlpha) static void
setLastMouseTexture
(Texture aLastMouseTexture) static void
setLastMouseX
(double aLastMouseX) static void
setLastMouseY
(double aLastMouseY) static void
setLastOffX
(float aLastOffX) static void
setLastOffY
(float aLastOffY) static void
setLastPicked
(IsoObject aLastPicked) static void
setModal
(ModalDialog aModal) static void
setMoodleUI
(double index, MoodlesUI aMoodleUI) static void
setMouseArrow
(Texture aMouseArrow) static void
setMouseAttack
(Texture aMouseAttack) static void
setMouseExamine
(Texture aMouseExamine) static void
setMouseGrab
(Texture aMouseGrab) static void
setPicked
(IsoObjectPicker.ClickObject aPicked) static void
setPickedTile
(Vector2 aPickedTile) static void
setPickedTileLocal
(Vector2 aPickedTileLocal) static void
setPlayerInventory
(int int0, UIElementInterface uIElementInterface0, UIElementInterface uIElementInterface1) static void
setPlayerInventoryTooltip
(int int0, UIElementInterface uIElementInterface0, UIElementInterface uIElementInterface1) static void
setProgressBar
(double index, ActionProgressBar aProgressBar) static void
setRightDownObject
(IsoObject aRightDownObject) static void
setShowLuaDebuggerOnError
(boolean show) static void
setShowPausedMessage
(boolean _showPausedMessage) static void
setSpeedControls
(SpeedControls aSpeedControls) static void
setToolTip
(ObjectTooltip aToolTip) static void
setUI
(ArrayList<UIElementInterface> aUI) static void
setVisibleAllUI
(boolean visible) static Object
static void
update()
static void
protected static void
updateTooltip
(double double1, double double0)
-
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
public static se.krka.kahlua.vm.KahluaThread defaultthread -
previousThread
public static se.krka.kahlua.vm.KahluaThread 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) -
getLastMouseY
- Returns:
- the lastMouseY
-
setLastMouseY
public static void setLastMouseY(double aLastMouseY) -
getPicked
- Returns:
- the Picked
-
setPicked
-
getClock
- Returns:
- the clock
-
setClock
-
getUI
- Returns:
- the UI
-
setUI
-
getToolTip
- Returns:
- the toolTip
-
setToolTip
-
getMouseArrow
- Returns:
- the mouseArrow
-
setMouseArrow
-
getMouseExamine
- Returns:
- the mouseExamine
-
setMouseExamine
-
getMouseAttack
- Returns:
- the mouseAttack
-
setMouseAttack
-
getMouseGrab
- Returns:
- the mouseGrab
-
setMouseGrab
-
getSpeedControls
- Returns:
- the speedControls
-
setSpeedControls
-
getDebugConsole
- Returns:
- the DebugConsole
-
setDebugConsole
-
getMoodleUI
- Returns:
- the MoodleUI
-
setMoodleUI
-
isbFadeBeforeUI
public static boolean isbFadeBeforeUI()- Returns:
- the bFadeBeforeUI
-
setbFadeBeforeUI
public static void setbFadeBeforeUI(boolean abFadeBeforeUI) -
getProgressBar
- Returns:
- the ProgressBar
-
setProgressBar
-
getFadeAlpha
- Returns:
- the FadeAlpha
-
setFadeAlpha
public static void setFadeAlpha(double aFadeAlpha) -
getFadeInTimeMax
- Returns:
- the FadeInTimeMax
-
setFadeInTimeMax
public static void setFadeInTimeMax(double aFadeInTimeMax) -
getFadeInTime
- Returns:
- the FadeInTime
-
setFadeInTime
public static void setFadeInTime(double aFadeInTime) -
isFadingOut
- Returns:
- the FadingOut
-
setFadingOut
public static void setFadingOut(boolean aFadingOut) -
getLastMouseTexture
- Returns:
- the lastMouseTexture
-
setLastMouseTexture
-
getLastPicked
- Returns:
- the LastPicked
-
setLastPicked
-
getDoneTutorials
-
setDoneTutorials
-
getLastOffX
public static float getLastOffX()- Returns:
- the lastOffX
-
setLastOffX
public static void setLastOffX(float aLastOffX) -
getLastOffY
public static float getLastOffY()- Returns:
- the lastOffY
-
setLastOffY
public static void setLastOffY(float aLastOffY) -
getModal
- Returns:
- the Modal
-
setModal
-
getBlack
- Returns:
- the black
-
setBlack
-
getLastAlpha
public static float getLastAlpha()- Returns:
- the lastAlpha
-
setLastAlpha
public static void setLastAlpha(float aLastAlpha) -
getPickedTileLocal
- Returns:
- the PickedTileLocal
-
setPickedTileLocal
-
getPickedTile
- Returns:
- the PickedTile
-
setPickedTile
-
getRightDownObject
- Returns:
- the RightDownObject
-
setRightDownObject
-
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
public static se.krka.kahlua.vm.KahluaThread getDefaultThread() -
getDoubleClickInterval
-
getDoubleClickDist
-
isDoubleClick
-
updateTooltip
protected static void updateTooltip(double double1, double double0) -
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)
-