Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
ohj1ht
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pmikaiko
ohj1ht
Commits
86162471
Commit
86162471
authored
1 month ago
by
Kaikosuo Paavo
Browse files
Options
Downloads
Patches
Plain Diff
Valikon nappuloiden tekstuureja muuteltu
parent
99c24bdd
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
peli/Peli/Peli/Content/tausta.png
+0
-0
0 additions, 0 deletions
peli/Peli/Peli/Content/tausta.png
peli/Peli/Peli/Content/taustapaalla.png
+0
-0
0 additions, 0 deletions
peli/Peli/Peli/Content/taustapaalla.png
peli/Peli/Peli/Peli.cs
+11
-11
11 additions, 11 deletions
peli/Peli/Peli/Peli.cs
with
11 additions
and
11 deletions
peli/Peli/Peli/Content/tausta.png
+
0
−
0
View replaced file @
99c24bdd
View file @
86162471
513 B
|
W:
|
H:
561 B
|
W:
|
H:
2-up
Swipe
Onion skin
This diff is collapsed.
Click to expand it.
peli/Peli/Peli/Content/taustapaalla.png
+
0
−
0
View replaced file @
99c24bdd
View file @
86162471
516 B
|
W:
|
H:
537 B
|
W:
|
H:
2-up
Swipe
Onion skin
This diff is collapsed.
Click to expand it.
peli/Peli/Peli/Peli.cs
+
11
−
11
View file @
86162471
...
...
@@ -207,48 +207,48 @@ namespace Peli
{
valikonKohdat
=
new
List
<
Label
>();
// Alustetaan lista, johon valikon kohdat tulevat
valikonKuvat
=
new
List
<
GameObject
>();
Label
kohta1
=
new
Label
(
17
0
,
5
0
,
"Jatka peliä"
);
// Luodaan uusi Label-olio, joka toimii uuden pelin aloituskohtana
Label
kohta1
=
new
Label
(
17
4
,
5
4
,
"Jatka peliä"
);
// Luodaan uusi Label-olio, joka toimii uuden pelin aloituskohtana
kohta1
.
Position
=
new
Vector
(
Camera
.
Position
.
X
,
Camera
.
Position
.
Y
+
150
);
// Asetetaan valikon ensimmäinen kohta hieman kentän keskikohdan yläpuolelle
valikonKohdat
.
Add
(
kohta1
);
// Lisätään luotu valikon kohta listaan jossa kohtia säilytetään
kohta1
.
TextColor
=
Color
.
White
;
GameObject
kohta1go
=
new
GameObject
(
17
0
,
5
0
);
GameObject
kohta1go
=
new
GameObject
(
17
4
,
5
4
);
kohta1go
.
Position
=
kohta1
.
Position
;
kohta1go
.
Image
=
tausta
;
valikonKuvat
.
Add
(
kohta1go
);
Label
kohta2
=
new
Label
(
17
0
,
5
0
,
"Pelaa uudelleen"
);
Label
kohta2
=
new
Label
(
17
4
,
5
4
,
"Pelaa uudelleen"
);
kohta2
.
Position
=
new
Vector
(
Camera
.
Position
.
X
,
Camera
.
Position
.
Y
+
75
);
valikonKohdat
.
Add
(
kohta2
);
kohta2
.
TextColor
=
Color
.
White
;
GameObject
kohta2go
=
new
GameObject
(
17
0
,
5
0
);
GameObject
kohta2go
=
new
GameObject
(
17
4
,
5
4
);
kohta2go
.
Position
=
kohta2
.
Position
;
kohta2go
.
Image
=
tausta
;
valikonKuvat
.
Add
(
kohta2go
);
Label
kohta3
=
new
Label
(
17
0
,
5
0
,
"Alkuvalikko"
);
Label
kohta3
=
new
Label
(
17
4
,
5
4
,
"Alkuvalikko"
);
kohta3
.
Position
=
new
Vector
(
Camera
.
Position
.
X
,
Camera
.
Position
.
Y
);
valikonKohdat
.
Add
(
kohta3
);
kohta3
.
TextColor
=
Color
.
White
;
GameObject
kohta3go
=
new
GameObject
(
17
0
,
5
0
);
GameObject
kohta3go
=
new
GameObject
(
17
4
,
5
4
);
kohta3go
.
Position
=
kohta3
.
Position
;
kohta3go
.
Image
=
tausta
;
valikonKuvat
.
Add
(
kohta3go
);
Label
kohta4
=
new
Label
(
17
0
,
5
0
,
"Parhaat ajat"
);
Label
kohta4
=
new
Label
(
17
4
,
5
4
,
"Parhaat ajat"
);
kohta4
.
Position
=
new
Vector
(
Camera
.
Position
.
X
,
Camera
.
Position
.
Y
-
75
);
valikonKohdat
.
Add
(
kohta4
);
kohta4
.
TextColor
=
Color
.
White
;
GameObject
kohta4go
=
new
GameObject
(
17
0
,
5
0
);
GameObject
kohta4go
=
new
GameObject
(
17
4
,
5
4
);
kohta4go
.
Position
=
kohta4
.
Position
;
kohta4go
.
Image
=
tausta
;
valikonKuvat
.
Add
(
kohta4go
);
Label
kohta5
=
new
Label
(
17
0
,
5
0
,
"Lopeta peli"
);
Label
kohta5
=
new
Label
(
17
4
,
5
4
,
"Lopeta peli"
);
kohta5
.
Position
=
new
Vector
(
Camera
.
Position
.
X
,
Camera
.
Position
.
Y
-
150
);
valikonKohdat
.
Add
(
kohta5
);
kohta5
.
TextColor
=
Color
.
White
;
GameObject
kohta5go
=
new
GameObject
(
17
0
,
5
0
);
GameObject
kohta5go
=
new
GameObject
(
17
4
,
5
4
);
kohta5go
.
Position
=
kohta5
.
Position
;
kohta5go
.
Image
=
tausta
;
valikonKuvat
.
Add
(
kohta5go
);
...
...
@@ -573,7 +573,7 @@ namespace Peli
auto
.
Add
(
savu
);
}
private
void
F11
()
{
{
if
(
IsFullScreen
==
true
)
{
IsFullScreen
=
false
;
...
...
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