Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
ltt-mapmaker
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
JetBrains YouTrack
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Griefed
ltt-mapmaker
Commits
59bd10e5
Commit
59bd10e5
authored
3 years ago
by
Trungel
Browse files
Options
Downloads
Patches
Plain Diff
fix for not loading of images in prod
parent
42bc2b3d
No related branches found
No related tags found
2 merge requests
!6
breaking: Add Electron build, npm scripts, fix paths for tile-images, Allow different sized maps, Load maps
,
!5
breaking: Add Electron build, npm scripts and fix paths for tile-images
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/components/Tile.vue
+15
-15
15 additions, 15 deletions
src/components/Tile.vue
with
15 additions
and
15 deletions
src/components/Tile.vue
+
15
−
15
View file @
59bd10e5
...
...
@@ -186,7 +186,7 @@ export default {
label
:
'
grass
'
,
color
:
'
green-8
'
,
textcolor
:
'
white
'
,
backgroundImage
:
'
background-image: url(/tiles/grass_tile.webp);
'
backgroundImage
:
'
background-image: url(
.
/tiles/grass_tile.webp);
'
}
},
methods
:
{
...
...
@@ -195,98 +195,98 @@ export default {
this
.
label
=
'
barren
'
;
this
.
color
=
'
brown-6
'
;
this
.
textcolor
=
'
white
'
;
this
.
backgroundImage
=
'
background-image: url(/tiles/barren_tile.webp);
'
this
.
backgroundImage
=
'
background-image: url(
.
/tiles/barren_tile.webp);
'
},
clay
()
{
console
.
log
(
'
Clicked on Clay
'
);
this
.
label
=
'
clay
'
;
this
.
color
=
'
orange-6
'
;
this
.
textcolor
=
'
white
'
;
this
.
backgroundImage
=
'
background-image: url(/tiles/clay_tile.webp);
'
this
.
backgroundImage
=
'
background-image: url(
.
/tiles/clay_tile.webp);
'
},
desert
()
{
console
.
log
(
'
Clicked on Desert
'
);
this
.
label
=
'
desert
'
;
this
.
color
=
'
yellow-4
'
;
this
.
textcolor
=
'
black
'
;
this
.
backgroundImage
=
'
background-image: url(/tiles/desert_tile.webp);
'
this
.
backgroundImage
=
'
background-image: url(
.
/tiles/desert_tile.webp);
'
},
fish
()
{
console
.
log
(
'
Clicked on Fish
'
);
this
.
label
=
'
fish
'
;
this
.
color
=
'
amber-12
'
;
this
.
textcolor
=
'
black
'
;
this
.
backgroundImage
=
'
background-image: url(/tiles/fish_tile.webp);
'
this
.
backgroundImage
=
'
background-image: url(
.
/tiles/fish_tile.webp);
'
},
forest
()
{
console
.
log
(
'
Clicked on Forest
'
);
this
.
label
=
'
forest
'
;
this
.
color
=
'
green-10
'
;
this
.
textcolor
=
'
white
'
;
this
.
backgroundImage
=
'
background-image: url(/tiles/forest_tile.webp);
'
this
.
backgroundImage
=
'
background-image: url(
.
/tiles/forest_tile.webp);
'
},
grass
()
{
console
.
log
(
'
Clicked on Grass
'
);
this
.
label
=
'
grass
'
;
this
.
color
=
'
green-8
'
;
this
.
textcolor
=
'
white
'
;
this
.
backgroundImage
=
'
background-image: url(/tiles/grass_tile.webp);
'
this
.
backgroundImage
=
'
background-image: url(
.
/tiles/grass_tile.webp);
'
},
ice
()
{
console
.
log
(
'
Clicked on Ice
'
);
this
.
label
=
'
ice
'
;
this
.
color
=
'
cyan-2
'
;
this
.
textcolor
=
'
black
'
;
this
.
backgroundImage
=
'
background-image: url(/tiles/ice_tile.webp);
'
this
.
backgroundImage
=
'
background-image: url(
.
/tiles/ice_tile.webp);
'
},
iron
()
{
console
.
log
(
'
Clicked on Iron
'
);
this
.
label
=
'
iron
'
;
this
.
color
=
'
blue-grey-5
'
;
this
.
textcolor
=
'
white
'
;
this
.
backgroundImage
=
'
background-image: url(/tiles/iron_tile.webp);
'
this
.
backgroundImage
=
'
background-image: url(
.
/tiles/iron_tile.webp);
'
},
mountain
()
{
console
.
log
(
'
Clicked on Mountain
'
);
this
.
label
=
'
mountain
'
;
this
.
color
=
'
grey-13
'
;
this
.
textcolor
=
'
white
'
;
this
.
backgroundImage
=
'
background-image: url(/tiles/mountain_tile.webp);
'
this
.
backgroundImage
=
'
background-image: url(
.
/tiles/mountain_tile.webp);
'
},
salt
()
{
console
.
log
(
'
Clicked on Salt
'
);
this
.
label
=
'
salt
'
;
this
.
color
=
'
grey-4
'
;
this
.
textcolor
=
'
black
'
;
this
.
backgroundImage
=
'
background-image: url(/tiles/salt_tile.webp);
'
this
.
backgroundImage
=
'
background-image: url(
.
/tiles/salt_tile.webp);
'
},
stone
()
{
console
.
log
(
'
Clicked on Stone
'
);
this
.
label
=
'
stone
'
;
this
.
color
=
'
blue-grey-13
'
;
this
.
textcolor
=
'
white
'
;
this
.
backgroundImage
=
'
background-image: url(/tiles/stone_tile.webp);
'
this
.
backgroundImage
=
'
background-image: url(
.
/tiles/stone_tile.webp);
'
},
water
()
{
console
.
log
(
'
Clicked on Water
'
);
this
.
label
=
'
water
'
;
this
.
color
=
'
blue-10
'
;
this
.
textcolor
=
'
white
'
;
this
.
backgroundImage
=
'
background-image: url(/tiles/water_tile.webp);
'
this
.
backgroundImage
=
'
background-image: url(
.
/tiles/water_tile.webp);
'
},
wheat
()
{
console
.
log
(
'
Clicked on Wheat
'
);
this
.
label
=
'
wheat
'
;
this
.
color
=
'
amber-12
'
;
this
.
textcolor
=
'
black
'
;
this
.
backgroundImage
=
'
background-image: url(/tiles/wheat_tile.webp);
'
this
.
backgroundImage
=
'
background-image: url(
.
/tiles/wheat_tile.webp);
'
},
wool
()
{
console
.
log
(
'
Clicked on Wool
'
);
this
.
label
=
'
wool
'
;
this
.
color
=
'
brown-13
'
;
this
.
textcolor
=
'
black
'
;
this
.
backgroundImage
=
'
background-image: url(/tiles/wool_tile.webp);
'
this
.
backgroundImage
=
'
background-image: url(
.
/tiles/wool_tile.webp);
'
},
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment