Class UIManager
java.lang.Object
zombie.ui.UIManager
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic Texturestatic Clockstatic UIDebugConsolestatic se.krka.kahlua.vm.KahluaThreadstatic booleanstatic floatstatic booleanstatic 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 se.krka.kahlua.vm.KahluaThreadstatic final ActionProgressBar[]static IsoObjectstatic SpeedControlsstatic booleanstatic 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 voidstatic 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 playerIndex) static ClockgetClock()static UIDebugConsolestatic se.krka.kahlua.vm.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 playerIndex, int maxIndex) 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 voidstatic voidrender()static voidstatic intresetSyncedIconIndex(int playerIndex) 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 playerIndex, UIElementInterface inventory, UIElementInterface loot) static voidsetPlayerInventoryTooltip(int playerIndex, UIElementInterface inventory, UIElementInterface loot) 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 Objectstatic 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
-
fadeBeforeUi
public static boolean fadeBeforeUi -
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
-
suspend
public static boolean suspend -
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) - 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
-
setUI
-
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
public static se.krka.kahlua.vm.KahluaThread getDefaultThread() -
getDoubleClickInterval
-
getDoubleClickDist
-
isDoubleClick
-
setPlayerInventory
public static void setPlayerInventory(int playerIndex, UIElementInterface inventory, UIElementInterface loot) -
setPlayerInventoryTooltip
public static void setPlayerInventoryTooltip(int playerIndex, UIElementInterface inventory, UIElementInterface loot) -
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 playerIndex) -
getSyncedIconIndex
public static int getSyncedIconIndex(int playerIndex, int maxIndex) -
resetSyncedIconIndex
public static int resetSyncedIconIndex(int playerIndex) -
isRendering
public static boolean isRendering() -
isUpdating
public static boolean isUpdating() -
isModalVisible
public static boolean isModalVisible()
-