Package com.prineside.tdi2.managers
Class UiManager
java.lang.Object
com.prineside.tdi2.Manager.ManagerAdapter
com.prineside.tdi2.managers.UiManager
- All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable,Game.ScreenResizeListener,Manager
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumСлои, от нижнему к высшему.static classstatic classNested classes/interfaces inherited from interface com.prineside.tdi2.Game.ScreenResizeListener
Game.ScreenResizeListener.ScreenResizeListenerAdapterNested classes/interfaces inherited from interface com.prineside.tdi2.Manager
Manager.ManagerAdapter, Manager.ManagerWithListeners<T> -
Field Summary
FieldsModifier and TypeFieldDescriptioncom.badlogic.gdx.graphics.g2d.ParticleEffectPoolcom.badlogic.gdx.scenes.scene2d.utils.Drawable[][]com.badlogic.gdx.scenes.scene2d.utils.Drawable[]final com.badlogic.gdx.utils.Array<UiManager.UiLayer>[]final com.badlogic.gdx.scenes.scene2d.Group[]final com.badlogic.gdx.scenes.scene2d.Stagefinal com.badlogic.gdx.utils.viewport.ScreenViewport -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddHighlight(com.badlogic.gdx.scenes.scene2d.Actor forActor) addLayer(UiManager.MainUiLayer mainLayer, int zIndex, String name) Создает новый слой в глобальном mainLayeraddLayer(UiManager.MainUiLayer mainLayer, int zIndex, String name, boolean ignoreSafeMargin) voiddispose()Releases all resources of this object.voiddumpActorsHierarchy(com.badlogic.gdx.scenes.scene2d.Group actor, int tabSize) com.badlogic.gdx.scenes.scene2d.ActorvoidВызывается в LuafloatintReal PXvoidgetTextInput(com.badlogic.gdx.Input.TextInputListener listener, String title, String text, String hint) voidvoidpostRender(float deltaTime) Вызывается после отрисовки и обновления экранаvoidpreRender(float deltaTime) Вызывается перед любыми обновлениями и отрисовками экранов и системvoidСортирует и меняет порядок table слоев в соответствии с zIndexvoidvoidremoveHighlight(HighlightActor highlightActor) voidremoveLayer(UiManager.UiLayer layer) Ищет и убирает слой из всех основных слоевvoidresize(int width, int height) voidУстановить stage единственным обработчиком ввода.voidsetLogTouchDownsEnabled(boolean enabled) voidsetup()Вызывается, когда объекты всех менеджеров созданы и можно к ним обращатьсяvoidMethods inherited from class com.prineside.tdi2.Manager.ManagerAdapter
clearPools, test
-
Field Details
-
viewport
public final com.badlogic.gdx.utils.viewport.ScreenViewport viewport -
stage
public final com.badlogic.gdx.scenes.scene2d.Stage stage -
layers
-
mainLayerGroups
public final com.badlogic.gdx.scenes.scene2d.Group[] mainLayerGroups -
dialog
-
darkOverlay
-
textInputOverlay
-
issuedPrizesOverlay
-
trophiesListOverlay
-
ratingForm
-
itemCreationOverlay
-
abilitySelectionOverlay
-
wavesTimelineOverlay
-
itemDescriptionDialog
-
trophyViewOverlay
-
messagesOverlay
-
backButton
-
forwardButton
-
screenTitle
-
profileSummary
-
loadingOverlay
-
resourcesAndMoney
-
notifications
-
leaderboardsOverlay
-
dailyQuestOverlay
-
difficultyModeOverlay
-
mainMenuUiScene
-
inventoryOverlay
-
cameraTools
-
openedPackOverlay
-
itemCountSelectionOverlay
-
musicListOverlay
-
dailyLootOverlay
-
questPrestigeOverlay
-
luckyWheelOverlay
-
levelConfigurationEditor
-
developerConsole
-
itemCellFlashParticles
public com.badlogic.gdx.graphics.g2d.ParticleEffectPool itemCellFlashParticles -
itemCellRarityCoats
public com.badlogic.gdx.scenes.scene2d.utils.Drawable[][] itemCellRarityCoats -
itemCellShapes
public com.badlogic.gdx.scenes.scene2d.utils.Drawable[] itemCellShapes
-
-
Constructor Details
-
UiManager
public UiManager()
-
-
Method Details
-
getTextInput
-
setLogTouchDownsEnabled
public void setLogTouchDownsEnabled(boolean enabled) -
hideAllComponents
public void hideAllComponents() -
setup
public void setup()Description copied from interface:ManagerВызывается, когда объекты всех менеджеров созданы и можно к ним обращаться- Specified by:
setupin interfaceManager- Overrides:
setupin classManager.ManagerAdapter
-
getWebBrowser
-
findDuplicateActorNames
public void findDuplicateActorNames()Вызывается в Lua -
findActor
-
dumpActorsHierarchy
public void dumpActorsHierarchy(com.badlogic.gdx.scenes.scene2d.Group actor, int tabSize) -
setAsInputHandler
public void setAsInputHandler()Установить stage единственным обработчиком ввода. -
addLayer
Создает новый слой в глобальном mainLayer- Parameters:
mainLayer- основной слойzIndex- высота слоя внутри основного слоя, чем больше, тем выше. В отличии от Actor#setZIndex(), не просто сортирует массив children, а сохраняет Z-индекс и учитывает всегда. Может быть любым значением.- Returns:
- таблица stage2d, размеры которой всегда соответствуют размерам экрана
-
addLayer
public UiManager.UiLayer addLayer(UiManager.MainUiLayer mainLayer, int zIndex, String name, boolean ignoreSafeMargin) -
removeLayer
Ищет и убирает слой из всех основных слоев -
getScreenSafeMargin
public int getScreenSafeMargin()Real PX -
getRegularLayerWidth
public float getRegularLayerWidth() -
rebuildLayers
public void rebuildLayers()Сортирует и меняет порядок table слоев в соответствии с zIndex -
preRender
public void preRender(float deltaTime) Description copied from interface:ManagerВызывается перед любыми обновлениями и отрисовками экранов и систем- Specified by:
preRenderin interfaceManager- Overrides:
preRenderin classManager.ManagerAdapter
-
postRender
public void postRender(float deltaTime) Description copied from interface:ManagerВызывается после отрисовки и обновления экрана- Specified by:
postRenderin interfaceManager- Overrides:
postRenderin classManager.ManagerAdapter
-
addHighlight
-
removeHighlight
-
removeAllHighlights
public void removeAllHighlights() -
dispose
public void dispose()Description copied from interface:com.badlogic.gdx.utils.DisposableReleases all resources of this object.- Specified by:
disposein interfacecom.badlogic.gdx.utils.Disposable- Overrides:
disposein classManager.ManagerAdapter
-
resize
public void resize(int width, int height) - Specified by:
resizein interfaceGame.ScreenResizeListener
-
visibleDisplayFrameChanged
public void visibleDisplayFrameChanged()- Specified by:
visibleDisplayFrameChangedin interfaceGame.ScreenResizeListener
-