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
8550c263
Unverified
Commit
8550c263
authored
3 years ago
by
Griefed
Committed by
GitHub
3 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request
#18
from Trungel/master
fix: View Radius fixes
parents
53a5a290
3e6c758c
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/components/Tile.vue
+17
-17
17 additions, 17 deletions
src/components/Tile.vue
src/layouts/MainLayout.vue
+9
-2
9 additions, 2 deletions
src/layouts/MainLayout.vue
with
26 additions
and
19 deletions
src/components/Tile.vue
+
17
−
17
View file @
8550c263
...
...
@@ -212,18 +212,18 @@ button.without-icon i {
.hexBottom
{
border-left
:
dashed
3px
blue
;
}
.centerTop
{
border-top
:
solid
4
.2426px
red
;
border-right
:
solid
4
.2426px
red
;
.centerTop
{
border-top
:
solid
4
.2426px
red
!
important
;
;
border-right
:
solid
4
.2426px
red
!
important
;
}
.centerBottom
{
border-bottom
:
solid
4
.2426px
red
;
border-left
:
solid
4
.2426px
red
;
border-bottom
:
solid
4
.2426px
red
!
important
;
border-left
:
solid
4
.2426px
red
!
important
;
}
}
}
.shifted
{
.shifted
,
.firstRow
{
.viewBorderRight
{
.hexTop
{
border-right
:
dashed
3px
blue
;
...
...
@@ -231,14 +231,14 @@ button.without-icon i {
.hexBottom
{
border-bottom
:
dashed
3px
blue
;
}
.centerTop
{
border-top
:
solid
4
.2426px
red
;
border-right
:
solid
4
.2426px
red
;
.centerTop
{
border-top
:
solid
4
.2426px
red
!
important
;
border-right
:
solid
4
.2426px
red
!
important
;
}
.centerBottom
{
border-bottom
:
solid
4
.2426px
red
;
border-left
:
solid
4
.2426px
red
;
border-bottom
:
solid
4
.2426px
red
!
important
;
border-left
:
solid
4
.2426px
red
!
important
;
}
}
}
...
...
@@ -345,18 +345,18 @@ button.without-icon i {
}
.centerTop
{
border-top
:
solid
4
.2426px
red
;
border-right
:
solid
4
.2426px
red
;
border-top
:
solid
4
.2426px
red
!
important
;
border-right
:
solid
4
.2426px
red
!
important
;
}
.centerBottom
{
border-bottom
:
solid
4
.2426px
red
;
border-left
:
solid
4
.2426px
red
;
border-bottom
:
solid
4
.2426px
red
!
important
;
border-left
:
solid
4
.2426px
red
!
important
;
}
.centerTile
{
z-index
:
1002
;
border-left
:
solid
3px
red
;
border-right
:
solid
3px
red
;
border-left
:
solid
3px
red
!
important
;
border-right
:
solid
3px
red
!
important
;
}
</
style
>
This diff is collapsed.
Click to expand it.
src/layouts/MainLayout.vue
+
9
−
2
View file @
8550c263
...
...
@@ -47,7 +47,7 @@
<q-icon
size=
"30px"
color=
"secondary"
name=
"mdi-arrow-expand-horizontal"
/>
</q-item-section>
<q-item-section>
<q-slider
v-model=
"store.state.radiusX"
:min=
"1"
:max=
"
Math.floor
(store.state.mapSizeX
/2
)"
label
color=
"secondary"
:step=
"1"
label-always
/>
<q-slider
v-model=
"store.state.radiusX"
:min=
"1"
:max=
"
getViewRadiusMax
(store.state.mapSizeX)"
label
color=
"secondary"
:step=
"1"
label-always
/>
</q-item-section>
</q-item>
...
...
@@ -56,7 +56,7 @@
<q-icon
size=
"30px"
color=
"secondary"
name=
"mdi-arrow-expand-vertical"
/>
</q-item-section>
<q-item-section>
<q-slider
v-model=
"store.state.radiusY"
:min=
"1"
:max=
"
Math.floor
(store.state.mapSizeY
/2
)"
label
color=
"secondary"
:step=
"1"
label-always
/>
<q-slider
v-model=
"store.state.radiusY"
:min=
"1"
:max=
"
getViewRadiusMax
(store.state.mapSizeY)"
label
color=
"secondary"
:step=
"1"
label-always
/>
</q-item-section>
</q-item>
...
...
@@ -274,6 +274,13 @@ export default defineComponent({
}
},
methods
:
{
getViewRadiusMax
(
mapSize
){
if
(
mapSize
%
2
){
return
Math
.
floor
(
mapSize
/
2
)
+
1
}
else
{
return
(
mapSize
/
2
)
+
2
}
},
newMap
(){
this
.
confirmMapNew
=
false
;
this
.
store
.
methods
.
reset
();
...
...
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