mirror of
https://github.com/jlengrand/korge-intellij-plugin.git
synced 2026-03-10 08:31:19 +00:00
Bump versions
This commit is contained in:
@@ -2,5 +2,5 @@
|
|||||||
kotlin.code.style=official
|
kotlin.code.style=official
|
||||||
|
|
||||||
# version
|
# version
|
||||||
kotlinVersion=1.3.71
|
kotlinVersion=1.3.72
|
||||||
korgeVersion=1.11.3.0
|
korgeVersion=1.12.2.2
|
||||||
2
gradle/wrapper/gradle-wrapper.properties
vendored
2
gradle/wrapper/gradle-wrapper.properties
vendored
@@ -1,5 +1,5 @@
|
|||||||
distributionBase=GRADLE_USER_HOME
|
distributionBase=GRADLE_USER_HOME
|
||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-6.2.2-all.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-6.3-all.zip
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
zipStorePath=wrapper/dists
|
zipStorePath=wrapper/dists
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import com.soywiz.korim.color.*
|
|||||||
import com.soywiz.korim.vector.*
|
import com.soywiz.korim.vector.*
|
||||||
import com.sun.jdi.*
|
import com.sun.jdi.*
|
||||||
|
|
||||||
fun Type.isKorimBitmapOrDrawable() = this.instanceOf<Bitmap>() || this.instanceOf<BmpSlice>() || this.instanceOf<Context2d.Drawable>() || this.instanceOf<com.soywiz.korge.view.Image>()
|
fun Type.isKorimBitmapOrDrawable() = this.instanceOf<Bitmap>() || this.instanceOf<BmpSlice>() || this.instanceOf<Drawable>() || this.instanceOf<com.soywiz.korge.view.Image>()
|
||||||
|
|
||||||
fun ObjectReference.readKorimBitmap32(hintWidth: Int, hintHeight: Int, thread: ThreadReference?): Bitmap32 {
|
fun ObjectReference.readKorimBitmap32(hintWidth: Int, hintHeight: Int, thread: ThreadReference?): Bitmap32 {
|
||||||
val value = this
|
val value = this
|
||||||
@@ -14,8 +14,8 @@ fun ObjectReference.readKorimBitmap32(hintWidth: Int, hintHeight: Int, thread: T
|
|||||||
type.instanceOf<Bitmap>() -> readKorimBitmap32Internal(thread)
|
type.instanceOf<Bitmap>() -> readKorimBitmap32Internal(thread)
|
||||||
type.instanceOf<BmpSlice>() -> readKorimBmpSliceInternal(thread)
|
type.instanceOf<BmpSlice>() -> readKorimBmpSliceInternal(thread)
|
||||||
type.instanceOf<com.soywiz.korge.view.Image>() -> readKorgeImageInternal(thread)
|
type.instanceOf<com.soywiz.korge.view.Image>() -> readKorgeImageInternal(thread)
|
||||||
type.instanceOf<Context2d.Drawable>() -> {
|
type.instanceOf<Drawable>() -> {
|
||||||
val isSizedDrawable = type.instanceOf<Context2d.SizedDrawable>()
|
val isSizedDrawable = type.instanceOf<SizedDrawable>()
|
||||||
val width = if (isSizedDrawable) value.invoke("getWidth", listOf(), thread = thread).int(hintWidth) else hintWidth
|
val width = if (isSizedDrawable) value.invoke("getWidth", listOf(), thread = thread).int(hintWidth) else hintWidth
|
||||||
val height = if (isSizedDrawable) value.invoke("getHeight", listOf(), thread = thread).int(hintHeight) else hintHeight
|
val height = if (isSizedDrawable) value.invoke("getHeight", listOf(), thread = thread).int(hintHeight) else hintHeight
|
||||||
readKorimDrawableInternal(width, height, thread)
|
readKorimDrawableInternal(width, height, thread)
|
||||||
@@ -55,9 +55,9 @@ fun ObjectReference.readKorimDrawableInternal(requestedWidth: Int, requestedHeig
|
|||||||
val value = this
|
val value = this
|
||||||
val type = value.type()
|
val type = value.type()
|
||||||
val vm = virtualMachine()
|
val vm = virtualMachine()
|
||||||
if (!type.instanceOf<Context2d.Drawable>()) error("Not a korim Context2d.Drawable")
|
if (!type.instanceOf<Drawable>()) error("Not a korim Context2d.Drawable")
|
||||||
val isSizedDrawable = type.instanceOf<Context2d.SizedDrawable>()
|
val isSizedDrawable = type.instanceOf<SizedDrawable>()
|
||||||
val isBoundsDrawable = type.instanceOf<Context2d.BoundsDrawable>()
|
val isBoundsDrawable = type.instanceOf<BoundsDrawable>()
|
||||||
|
|
||||||
val width = if (isSizedDrawable) value.invoke("getWidth", thread = thread).int(requestedWidth) else requestedWidth
|
val width = if (isSizedDrawable) value.invoke("getWidth", thread = thread).int(requestedWidth) else requestedWidth
|
||||||
val height = if (isSizedDrawable) value.invoke("getHeight", thread = thread).int(requestedHeight) else requestedHeight
|
val height = if (isSizedDrawable) value.invoke("getHeight", thread = thread).int(requestedHeight) else requestedHeight
|
||||||
|
|||||||
@@ -183,7 +183,7 @@ abstract class KorgeBaseFileEditorProvider : com.intellij.openapi.fileEditor.Fil
|
|||||||
views, defaultConfig = SWFExportConfig(
|
views, defaultConfig = SWFExportConfig(
|
||||||
mipmaps = false,
|
mipmaps = false,
|
||||||
antialiasing = true,
|
antialiasing = true,
|
||||||
rasterizerMethod = Context2d.ShapeRasterizerMethod.X4,
|
rasterizerMethod = ShapeRasterizerMethod.X4,
|
||||||
exportScale = 1.0,
|
exportScale = 1.0,
|
||||||
exportPaths = false
|
exportPaths = false
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
<id>com.soywiz.korge.korge-intellij-plugin</id>
|
<id>com.soywiz.korge.korge-intellij-plugin</id>
|
||||||
|
|
||||||
<name>Korge</name>
|
<name>Korge</name>
|
||||||
<version>1.11.3.0</version>
|
<version>1.12.2.2</version>
|
||||||
<vendor email="soywiz@gmail.com" url="https://korge.soywiz.com/">Korge</vendor>
|
<vendor email="soywiz@gmail.com" url="https://korge.soywiz.com/">Korge</vendor>
|
||||||
|
|
||||||
<description><![CDATA[
|
<description><![CDATA[
|
||||||
@@ -13,6 +13,10 @@
|
|||||||
]]></description>
|
]]></description>
|
||||||
|
|
||||||
<change-notes><!-- language: HTML --><![CDATA[
|
<change-notes><!-- language: HTML --><![CDATA[
|
||||||
|
<h3>1.12.2.2</h3>
|
||||||
|
<ul>
|
||||||
|
<li>Updated versions: Korge 1.12.2.2, Kotlin 1.3.72.</li>
|
||||||
|
</ul>
|
||||||
<h3>1.11.3.0</h3>
|
<h3>1.11.3.0</h3>
|
||||||
<ul>
|
<ul>
|
||||||
<li>Updated versions: Korge 1.11.3.0, Kotlin 1.3.71.</li>
|
<li>Updated versions: Korge 1.11.3.0, Kotlin 1.3.71.</li>
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
distributionBase=GRADLE_USER_HOME
|
distributionBase=GRADLE_USER_HOME
|
||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-6.2.2-all.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-6.3-all.zip
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
zipStorePath=wrapper/dists
|
zipStorePath=wrapper/dists
|
||||||
|
|||||||
Reference in New Issue
Block a user