Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C++ Abschlussprojekt
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
Leon Niklas Lux
C++ Abschlussprojekt
Commits
51c9e6a3
Unverified
Commit
51c9e6a3
authored
4 months ago
by
Julian Dreuth
Committed by
Leon Lux
4 months ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix/change doors
parent
848e9d9a
No related branches found
No related tags found
1 merge request
!55
Abgabe des Projektes
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
editor/src/CenterGrid.hpp
+3
-2
3 additions, 2 deletions
editor/src/CenterGrid.hpp
editor/src/MainWindow.cpp
+13
-2
13 additions, 2 deletions
editor/src/MainWindow.cpp
with
16 additions
and
4 deletions
editor/src/CenterGrid.hpp
+
3
−
2
View file @
51c9e6a3
...
...
@@ -128,8 +128,9 @@ class CenterGrid : public QWidget
*/
std
::
vector
<
int
>
m_tileIDList
=
{
0
,
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
,
9
,
32
,
33
,
34
,
35
,
36
,
37
,
38
,
39
,
40
,
41
,
64
,
65
,
66
,
67
,
68
,
69
,
70
,
71
,
72
,
73
,
96
,
97
,
98
,
99
,
100
,
101
,
128
,
129
,
130
,
131
,
132
,
133
,
160
,
161
,
162
,
163
,
164
,
165
,
192
,
193
,
194
,
195
,
201
,
224
,
225
,
226
,
227
,
232
,
233
};
96
,
97
,
98
,
99
,
100
,
101
,
102
,
103
,
104
,
128
,
129
,
130
,
131
,
132
,
133
,
134
,
135
,
136
,
160
,
161
,
162
,
163
,
164
,
165
,
166
,
167
,
168
,
192
,
193
,
194
,
195
,
198
,
199
,
201
,
224
,
225
,
226
,
227
,
232
,
233
};
/**
* @brief List of all spriteIDs that are mobs
...
...
This diff is collapsed.
Click to expand it.
editor/src/MainWindow.cpp
+
13
−
2
View file @
51c9e6a3
...
...
@@ -118,8 +118,19 @@ MainWindow::MainWindow(DialogSelection selected, const std::filesystem::path &pa
int
x
=
gameObject
.
position
.
x
;
int
y
=
gameObject
.
position
.
y
;
int
tileID
=
gameObject
.
id
;
m_centerGrid
->
setCurrentSprite
(
m_leftWidget
->
getPixmapByIndex
(
tileID
),
tileID
);
m_centerGrid
->
onTileClicked
(
x
,
y
);
switch
(
tileID
)
{
case
0
:
m_centerGrid
->
setCurrentSprite
(
m_leftWidget
->
getPixmapByIndex
(
22
),
22
);
break
;
case
1
:
m_centerGrid
->
setCurrentSprite
(
m_leftWidget
->
getPixmapByIndex
(
86
),
86
);
break
;
case
2
:
m_centerGrid
->
setCurrentSprite
(
m_leftWidget
->
getPixmapByIndex
(
86
),
146
);
break
;
}
m_centerGrid
->
onTileClicked
(
x
,
y
);
}
}
}
...
...
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