Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
MtA Character Sheet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Show more breadcrumbs
Oskar Marquardt
MtA Character Sheet
Commits
38f60429
Commit
38f60429
authored
9 months ago
by
Oskar Marquardt
Browse files
Options
Downloads
Patches
Plain Diff
Added Spheres to Character
parent
080a19df
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#22111
passed
9 months ago
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/Character.elm
+15
-2
15 additions, 2 deletions
src/Character.elm
src/Main.elm
+3
-3
3 additions, 3 deletions
src/Main.elm
with
18 additions
and
5 deletions
src/Character.elm
+
15
−
2
View file @
38f60429
...
...
@@ -2,10 +2,17 @@ module Character exposing (..)
type
alias
Character
=
{
name
:
String
,
spheres
:
Spheres
}
type
CharacterField
=
Name
type
alias
Spheres
=
{
correspondence
:
Sphere
}
type
alias
Sphere
=
{
name
:
String
,
dots
:
Int
}
changeName
:
Character
->
String
->
Character
changeName
character
newName
=
...
...
@@ -18,4 +25,10 @@ changeName character newName =
new
:
Character
new
=
{
name
=
"
Default Name"
,
spheres
=
{
correspondence
=
{
name
=
"
Correspondence"
,
dots
=
0
}
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/Main.elm
+
3
−
3
View file @
38f60429
...
...
@@ -4,7 +4,7 @@ import Browser
import
Html
exposing
(
..
)
import
Html
.
Attributes
exposing
(
..
)
import
Html
.
Events
exposing
(
..
)
import
Character
exposing
(
..
)
import
Character
exposing
(
Character
)
main
:
Program
()
Model
Msg
main
=
...
...
@@ -17,7 +17,7 @@ main =
init
:
()
->
(
Model
,
Cmd
Msg
)
init
_
=
(
{
character
=
new
(
{
character
=
Character
.
new
,
modal
=
Nothing
,
modalValue
=
"
"
}
...
...
@@ -61,7 +61,7 @@ update msg model =
case
modalType
of
Name
->
(
{
model
|
character
=
changeName
model
.
character
model
.
modalValue
|
character
=
Character
.
changeName
model
.
character
model
.
modalValue
,
modal
=
Nothing
}
,
Cmd
.
none
...
...
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