KTX 1.9.4-b1
Pre-release
Pre-release
The first released version of the library.
Change log:
- [UPDATE] Updated to LibGDX 1.9.4.
- [FEATURE] (
ktx-actors
) Implementedktx-actors
module.isShown
,centerPosition
,setKeyBoardFocus
andsetScrollFocus
extension methods forActor
.contains
operator extension method ofGroup
andStage
supportingactor in group
syntax.+
and-
operator for adding actors toGroup
andStage
.alpha
extension field forActor
andStage
.- Lambda consuming
onChange
,onClick
,onKey
,onScrollFocus
andonKeyboardFocus
extension methods forActor
, allowing to quickly define event listeners. +
and-
operator extension methods can be used to addAction
instances to aStage
.Action.then
infix extension method can be used to chain actions into sequences.Action.repeatForever
wraps an action in aRepeatAction
without a repetitions limit.
- [FEATURE] (
ktx-assets
) Implementedktx-assets
module.Assets.manager
globalAssetManager
instance.load
function can be used to load assets asynchronously via the globalAssetManager
instance.loadOnDemand
can be used to load assets immediately in a blocking manner.unload
can unload the assets.asset
function can be used to access loaded assets from the globalAssetManager
instance.isLoaded
allows to check if an asset has been loaded by the globalAssetManager
.
disposeSafely
and lambda consumingdispose
were added toDisposable
.Iterable
andArray
instances storingDisposable
elements can now be disposed.Exception.ignore
extension method was added for explicit no-op handling of exceptions.Pool.invoke
operator extension method was added as an alternative toPool.obtain
.Pool.invoke(T)
operator extension method was added as an alternative toPool.free(T)
.- Lambda consuming
pool
factory function was added. toClasspathFile
,toInternalFile
,toLocalFile
,toExternalFile
andtoAbsoluteFile
converter methods added toFileHandle
.file
factory function was added.
- [FEATURE] (
ktx-collections
) Implementedktx-collections
module.Array
factory functiongdxArrayOf
and converter methodtoGdxArray
.Array
extensions including:isEmpty
,isNotEmpty
,size
,+
,-
,getLast
,removeLast
,get
,addAll
,removeAll
,iterate
.ObjectSet
factory functiongdxSetOf
and converter methodtoGdxSet
.ObjectSet
extensions including:isEmpty
,isNotEmpty
,size
,+
,-
,addAll
,removeAll
,iterate
.ObjectMap
factory functiongdxMapOf
andIdentityMap
factorygdxIdentityMapOf
.- Maps extensions including:
isEmpty
,isNotEmpty
,size
,contains
(in
),set
([]
),iterate
,toGdxSet
. - Lambda consuming
Iterable.toGdxMap
allows to convert any collection to aObjectMap
. PooledList
collection as an alternative toPooledLinkedList
. IncludesgdxListOf
andtoGdxList
factory methods.
- [FEATURE] (
ktx-i18n
) Implementedktx-i18n
module.I18n.defaultBundle
globalI18NBundle
instance loaded byI18n.load
.addListener
,removeListener
andclearListeners
ofI18n
allow to handle the lifecycle of the globalI18NBundle
.nls
functions allow to access globalI18NBundle
.I18NBundle.get
operator function improves access to the bundle lines.BundleLine
is an interface designed to be implemented by enums that match bundle line names stored in an i18n properties file.
- [FEATURE] (
ktx-inject
) Implementedktx-inject
module.Context
is the core of the dependency injection framework, storing the registered singletons and providers.- Global
Context
instance is available viaContextContainer.defaultContext
. inject
andprovider
functions allow to extract instances and providers of selected type from the globalContext
.register
allows to add singletons and providers to the globalContext
.
- [FEATURE] (
ktx-log
) Implementedktx-log
module.debug
,info
anderror
functions allow to log data with the LibGDX logging API.logger
factory function provides instances of the KTXLogger
that wraps LibGDX logging API.
- [FEATURE] (
ktx-math
) Implementedktx-math
module.vec2
,vec3
,mat3
andmat4
factory methods forVector2
,Vector3
,Matrix3
andMatrix4
respectively.+
,-
,*
,/
,-
,++
,--
,<
,>
,<=
,>=
operators support forVector2
andVector3
.+
,-
,*
,!
,-
operators support forMatrix3
andMatrix4
.Vector2
,Vector3
,Matrix3
andMatrix4
are now decomposable into 2, 3, 9 and 16 components respectively.
- [FEATURE] (
ktx-scene2d
) Implementedktx-scene2d
module.- Added DSL for constructing complex
Scene2D
widgets.- Factory methods for parental actors:
buttonTable
,container
,dialog
,horizontalGroup
,scrollPane
,splitPane
,stack
,table
,tree
,verticalGroup
andwindow
. - Factory methods for secondary parental actors:
button
,checkBox
,imageButton
andimageTextButton
. - Factory methods for child actors:
image
,label
,list
,progressBar
,selectBox
,slider
,textArea
,textField
andtouchpad
.
- Factory methods for parental actors:
- Added DSL for constructing complex
- [FEATURE] (
ktx-style
) Implementedktx-style
module.skin
factory methods producingSkin
instances.get
operator infix function for quick access ofSkin
resources.set
operator function for quick modification ofSkin
resources.- Factory methods for styles of
Scene2D
widgets:color
,button
,checkBox
,imageButton
,imageTextButton
,label
,list
,progressBar
,selectBox
,slider
,splitPane
,textButton
,textField
,textTooltip
,touchpad
,tree
,window
.
- [FEATURE] (
ktx-vis
) Implementedktx-vis
module.- Added DSL for constructing complex
VisUI
widgets.
- Added DSL for constructing complex
- [FEATURE] (
ktx-vis-style
) Implementedktx-vis-style
module.- Factory methods for styles of
VisUI
widgets.
- Factory methods for styles of
Known issues:
- [BUG] (
ktx-scene2d
)TextButton
factory methods are missing.