zombie.ui
Class UIManager
java.lang.Object
zombie.ui.UIManager
public class UIManager
- extends java.lang.Object
- Author:
- LEMMY
Method Summary |
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 |
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 |
FadeOut(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 DirectionSwitcher |
getDirectionSwitcher()
|
static java.util.Stack<java.lang.String> |
getDoneTutorials()
|
static InventoryItem |
getDragInventory()
|
static EnduranceWidget |
getEndurance()
|
static float |
getFadeAlpha()
|
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 LevelUpScreen |
getLevelup()
|
static ModalDialog |
getModal()
|
static MoodlesUI |
getMoodleUI()
|
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()
|
static QuestPanel |
getQuestPanel()
|
static RadialMenu |
getRadial()
|
static DoubleSizer |
getResizer()
|
static IsoObject |
getRightDownObject()
|
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<UIElement> |
getUI()
|
static void |
init()
|
static void |
initCharCreation()
|
static boolean |
isbFadeBeforeUI()
|
static boolean |
isDoMouseControls()
|
static boolean |
isFadingOut()
|
static boolean |
isLastDoubleSize()
|
static boolean |
isShowPausedMessage()
|
static void |
LaunchRadial(IsoObject obj)
|
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<java.lang.String> aDoneTutorials)
|
static void |
setDragInventory(InventoryItem aDragInventory)
|
static void |
setEndurance(EnduranceWidget aEndurance)
|
static void |
setFadeAlpha(float aFadeAlpha)
|
static void |
setFadeInTime(int aFadeInTime)
|
static void |
setFadeInTimeMax(int aFadeInTimeMax)
|
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 |
setLevelup(LevelUpScreen aLevelup)
|
static void |
setModal(ModalDialog aModal)
|
static void |
setMoodleUI(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(ActionProgressBar aProgressBar)
|
static void |
setQuestPanel(QuestPanel aQuestPanel)
|
static void |
setRadial(RadialMenu aRadial)
|
static void |
setResizer(DoubleSizer aResizer)
|
static void |
setRightDownObject(IsoObject aRightDownObject)
|
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<UIElement> aUI)
|
static void |
update()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
lastMouseX
public static int lastMouseX
lastMouseY
public static int lastMouseY
Picked
public static IsoObjectPicker.ClickObject Picked
clock
public static Clock clock
Endurance
public static EnduranceWidget Endurance
UI
public static java.util.Stack<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
StatsPage
public static StatsPage StatsPage
Tutorial
public static TutorialPanel Tutorial
Inv
public static HUDButton Inv
Hea
public static HUDButton Hea
Resizer
public static DoubleSizer Resizer
directionSwitcher
public static DirectionSwitcher directionSwitcher
BlendTest
public static MovementBlender BlendTest
sidebar
public static Sidebar sidebar
speedControls
public static SpeedControls speedControls
DragInventory
public static InventoryItem DragInventory
crafting
public static NewCraftingPanel crafting
HealthPanel
public static NewHealthPanel HealthPanel
clothingPanel
public static ClothingPanel clothingPanel
questPanel
public static QuestPanel questPanel
DebugConsole
public static UIDebugConsole DebugConsole
MoodleUI
public static MoodlesUI MoodleUI
tempQuest
public static QuestControl tempQuest
onscreenQuest
public static QuestHUD onscreenQuest
tempQuestWin
public static NewWindow tempQuestWin
bFadeBeforeUI
public static boolean bFadeBeforeUI
ProgressBar
public static ActionProgressBar ProgressBar
BD_Test
public static BodyDamage BD_Test
Levelup
public static LevelUpScreen Levelup
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 java.util.Stack<java.lang.String> DoneTutorials
lastOffX
public static float lastOffX
lastOffY
public static float lastOffY
lastDoubleSize
public static boolean lastDoubleSize
DoMouseControls
public static boolean DoMouseControls
Modal
public static ModalDialog Modal
nativeCursor
public static org.lwjgl.input.Cursor nativeCursor
black
public static Texture black
bSuspend
public static boolean bSuspend
lastAlpha
public static float lastAlpha
PickedTileLocal
public static Vector2 PickedTileLocal
PickedTile
public static Vector2 PickedTile
RightDownObject
public static IsoObject RightDownObject
radial
public static RadialMenu radial
toTop
public static java.util.ArrayList<UIElement> toTop
UIManager
public UIManager()
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
public static void AddUI(UIElement el)
RemoveElement
public static void RemoveElement(UIElement el)
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
public static void DrawTexture(Texture tex,
int x,
int y)
DrawTexture
public static void DrawTexture(Texture tex,
int x,
int y,
int width,
int height,
float alpha)
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
public static Vector2 getTileFromMouse(int mx,
int my,
int z)
update
public static void update()
getOpenContainer
public static NewContainerPanel getOpenContainer()
LaunchRadial
public static void LaunchRadial(IsoObject obj)
getLastMouseX
public static int getLastMouseX()
- Returns:
- the lastMouseX
setLastMouseX
public static void setLastMouseX(int aLastMouseX)
- Parameters:
aLastMouseX
- the lastMouseX to set
getLastMouseY
public static int getLastMouseY()
- Returns:
- the lastMouseY
setLastMouseY
public static void setLastMouseY(int 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
getEndurance
public static EnduranceWidget getEndurance()
- Returns:
- the Endurance
setEndurance
public static void setEndurance(EnduranceWidget aEndurance)
- Parameters:
aEndurance
- the Endurance to set
getUI
public static java.util.Stack<UIElement> getUI()
- Returns:
- the UI
setUI
public static void setUI(java.util.Stack<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
getStatsPage
public static StatsPage getStatsPage()
- Returns:
- the StatsPage
setStatsPage
public static void setStatsPage(StatsPage aStatsPage)
- Parameters:
aStatsPage
- the StatsPage to set
getTutorial
public static TutorialPanel getTutorial()
- Returns:
- the Tutorial
setTutorial
public static void setTutorial(TutorialPanel aTutorial)
- Parameters:
aTutorial
- the Tutorial to set
getInv
public static HUDButton getInv()
- Returns:
- the Inv
setInv
public static void setInv(HUDButton aInv)
- Parameters:
aInv
- the Inv to set
getHea
public static HUDButton getHea()
- Returns:
- the Hea
setHea
public static void setHea(HUDButton aHea)
- Parameters:
aHea
- the Hea to set
getResizer
public static DoubleSizer getResizer()
- Returns:
- the Resizer
setResizer
public static void setResizer(DoubleSizer aResizer)
- Parameters:
aResizer
- the Resizer to set
getDirectionSwitcher
public static DirectionSwitcher getDirectionSwitcher()
- Returns:
- the directionSwitcher
setDirectionSwitcher
public static void setDirectionSwitcher(DirectionSwitcher aDirectionSwitcher)
- Parameters:
aDirectionSwitcher
- the directionSwitcher to set
getBlendTest
public static MovementBlender getBlendTest()
- Returns:
- the BlendTest
setBlendTest
public static void setBlendTest(MovementBlender aBlendTest)
- Parameters:
aBlendTest
- the BlendTest to set
getSidebar
public static Sidebar getSidebar()
- Returns:
- the sidebar
setSidebar
public static void setSidebar(Sidebar aSidebar)
- Parameters:
aSidebar
- the sidebar to set
getSpeedControls
public static SpeedControls getSpeedControls()
- Returns:
- the speedControls
setSpeedControls
public static void setSpeedControls(SpeedControls aSpeedControls)
- Parameters:
aSpeedControls
- the speedControls to set
getDragInventory
public static InventoryItem getDragInventory()
- Returns:
- the DragInventory
setDragInventory
public static void setDragInventory(InventoryItem aDragInventory)
- Parameters:
aDragInventory
- the DragInventory to set
getCrafting
public static NewCraftingPanel getCrafting()
- Returns:
- the crafting
setCrafting
public static void setCrafting(NewCraftingPanel aCrafting)
- Parameters:
aCrafting
- the crafting to set
getHealthPanel
public static NewHealthPanel getHealthPanel()
- Returns:
- the HealthPanel
setHealthPanel
public static void setHealthPanel(NewHealthPanel aHealthPanel)
- Parameters:
aHealthPanel
- the HealthPanel to set
getClothingPanel
public static ClothingPanel getClothingPanel()
- Returns:
- the clothingPanel
setClothingPanel
public static void setClothingPanel(ClothingPanel aClothingPanel)
- Parameters:
aClothingPanel
- the clothingPanel to set
getQuestPanel
public static QuestPanel getQuestPanel()
- Returns:
- the questPanel
setQuestPanel
public static void setQuestPanel(QuestPanel aQuestPanel)
- Parameters:
aQuestPanel
- the questPanel to set
getDebugConsole
public static UIDebugConsole getDebugConsole()
- Returns:
- the DebugConsole
setDebugConsole
public static void setDebugConsole(UIDebugConsole aDebugConsole)
- Parameters:
aDebugConsole
- the DebugConsole to set
getMoodleUI
public static MoodlesUI getMoodleUI()
- Returns:
- the MoodleUI
setMoodleUI
public static void setMoodleUI(MoodlesUI aMoodleUI)
- Parameters:
aMoodleUI
- the MoodleUI to set
getTempQuest
public static QuestControl getTempQuest()
- Returns:
- the tempQuest
setTempQuest
public static void setTempQuest(QuestControl aTempQuest)
- Parameters:
aTempQuest
- the tempQuest to set
getOnscreenQuest
public static QuestHUD getOnscreenQuest()
- Returns:
- the onscreenQuest
setOnscreenQuest
public static void setOnscreenQuest(QuestHUD aOnscreenQuest)
- Parameters:
aOnscreenQuest
- the onscreenQuest to set
getTempQuestWin
public static NewWindow getTempQuestWin()
- Returns:
- the tempQuestWin
setTempQuestWin
public static void setTempQuestWin(NewWindow aTempQuestWin)
- Parameters:
aTempQuestWin
- the tempQuestWin 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()
- Returns:
- the ProgressBar
setProgressBar
public static void setProgressBar(ActionProgressBar aProgressBar)
- Parameters:
aProgressBar
- the ProgressBar to set
getBD_Test
public static BodyDamage getBD_Test()
- Returns:
- the BD_Test
setBD_Test
public static void setBD_Test(BodyDamage aBD_Test)
- Parameters:
aBD_Test
- the BD_Test to set
getLevelup
public static LevelUpScreen getLevelup()
- Returns:
- the Levelup
setLevelup
public static void setLevelup(LevelUpScreen aLevelup)
- Parameters:
aLevelup
- the Levelup to set
getFadeAlpha
public static float getFadeAlpha()
- Returns:
- the FadeAlpha
setFadeAlpha
public static void setFadeAlpha(float aFadeAlpha)
- Parameters:
aFadeAlpha
- the FadeAlpha to set
getFadeInTimeMax
public static int getFadeInTimeMax()
- Returns:
- the FadeInTimeMax
setFadeInTimeMax
public static void setFadeInTimeMax(int aFadeInTimeMax)
- Parameters:
aFadeInTimeMax
- the FadeInTimeMax to set
getFadeInTime
public static int getFadeInTime()
- Returns:
- the FadeInTime
setFadeInTime
public static void setFadeInTime(int 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 java.util.Stack<java.lang.String> getDoneTutorials()
- Returns:
- the DoneTutorials
setDoneTutorials
public static void setDoneTutorials(java.util.Stack<java.lang.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
isLastDoubleSize
public static boolean isLastDoubleSize()
- Returns:
- the lastDoubleSize
setLastDoubleSize
public static void setLastDoubleSize(boolean aLastDoubleSize)
- Parameters:
aLastDoubleSize
- the lastDoubleSize to set
isDoMouseControls
public static boolean isDoMouseControls()
- Returns:
- the DoMouseControls
setDoMouseControls
public static void setDoMouseControls(boolean aDoMouseControls)
- Parameters:
aDoMouseControls
- the DoMouseControls 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
getRadial
public static RadialMenu getRadial()
- Returns:
- the radial
setRadial
public static void setRadial(RadialMenu aRadial)
- Parameters:
aRadial
- the radial to set
isShowPausedMessage
public static boolean isShowPausedMessage()
setShowPausedMessage
public static void setShowPausedMessage(boolean showPausedMessage)