Package zombie.ui
Class UIManager
java.lang.Object
zombie.ui.UIManager
public class UIManager
extends java.lang.Object
-
Field Summary
-
Constructor Summary
Constructors Constructor Description UIManager()
-
Method Summary
Modifier and Type Method Description static void
AddTutorial(float x, float y, float z, java.lang.String title, java.lang.String string, boolean bAutoExpand, float yoff)
static void
AddTutorial(float x, float y, java.lang.String title, java.lang.String string, boolean bAutoExpand)
static void
AddTutorial(UIElement parent, double x, double y, java.lang.String title, java.lang.String string, boolean bAutoExpand)
static void
AddUI(UIElement el)
static void
closeContainers()
static void
CloseContainers()
static void
CreateFBO(int width, int height)
static TextureFBO
createTexture(float x, float y, boolean test)
static void
debugBreakpoint(java.lang.String filename, long pc)
static void
DoModal(java.lang.String name, java.lang.String help, boolean bYesNo)
static void
DoModal(java.lang.String name, java.lang.String help, boolean bYesNo, UIEventHandler handler)
static void
DoTutorialEndMessage()
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 BodyDamage
getBD_Test()
static Texture
getBlack()
static MovementBlender
getBlendTest()
static Clock
getClock()
static ClothingPanel
getClothingPanel()
static NewCraftingPanel
getCrafting()
static UIDebugConsole
getDebugConsole()
static KahluaThread
getDefaultThread()
static DirectionSwitcher
getDirectionSwitcher()
static java.util.Stack
getDoneTutorials()
static java.lang.Double
getDoubleClickDist()
static java.lang.Double
getDoubleClickInterval()
static InventoryItem
getDragInventory()
static EnduranceWidget
getEndurance()
static java.lang.Double
getFadeAlpha()
static float
getFadeAlpha(double playerIndex)
static java.lang.Double
getFadeInTime()
static java.lang.Double
getFadeInTimeMax()
static HUDButton
getHea()
static NewHealthPanel
getHealthPanel()
static HUDButton
getInv()
static float
getLastAlpha()
static Texture
getLastMouseTexture()
static java.lang.Double
getLastMouseX()
static java.lang.Double
getLastMouseY()
static float
getLastOffX()
static float
getLastOffY()
static IsoObject
getLastPicked()
static double
getMillisSinceLastRender()
static double
getMillisSinceLastUpdate()
static ModalDialog
getModal()
static MoodlesUI
getMoodleUI(double index)
static Texture
getMouseArrow()
static Texture
getMouseAttack()
static Texture
getMouseExamine()
static Texture
getMouseGrab()
static QuestHUD
getOnscreenQuest()
static NewContainerPanel
getOpenContainer()
static IsoObjectPicker.ClickObject
getPicked()
static Vector2
getPickedTile()
static Vector2
getPickedTileLocal()
static ActionProgressBar
getProgressBar(double index)
static QuestPanel
getQuestPanel()
static DoubleSizer
getResizer()
static IsoObject
getRightDownObject()
static double
getSecondsSinceLastRender()
static double
getSecondsSinceLastUpdate()
static UIServerToolbox
getServerToolbox()
static Sidebar
getSidebar()
static SpeedControls
getSpeedControls()
static StatsPage
getStatsPage()
static QuestControl
getTempQuest()
static NewWindow
getTempQuestWin()
static Vector2
getTileFromMouse(double mx, double my, double z)
static ObjectTooltip
getToolTip()
static TutorialPanel
getTutorial()
static java.util.Stack
getUI()
static void
init()
static void
initCharCreation()
static boolean
isbFadeBeforeUI()
static boolean
isDoMouseControls()
static java.lang.Boolean
isDoubleClick(double x1, double y1, double x2, double y2, double clickTime)
static java.lang.Boolean
isFadingOut()
static boolean
isFBOActive()
static boolean
isLastDoubleSize()
static boolean
isMouseOverInventory()
static boolean
isShowPausedMessage()
static void
RemoveElement(UIElement el)
static void
render()
static void
resize()
static void
resizeCharCreation()
static void
setBD_Test(BodyDamage aBD_Test)
static void
setbFadeBeforeUI(boolean abFadeBeforeUI)
static void
setBlack(Texture aBlack)
static void
setBlendTest(MovementBlender aBlendTest)
static void
setClock(Clock aClock)
static void
setClothingPanel(ClothingPanel aClothingPanel)
static void
setCrafting(NewCraftingPanel aCrafting)
static void
setDebugConsole(UIDebugConsole aDebugConsole)
static void
setDirectionSwitcher(DirectionSwitcher aDirectionSwitcher)
static void
setDoMouseControls(boolean aDoMouseControls)
static void
setDoneTutorials(java.util.Stack aDoneTutorials)
static void
setDragInventory(InventoryItem aDragInventory)
static void
setEndurance(EnduranceWidget aEndurance)
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
setHea(HUDButton aHea)
static void
setHealthPanel(NewHealthPanel aHealthPanel)
static void
setInv(HUDButton aInv)
static void
setLastAlpha(float aLastAlpha)
static void
setLastDoubleSize(boolean aLastDoubleSize)
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
setOnscreenQuest(QuestHUD aOnscreenQuest)
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
setProgressBar(double index, ActionProgressBar aProgressBar)
static void
setQuestPanel(QuestPanel aQuestPanel)
static void
setResizer(DoubleSizer aResizer)
static void
setRightDownObject(IsoObject aRightDownObject)
static void
setServerToolbox(UIServerToolbox aServerToolbox)
static void
setShowPausedMessage(boolean showPausedMessage)
static void
setSidebar(Sidebar aSidebar)
static void
setSpeedControls(SpeedControls aSpeedControls)
static void
setStatsPage(StatsPage aStatsPage)
static void
setTempQuest(QuestControl aTempQuest)
static void
setTempQuestWin(NewWindow aTempQuestWin)
static void
setToolTip(ObjectTooltip aToolTip)
static void
setTutorial(TutorialPanel aTutorial)
static void
setUI(java.util.Stack aUI)
static void
update()
static void
updateBeforeFadeOut()
protected static void
updateTooltip(double mx, double my)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
lastMouseX
public static int lastMouseX -
lastMouseY
public static int lastMouseY -
Picked
-
clock
-
Endurance
-
UI
public static java.util.Stack UI -
toolTip
-
mouseArrow
-
mouseExamine
-
mouseAttack
-
mouseGrab
-
StatsPage
-
Tutorial
-
Inv
-
Hea
-
Resizer
-
directionSwitcher
-
BlendTest
-
sidebar
-
speedControls
-
DragInventory
-
crafting
-
HealthPanel
-
clothingPanel
-
questPanel
-
DebugConsole
-
ServerToolbox
-
MoodleUI
-
tempQuest
-
onscreenQuest
-
tempQuestWin
-
bFadeBeforeUI
public static boolean bFadeBeforeUI -
ProgressBar
-
BD_Test
-
FadeAlpha
public static float FadeAlpha -
FadeInTimeMax
public static int FadeInTimeMax -
FadeInTime
public static int FadeInTime -
FadingOut
public static boolean FadingOut -
lastMouseTexture
-
LastPicked
-
DoneTutorials
public static java.util.Stack DoneTutorials -
lastOffX
public static float lastOffX -
lastOffY
public static float lastOffY -
lastDoubleSize
public static boolean lastDoubleSize -
DoMouseControls
public static boolean DoMouseControls -
Modal
-
KeyDownZoomIn
public static boolean KeyDownZoomIn -
KeyDownZoomOut
public static boolean KeyDownZoomOut -
doTick
public static boolean doTick -
nativeCursor
public static org.lwjgl.input.Cursor nativeCursor -
UIFBO
-
useUIFBO
public static boolean useUIFBO -
FBO_ALPHA_MULT
public static float FBO_ALPHA_MULT -
black
-
DOUNUSED
public static boolean DOUNUSED -
bSuspend
public static boolean bSuspend -
lastAlpha
public static float lastAlpha -
PickedTileLocal
-
PickedTile
-
RightDownObject
-
uiUpdateCounter
public static float uiUpdateCounter -
uiUpdateTimeMS
public static long uiUpdateTimeMS -
uiUpdateIntervalMS
public static long uiUpdateIntervalMS -
uiRenderTimeMS
public static long uiRenderTimeMS -
uiRenderIntervalMS
public static long uiRenderIntervalMS -
toTop
public static java.util.ArrayList toTop -
defaultthread
-
-
Constructor Details
-
UIManager
public UIManager()
-
-
Method Details
-
AddTutorial
public static void AddTutorial(float x, float y, java.lang.String title, java.lang.String string, boolean bAutoExpand) -
DoModal
public static void DoModal(java.lang.String name, java.lang.String help, boolean bYesNo) -
AddUI
-
RemoveElement
-
DoModal
public static void DoModal(java.lang.String name, java.lang.String help, boolean bYesNo, UIEventHandler handler) -
AddTutorial
public static void AddTutorial(UIElement parent, double x, double y, java.lang.String title, java.lang.String string, boolean bAutoExpand) -
AddTutorial
public static void AddTutorial(float x, float y, float z, java.lang.String title, java.lang.String string, boolean bAutoExpand, float yoff) -
closeContainers
public static void closeContainers() -
CloseContainers
public static void CloseContainers() -
DoTutorialEndMessage
public static void DoTutorialEndMessage() -
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) -
initCharCreation
public static void initCharCreation() -
CreateFBO
public static void CreateFBO(int width, int height) -
createTexture
- Throws:
java.lang.Exception
-
init
public static void init() -
render
public static void render() -
resizeCharCreation
public static void resizeCharCreation() -
resize
public static void resize() -
getTileFromMouse
-
update
public static void update() -
getOpenContainer
-
getLastMouseX
public static java.lang.Double getLastMouseX() -
setLastMouseX
public static void setLastMouseX(double aLastMouseX) -
getLastMouseY
public static java.lang.Double getLastMouseY() -
setLastMouseY
public static void setLastMouseY(double aLastMouseY) -
getPicked
-
setPicked
-
getClock
-
setClock
-
getEndurance
-
setEndurance
-
getUI
public static java.util.Stack getUI() -
setUI
public static void setUI(java.util.Stack aUI) -
getToolTip
-
setToolTip
-
getMouseArrow
-
setMouseArrow
-
getMouseExamine
-
setMouseExamine
-
getMouseAttack
-
setMouseAttack
-
getMouseGrab
-
setMouseGrab
-
getStatsPage
-
setStatsPage
-
getTutorial
-
setTutorial
-
getInv
-
setInv
-
getHea
-
setHea
-
getResizer
-
setResizer
-
getDirectionSwitcher
-
setDirectionSwitcher
-
getBlendTest
-
setBlendTest
-
getSidebar
-
setSidebar
-
getSpeedControls
-
setSpeedControls
-
getDragInventory
-
setDragInventory
-
getCrafting
-
setCrafting
-
getHealthPanel
-
setHealthPanel
-
getClothingPanel
-
setClothingPanel
-
getQuestPanel
-
setQuestPanel
-
getDebugConsole
-
setDebugConsole
-
getServerToolbox
-
setServerToolbox
-
getMoodleUI
-
setMoodleUI
-
getTempQuest
-
setTempQuest
-
getOnscreenQuest
-
setOnscreenQuest
-
getTempQuestWin
-
setTempQuestWin
-
isbFadeBeforeUI
public static boolean isbFadeBeforeUI() -
setbFadeBeforeUI
public static void setbFadeBeforeUI(boolean abFadeBeforeUI) -
getProgressBar
-
setProgressBar
-
getBD_Test
-
setBD_Test
-
getFadeAlpha
public static java.lang.Double getFadeAlpha() -
setFadeAlpha
public static void setFadeAlpha(double aFadeAlpha) -
getFadeInTimeMax
public static java.lang.Double getFadeInTimeMax() -
setFadeInTimeMax
public static void setFadeInTimeMax(double aFadeInTimeMax) -
getFadeInTime
public static java.lang.Double getFadeInTime() -
setFadeInTime
public static void setFadeInTime(double aFadeInTime) -
isFadingOut
public static java.lang.Boolean isFadingOut() -
setFadingOut
public static void setFadingOut(boolean aFadingOut) -
getLastMouseTexture
-
setLastMouseTexture
-
getLastPicked
-
setLastPicked
-
getDoneTutorials
public static java.util.Stack getDoneTutorials() -
setDoneTutorials
public static void setDoneTutorials(java.util.Stack aDoneTutorials) -
getLastOffX
public static float getLastOffX() -
setLastOffX
public static void setLastOffX(float aLastOffX) -
getLastOffY
public static float getLastOffY() -
setLastOffY
public static void setLastOffY(float aLastOffY) -
isLastDoubleSize
public static boolean isLastDoubleSize() -
setLastDoubleSize
public static void setLastDoubleSize(boolean aLastDoubleSize) -
isDoMouseControls
public static boolean isDoMouseControls() -
setDoMouseControls
public static void setDoMouseControls(boolean aDoMouseControls) -
getModal
-
setModal
-
getBlack
-
setBlack
-
getLastAlpha
public static float getLastAlpha() -
setLastAlpha
public static void setLastAlpha(float aLastAlpha) -
getPickedTileLocal
-
setPickedTileLocal
-
getPickedTile
-
setPickedTile
-
getRightDownObject
-
setRightDownObject
-
isShowPausedMessage
public static boolean isShowPausedMessage() -
setShowPausedMessage
public static void setShowPausedMessage(boolean showPausedMessage) -
debugBreakpoint
public static void debugBreakpoint(java.lang.String filename, long pc) -
getDefaultThread
-
getDoubleClickInterval
public static java.lang.Double getDoubleClickInterval() -
getDoubleClickDist
public static java.lang.Double getDoubleClickDist() -
isDoubleClick
public static java.lang.Boolean isDoubleClick(double x1, double y1, double x2, double y2, double clickTime) -
updateTooltip
protected static void updateTooltip(double mx, double my) -
setPlayerInventory
-
isMouseOverInventory
public static boolean isMouseOverInventory() -
updateBeforeFadeOut
public static void updateBeforeFadeOut() -
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()
-