Package zombie.ui

Class UIManager

java.lang.Object
zombie.ui.UIManager

public final class UIManager extends Object
  • Field Details

    • lastMouseX

      public static int lastMouseX
    • lastMouseY

      public static int lastMouseY
    • Picked

      public static IsoObjectPicker.ClickObject Picked
    • clock

      public static Clock clock
    • UI

      public static final ArrayList<UIElement> UI
    • toolTip

      public static ObjectTooltip toolTip
    • mouseArrow

      public static Texture mouseArrow
    • mouseExamine

      public static Texture mouseExamine
    • mouseAttack

      public static Texture mouseAttack
    • mouseGrab

      public static Texture mouseGrab
    • speedControls

      public static SpeedControls speedControls
    • DebugConsole

      public static UIDebugConsole DebugConsole
    • ServerToolbox

      public static UIServerToolbox ServerToolbox
    • MoodleUI

      public static final MoodlesUI[] MoodleUI
    • bFadeBeforeUI

      public static boolean bFadeBeforeUI
    • ProgressBar

      public static final ActionProgressBar[] ProgressBar
    • FadeAlpha

      public static float FadeAlpha
    • FadeInTimeMax

      public static int FadeInTimeMax
    • FadeInTime

      public static int FadeInTime
    • FadingOut

      public static boolean FadingOut
    • lastMouseTexture

      public static Texture lastMouseTexture
    • LastPicked

      public static IsoObject LastPicked
    • DoneTutorials

      public static final ArrayList<String> DoneTutorials
    • lastOffX

      public static float lastOffX
    • lastOffY

      public static float lastOffY
    • KeyDownZoomIn

      public static boolean KeyDownZoomIn
    • KeyDownZoomOut

      public static boolean KeyDownZoomOut
    • doTick

      public static boolean doTick
    • VisibleAllUI

      public static boolean VisibleAllUI
    • UIFBO

      public static TextureFBO UIFBO
    • useUIFBO

      public static boolean useUIFBO
    • black

      public static Texture black
    • bSuspend

      public static boolean bSuspend
    • lastAlpha

      public static float lastAlpha
    • PickedTileLocal

      public static final Vector2 PickedTileLocal
    • PickedTile

      public static final Vector2 PickedTile
    • RightDownObject

      public static IsoObject RightDownObject
    • uiUpdateTimeMS

      public static long uiUpdateTimeMS
    • uiUpdateIntervalMS

      public static long uiUpdateIntervalMS
    • uiRenderTimeMS

      public static long uiRenderTimeMS
    • uiRenderIntervalMS

      public static long uiRenderIntervalMS
    • toTop

      public static final ArrayList<UIElement> toTop
    • defaultthread

      public static se.krka.kahlua.vm.KahluaThread defaultthread
    • previousThread

      public static se.krka.kahlua.vm.KahluaThread previousThread
    • luaDebuggerAction

      public static String luaDebuggerAction
  • Constructor Details

    • UIManager

      public UIManager()
  • Method Details

    • AddUI

      public static void AddUI(UIElement el)
    • RemoveElement

      public static void RemoveElement(UIElement el)
    • closeContainers

      public static void closeContainers()
    • CloseContainers

      public static void CloseContainers()
    • DrawTexture

      public static void DrawTexture(Texture tex, double x, double y)
    • 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

      public static TextureFBO createTexture(float x, float y, boolean test) throws Exception
      Throws:
      Exception
    • init

      public static void init()
    • render

      public static void render()
    • resize

      public static void resize()
    • getTileFromMouse

      public static Vector2 getTileFromMouse(double mx, double my, double z)
    • update

      public static void update()
    • getLastMouseX

      public static Double getLastMouseX()
      Returns:
      the lastMouseX
    • setLastMouseX

      public static void setLastMouseX(double aLastMouseX)
      Parameters:
      aLastMouseX - the lastMouseX to set
    • getLastMouseY

      public static Double getLastMouseY()
      Returns:
      the lastMouseY
    • setLastMouseY

      public static void setLastMouseY(double aLastMouseY)
      Parameters:
      aLastMouseY - the lastMouseY to set
    • getPicked

      public static IsoObjectPicker.ClickObject getPicked()
      Returns:
      the Picked
    • setPicked

      public static void setPicked(IsoObjectPicker.ClickObject aPicked)
      Parameters:
      aPicked - the Picked to set
    • getClock

      public static Clock getClock()
      Returns:
      the clock
    • setClock

      public static void setClock(Clock aClock)
      Parameters:
      aClock - the clock to set
    • getUI

      public static ArrayList<UIElement> getUI()
      Returns:
      the UI
    • setUI

      public static void setUI(ArrayList<UIElement> aUI)
      Parameters:
      aUI - the UI to set
    • getToolTip

      public static ObjectTooltip getToolTip()
      Returns:
      the toolTip
    • setToolTip

      public static void setToolTip(ObjectTooltip aToolTip)
      Parameters:
      aToolTip - the toolTip to set
    • getMouseArrow

      public static Texture getMouseArrow()
      Returns:
      the mouseArrow
    • setMouseArrow

      public static void setMouseArrow(Texture aMouseArrow)
      Parameters:
      aMouseArrow - the mouseArrow to set
    • getMouseExamine

      public static Texture getMouseExamine()
      Returns:
      the mouseExamine
    • setMouseExamine

      public static void setMouseExamine(Texture aMouseExamine)
      Parameters:
      aMouseExamine - the mouseExamine to set
    • getMouseAttack

      public static Texture getMouseAttack()
      Returns:
      the mouseAttack
    • setMouseAttack

      public static void setMouseAttack(Texture aMouseAttack)
      Parameters:
      aMouseAttack - the mouseAttack to set
    • getMouseGrab

      public static Texture getMouseGrab()
      Returns:
      the mouseGrab
    • setMouseGrab

      public static void setMouseGrab(Texture aMouseGrab)
      Parameters:
      aMouseGrab - the mouseGrab to set
    • getSpeedControls

      public static SpeedControls getSpeedControls()
      Returns:
      the speedControls
    • setSpeedControls

      public static void setSpeedControls(SpeedControls aSpeedControls)
      Parameters:
      aSpeedControls - the speedControls to set
    • getDebugConsole

      public static UIDebugConsole getDebugConsole()
      Returns:
      the DebugConsole
    • setDebugConsole

      public static void setDebugConsole(UIDebugConsole aDebugConsole)
      Parameters:
      aDebugConsole - the DebugConsole to set
    • getServerToolbox

      public static UIServerToolbox getServerToolbox()
      Returns:
      the ServerToolbox
    • setServerToolbox

      public static void setServerToolbox(UIServerToolbox aServerToolbox)
      Parameters:
      aServerToolbox - the ServerToolbox to set
    • getMoodleUI

      public static MoodlesUI getMoodleUI(double index)
      Returns:
      the MoodleUI
    • setMoodleUI

      public static void setMoodleUI(double index, MoodlesUI aMoodleUI)
      Parameters:
      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

      public static ActionProgressBar getProgressBar(double index)
      Returns:
      the ProgressBar
    • setProgressBar

      public static void setProgressBar(double index, ActionProgressBar aProgressBar)
      Parameters:
      aProgressBar - the ProgressBar to set
    • getFadeAlpha

      public static Double getFadeAlpha()
      Returns:
      the FadeAlpha
    • setFadeAlpha

      public static void setFadeAlpha(double aFadeAlpha)
      Parameters:
      aFadeAlpha - the FadeAlpha to set
    • getFadeInTimeMax

      public static Double getFadeInTimeMax()
      Returns:
      the FadeInTimeMax
    • setFadeInTimeMax

      public static void setFadeInTimeMax(double aFadeInTimeMax)
      Parameters:
      aFadeInTimeMax - the FadeInTimeMax to set
    • getFadeInTime

      public static Double getFadeInTime()
      Returns:
      the FadeInTime
    • setFadeInTime

      public static void setFadeInTime(double aFadeInTime)
      Parameters:
      aFadeInTime - the FadeInTime to set
    • isFadingOut

      public static Boolean isFadingOut()
      Returns:
      the FadingOut
    • setFadingOut

      public static void setFadingOut(boolean aFadingOut)
      Parameters:
      aFadingOut - the FadingOut to set
    • getLastMouseTexture

      public static Texture getLastMouseTexture()
      Returns:
      the lastMouseTexture
    • setLastMouseTexture

      public static void setLastMouseTexture(Texture aLastMouseTexture)
      Parameters:
      aLastMouseTexture - the lastMouseTexture to set
    • getLastPicked

      public static IsoObject getLastPicked()
      Returns:
      the LastPicked
    • setLastPicked

      public static void setLastPicked(IsoObject aLastPicked)
      Parameters:
      aLastPicked - the LastPicked to set
    • getDoneTutorials

      public static ArrayList<String> getDoneTutorials()
      Returns:
      the DoneTutorials
    • setDoneTutorials

      public static void setDoneTutorials(ArrayList<String> aDoneTutorials)
      Parameters:
      aDoneTutorials - the DoneTutorials to set
    • 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

      public static ModalDialog getModal()
      Returns:
      the Modal
    • setModal

      public static void setModal(ModalDialog aModal)
      Parameters:
      aModal - the Modal to set
    • getBlack

      public static Texture getBlack()
      Returns:
      the black
    • setBlack

      public static void setBlack(Texture aBlack)
      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

      public static Vector2 getPickedTileLocal()
      Returns:
      the PickedTileLocal
    • setPickedTileLocal

      public static void setPickedTileLocal(Vector2 aPickedTileLocal)
      Parameters:
      aPickedTileLocal - the PickedTileLocal to set
    • getPickedTile

      public static Vector2 getPickedTile()
      Returns:
      the PickedTile
    • setPickedTile

      public static void setPickedTile(Vector2 aPickedTile)
      Parameters:
      aPickedTile - the PickedTile to set
    • getRightDownObject

      public static IsoObject getRightDownObject()
      Returns:
      the RightDownObject
    • setRightDownObject

      public static void setRightDownObject(IsoObject aRightDownObject)
      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

      public static void debugBreakpoint(String filename, long pc)
    • getDefaultThread

      public static se.krka.kahlua.vm.KahluaThread getDefaultThread()
    • getDoubleClickInterval

      public static Double getDoubleClickInterval()
    • getDoubleClickDist

      public static Double getDoubleClickDist()
    • isDoubleClick

      public static Boolean isDoubleClick(double x1, double y1, double x2, double y2, double clickTime)
    • setPlayerInventory

      public static void setPlayerInventory(int playerIndex, UIElement inventory, UIElement loot)
    • setPlayerInventoryTooltip

      public static void setPlayerInventoryTooltip(int playerIndex, UIElement inventory, UIElement 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()