Package zombie.ui
Class UIManager
java.lang.Object
zombie.ui.UIManager
-
Field Summary
Modifier 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 UIServerToolbox
static SpeedControls
static ObjectTooltip
static TextureFBO
static long
static long
static long
static long
static boolean
static boolean
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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 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 UIServerToolbox
static SpeedControls
static Vector2
getTileFromMouse
(double mx, double my, double z) static ObjectTooltip
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
static void
render()
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 playerIndex, UIElement inventory, UIElement loot) static void
setPlayerInventoryTooltip
(int playerIndex, UIElement inventory, UIElement loot) static void
setProgressBar
(double index, ActionProgressBar aProgressBar) static void
setRightDownObject
(IsoObject aRightDownObject) static void
setServerToolbox
(UIServerToolbox aServerToolbox) static void
setShowLuaDebuggerOnError
(boolean show) static void
setShowPausedMessage
(boolean showPausedMessage) static void
setSpeedControls
(SpeedControls aSpeedControls) static void
setToolTip
(ObjectTooltip aToolTip) static void
static void
setVisibleAllUI
(boolean visible) static void
update()
static void
-
Field Details
-
lastMouseX
public static int lastMouseX -
lastMouseY
public static int lastMouseY -
Picked
-
clock
-
UI
-
toolTip
-
mouseArrow
-
mouseExamine
-
mouseAttack
-
mouseGrab
-
speedControls
-
DebugConsole
-
ServerToolbox
-
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 -
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
-
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() -
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
-
getServerToolbox
- Returns:
- the ServerToolbox
-
setServerToolbox
- Parameters:
aServerToolbox
- the ServerToolbox to set
-
getMoodleUI
- Returns:
- the MoodleUI
-
setMoodleUI
- 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
- Returns:
- the ProgressBar
-
setProgressBar
- Parameters:
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
- Returns:
- the DoneTutorials
-
setDoneTutorials
- 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
- 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
-
setPlayerInventoryTooltip
-
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()
-