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, int x, int y, java.lang.String title, java.lang.String string, boolean bAutoExpand)
static void
AddUI(UIElement el)
static void
closeContainers()
static void
CloseContainers()
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, int x, int y)
static void
DrawTexture(Texture tex, int x, int y, int width, int height, float alpha)
static void
FadeIn(int seconds)
static void
FadeIn(int playerIndex, int seconds)
static void
FadeOut(int seconds)
static void
FadeOut(int playerIndex, int 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 int
getDoubleClickDist()
static int
getDoubleClickInterval()
static InventoryItem
getDragInventory()
static EnduranceWidget
getEndurance()
static float
getFadeAlpha()
static float
getFadeAlpha(int playerIndex)
static int
getFadeInTime()
static int
getFadeInTimeMax()
static HUDButton
getHea()
static NewHealthPanel
getHealthPanel()
static HUDButton
getInv()
static float
getLastAlpha()
static Texture
getLastMouseTexture()
static int
getLastMouseX()
static int
getLastMouseY()
static float
getLastOffX()
static float
getLastOffY()
static IsoObject
getLastPicked()
static ModalDialog
getModal()
static MoodlesUI
getMoodleUI(int 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(int index)
static QuestPanel
getQuestPanel()
static DoubleSizer
getResizer()
static IsoObject
getRightDownObject()
static UIServerToolbox
getServerToolbox()
static Sidebar
getSidebar()
static SpeedControls
getSpeedControls()
static StatsPage
getStatsPage()
static QuestControl
getTempQuest()
static NewWindow
getTempQuestWin()
static Vector2
getTileFromMouse(int mx, int my, int 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 boolean
isDoubleClick(int x1, int y1, int x2, int y2, long clickTime)
static boolean
isFadingOut()
static boolean
isLastDoubleSize()
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(float aFadeAlpha)
static void
setFadeBeforeUI(int playerIndex, boolean bFadeBeforeUI)
static void
setFadeInTime(int aFadeInTime)
static void
setFadeInTimeMax(int aFadeInTimeMax)
static void
setFadeTime(int playerIndex, int 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(int aLastMouseX)
static void
setLastMouseY(int aLastMouseY)
static void
setLastOffX(float aLastOffX)
static void
setLastOffY(float aLastOffY)
static void
setLastPicked(IsoObject aLastPicked)
static void
setModal(ModalDialog aModal)
static void
setMoodleUI(int 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
setProgressBar(int 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(int mx, int 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 -
nativeCursor
public static org.lwjgl.input.Cursor nativeCursor -
black
-
DOUNUSED
public static boolean DOUNUSED -
bSuspend
public static boolean bSuspend -
lastAlpha
public static float lastAlpha -
PickedTileLocal
-
PickedTile
-
RightDownObject
-
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, int x, int 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
-
FadeIn
public static void FadeIn(int seconds) -
FadeOut
public static void FadeOut(int seconds) -
initCharCreation
public static void initCharCreation() -
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 int getLastMouseX() -
setLastMouseX
public static void setLastMouseX(int aLastMouseX) -
getLastMouseY
public static int getLastMouseY() -
setLastMouseY
public static void setLastMouseY(int 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 float getFadeAlpha() -
setFadeAlpha
public static void setFadeAlpha(float aFadeAlpha) -
getFadeInTimeMax
public static int getFadeInTimeMax() -
setFadeInTimeMax
public static void setFadeInTimeMax(int aFadeInTimeMax) -
getFadeInTime
public static int getFadeInTime() -
setFadeInTime
public static void setFadeInTime(int aFadeInTime) -
isFadingOut
public static 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 int getDoubleClickInterval() -
getDoubleClickDist
public static int getDoubleClickDist() -
isDoubleClick
public static boolean isDoubleClick(int x1, int y1, int x2, int y2, long clickTime) -
updateTooltip
protected static void updateTooltip(int mx, int my) -
updateBeforeFadeOut
public static void updateBeforeFadeOut() -
setFadeBeforeUI
public static void setFadeBeforeUI(int playerIndex, boolean bFadeBeforeUI) -
getFadeAlpha
public static float getFadeAlpha(int playerIndex) -
setFadeTime
public static void setFadeTime(int playerIndex, int FadeTime) -
FadeIn
public static void FadeIn(int playerIndex, int seconds) -
FadeOut
public static void FadeOut(int playerIndex, int seconds)
-