should set window icon for windows.
This commit is contained in:
@@ -4,8 +4,8 @@
|
|||||||
"executable": "Tick's Tales",
|
"executable": "Tick's Tales",
|
||||||
"appjar": "target/advent-standalone.jar",
|
"appjar": "target/advent-standalone.jar",
|
||||||
"mainclass": "advent/core/desktop_launcher",
|
"mainclass": "advent/core/desktop_launcher",
|
||||||
"resources": [
|
"resources": ["resources/icon" ],
|
||||||
],
|
"vmargs": ["-Xdock:icon=icon/icon_128x128.png"],
|
||||||
"minimizejre": "soft",
|
"minimizejre": "soft",
|
||||||
"outdir": "target/osx/Tick's Tales.app"
|
"outdir": "target/osx/Tick's Tales.app"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
(ns advent.core.desktop-launcher
|
(ns advent.core.desktop-launcher
|
||||||
(:require [advent.core :refer :all]
|
(:require [advent.core :refer :all]
|
||||||
[advent.utils :as utils]
|
[advent.utils :as utils]
|
||||||
)
|
[play-clj.core :refer :all])
|
||||||
(:import [com.badlogic.gdx.backends.lwjgl LwjglApplication LwjglApplicationConfiguration]
|
(:import [com.badlogic.gdx.backends.lwjgl LwjglApplication LwjglApplicationConfiguration]
|
||||||
[org.lwjgl.input Keyboard]
|
[org.lwjgl.input Keyboard]
|
||||||
[com.badlogic.gdx Gdx])
|
[com.badlogic.gdx Gdx Files$FileType])
|
||||||
(:gen-class))
|
(:gen-class))
|
||||||
|
|
||||||
|
|
||||||
@@ -27,6 +27,11 @@
|
|||||||
(catch Exception e#))))
|
(catch Exception e#))))
|
||||||
|
|
||||||
(let [cfg (LwjglApplicationConfiguration.)]
|
(let [cfg (LwjglApplicationConfiguration.)]
|
||||||
|
#_(println (.exists (files! :classpath "icon/icon_128x128.png")))
|
||||||
|
(.addIcon cfg "icon/icon_128x128.png" Files$FileType/Classpath)
|
||||||
|
(.addIcon cfg "icon/icon_32x32.png" Files$FileType/Classpath)
|
||||||
|
(.addIcon cfg "icon/icon_16x16.png" Files$FileType/Classpath)
|
||||||
|
|
||||||
(if false
|
(if false
|
||||||
(do
|
(do
|
||||||
(set! (.width cfg) (doto (.width (LwjglApplicationConfiguration/getDesktopDisplayMode)) println))
|
(set! (.width cfg) (doto (.width (LwjglApplicationConfiguration/getDesktopDisplayMode)) println))
|
||||||
|
|||||||
Reference in New Issue
Block a user