Skip to content

Commit

Permalink
Fix main menu image path
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron Santos committed Dec 9, 2018
1 parent 2e7a1a2 commit 4cf3e0d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/robinson/fs.clj
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
.getProtectionDomain
.getCodeSource
.getLocation
.toURI
.getPath)]
(if (clojure.string/includes? jar-path "robinson.jar")
(->
Expand Down
5 changes: 2 additions & 3 deletions src/robinson/ui/components/robinson.clj
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
wrap-line
fill-missing
xy->pos]]
[robinson.fs :as rfs]
[robinson.world :as rw :refer [current-state
get-time
get-cell
Expand Down Expand Up @@ -44,7 +44,6 @@
[robinson.ui.updater :as ruu]
[zaffre.terminal :as zat]
[zaffre.color :as zcolor]
[zaffre.animation.wrapper :as zaw]
[zaffre.components :as zc]
[zaffre.components.ui :as zcui]
[zaffre.util :as zutil]
Expand Down Expand Up @@ -1585,7 +1584,7 @@
[:terminal {} [
[:group {:id :app} [
[:layer {:id :map} [
[zcui/Image {:src "/home/santos/src/robinson/images/robinson-mainmenu.jpg"}]]]
[zcui/Image {:src (rfs/cwd-path "images/robinson-mainmenu.jpg")}]]]
[:layer {:id :ui} [
[:view {:style {:color [255 255 255 255]
:background-color [0 0 0 0]
Expand Down

0 comments on commit 4cf3e0d

Please sign in to comment.