Package com.prineside.tdi2.managers
Class UiManager
java.lang.Object
com.prineside.tdi2.Manager.ManagerAdapter
com.prineside.tdi2.managers.UiManager
- All Implemented Interfaces:
 Disposable,Manager
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumСлои, от нижнему к высшему.static classstatic interfacestatic classNested classes/interfaces inherited from interface com.prineside.tdi2.Manager
Manager.ManagerAdapter, Manager.ManagerWithListeners<T> - 
Field Summary
FieldsModifier and TypeFieldDescriptionDrawable[]final Array<UiManager.UiLayer>[]final Group[]final Stagefinal ScreenViewport - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionaddHighlight(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.<T extends UiManager.UiComponent>
voiddisposeComponent(Class<T> type) voiddumpActorsHierarchy(Group actor, int tabSize) voidВызывается в Lua<T extends UiManager.UiComponent>
TgetComponent(Class<T> type) getItemCellRarityCoat(RarityType rarityType, int variant) floatintintReal PXintvoidgetTextInput(Input.TextInputListener listener, String title, String text, String hint) void<T extends UiManager.UiComponent>
booleanisComponentInit(Class<T> type) voidpreRender(float deltaTime) Вызывается перед любыми обновлениями и отрисовками экранов и системvoidСортирует и меняет порядок table слоев в соответствии с zIndexvoidvoidremoveHighlight(HighlightActor highlightActor) voidremoveLayer(UiManager.UiLayer layer) Ищет и убирает слой из всех основных слоевvoidrender(float deltaTime) voidrunOnStageAct(Runnable runnable) voidrunOnStageActOnce(Runnable runnable) voidУстановить stage единственным обработчиком ввода.voidsetLogTouchDownsEnabled(boolean enabled) voidsetup()Вызывается, когда объекты всех менеджеров созданы и можно к ним обращатьсяMethods inherited from class com.prineside.tdi2.Manager.ManagerAdapter
postRender, test 
- 
Field Details
- 
viewport
 - 
stage
 - 
layers
 - 
mainLayerGroups
 - 
itemCellFlashParticles
 - 
itemCellShapes
 
 - 
 - 
Constructor Details
- 
UiManager
public UiManager() 
 - 
 - 
Method Details
- 
getComponent
 - 
isComponentInit
 - 
disposeComponent
 - 
getItemCellRarityCoat
 - 
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
 - 
findDuplicateActorNames
public void findDuplicateActorNames()Вызывается в Lua - 
findActor
 - 
dumpActorsHierarchy
 - 
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
Ищет и убирает слой из всех основных слоев - 
getScreenWidth
public int getScreenWidth() - 
getScreenHeight
public int getScreenHeight() - 
getScreenSafeMargin
public int getScreenSafeMargin()Real PX - 
getRegularLayerWidth
public float getRegularLayerWidth() - 
runOnStageAct
 - 
runOnStageActOnce
 - 
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
 - 
render
public void render(float deltaTime)  - 
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 interfaceDisposable- Overrides:
 disposein classManager.ManagerAdapter
 
 -