Package com.prineside.tdi2.managers
Class AssetManager
java.lang.Object
com.prineside.tdi2.Manager.ManagerAdapter
com.prineside.tdi2.managers.AssetManager
- All Implemented Interfaces:
 com.badlogic.gdx.utils.Disposable,Manager
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classNested classes/interfaces inherited from interface com.prineside.tdi2.Manager
Manager.ManagerAdapter, Manager.ManagerWithListeners<T> - 
Field Summary
Fields - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidaddRegionCharsToFont(com.badlogic.gdx.graphics.g2d.BitmapFont font, int fontResolution) Used by ResourcePack onlystatic voidvoiddispose()Releases all resources of this object.com.badlogic.gdx.graphics.Texturecom.badlogic.gdx.graphics.g3d.Materialcom.badlogic.gdx.graphics.Colorcom.badlogic.gdx.graphics.g2d.BitmapFontgetDebugFont(boolean markupEnabled) com.badlogic.gdx.scenes.scene2d.ui.Label.LabelStylecom.badlogic.gdx.scenes.scene2d.utils.TextureRegionDrawablegetDrawable(String regionAlias) Возвращает всегда один и тот же Drawable с указанным алиасом региона.getFont(int size) getFont(int size, boolean hasMarkup) floatgetFontScaleMultiplier(int fontSize) Depens only on "lage fonts" settingcom.badlogic.gdx.scenes.scene2d.ui.Label.LabelStylegetLabelStyle(int fontSize) com.badlogic.gdx.graphics.g3d.Materialcom.badlogic.gdx.scenes.scene2d.utils.Drawablecom.badlogic.gdx.graphics.g3d.Modelcom.badlogic.gdx.scenes.scene2d.ui.ScrollPane.ScrollPaneStylegetScrollPaneStyle(float width) com.badlogic.gdx.graphics.g2d.BitmapFontcom.badlogic.gdx.scenes.scene2d.ui.Label.LabelStylegetSound(StaticSoundType soundType) Получает трек из последнего набора ресурсов, в котором все они естьgetTextureRegion(String regionAlias) getTextureRegion(String regionAlias, boolean throwExceptionOnMissing) com.badlogic.gdx.utils.Array<ResourcePack.AtlasTextureRegion>getTextureRegions(String regionAlias) loadWebTexture(String src) loadWebTexture(String src, boolean ignoreCache) static com.badlogic.gdx.files.FileHandlelocalOrInternalFile(String path) voidsetup()Вызывается, когда объекты всех менеджеров созданы и можно к ним обращатьсяvoidtest()Запустить тестирование, чтобы проверить, все ли ресурсы есть (текстуры / i18n) Запускается после загрузки всех менеджеровMethods inherited from class com.prineside.tdi2.Manager.ManagerAdapter
clearPools, postRender, preRender 
- 
Field Details
- 
TR
 
 - 
 - 
Constructor Details
- 
AssetManager
public AssetManager() 
 - 
 - 
Method Details
- 
clearCacheDir
public static void clearCacheDir() - 
localOrInternalFile
 - 
loadWebTexture
 - 
loadWebTexture
 - 
getSceneModel
public com.badlogic.gdx.graphics.g3d.Model getSceneModel() - 
getNormalMaterial
public com.badlogic.gdx.graphics.g3d.Material getNormalMaterial() - 
getBlendedMaterial
public com.badlogic.gdx.graphics.g3d.Material getBlendedMaterial() - 
replaceRegionAliasesWithChars
- Returns:
 - одинаковый инстанс SB или str, если не заменено ничего - не использовать его напрямую!
 
 - 
addRegionCharsToFont
public void addRegionCharsToFont(com.badlogic.gdx.graphics.g2d.BitmapFont font, int fontResolution) Used by ResourcePack only - 
setup
public void setup()Description copied from interface:ManagerВызывается, когда объекты всех менеджеров созданы и можно к ним обращаться- Specified by:
 setupin interfaceManager- Overrides:
 setupin classManager.ManagerAdapter
 - 
getFontScaleMultiplier
public float getFontScaleMultiplier(int fontSize) Depens only on "lage fonts" setting - 
getColor
 - 
getTextureRegion
 - 
getTextureRegion
public ResourcePack.AtlasTextureRegion getTextureRegion(String regionAlias, boolean throwExceptionOnMissing)  - 
getTextureRegions
public com.badlogic.gdx.utils.Array<ResourcePack.AtlasTextureRegion> getTextureRegions(String regionAlias)  - 
getLabelStyle
public com.badlogic.gdx.scenes.scene2d.ui.Label.LabelStyle getLabelStyle(int fontSize)  - 
getDebugLabelStyle
public com.badlogic.gdx.scenes.scene2d.ui.Label.LabelStyle getDebugLabelStyle() - 
getSmallDebugLabelStyle
public com.badlogic.gdx.scenes.scene2d.ui.Label.LabelStyle getSmallDebugLabelStyle() - 
getScrollPaneStyle
public com.badlogic.gdx.scenes.scene2d.ui.ScrollPane.ScrollPaneStyle getScrollPaneStyle(float width)  - 
getDrawable
Возвращает всегда один и тот же Drawable с указанным алиасом региона. - 
getOverlayBackground
public com.badlogic.gdx.scenes.scene2d.utils.Drawable getOverlayBackground() - 
getBlankWhiteTextureRegion
 - 
getDebugFont
public com.badlogic.gdx.graphics.g2d.BitmapFont getDebugFont(boolean markupEnabled)  - 
getSmallDebugFont
public com.badlogic.gdx.graphics.g2d.BitmapFont getSmallDebugFont() - 
getBannerTexture
public com.badlogic.gdx.graphics.Texture getBannerTexture() - 
getFont
 - 
getFont
 - 
getSound
Получает трек из последнего набора ресурсов, в котором все они есть - 
getMenuXmSoundTrack
 - 
test
public void test()Description copied from interface:ManagerЗапустить тестирование, чтобы проверить, все ли ресурсы есть (текстуры / i18n) Запускается после загрузки всех менеджеров- Specified by:
 testin interfaceManager- Overrides:
 testin classManager.ManagerAdapter
 - 
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
 
 -