Skip to content

Commit dfcccae

Browse files
committed
Final changes
Not working properly so we changed some things
1 parent f172532 commit dfcccae

2 files changed

Lines changed: 17 additions & 7 deletions

File tree

Game/imgui.ini

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ Collapsed=0
7474
DockId=0x00000001,0
7575

7676
[Window][Inspector]
77-
Pos=1050,164
78-
Size=230,556
77+
Pos=1050,20
78+
Size=230,700
7979
Collapsed=0
8080
DockId=0x00000014,0
8181

@@ -238,8 +238,8 @@ Collapsed=0
238238
DockId=0x00000014,1
239239

240240
[Window][UI Editor]
241-
Pos=1050,164
242-
Size=230,556
241+
Pos=1050,20
242+
Size=230,700
243243
Collapsed=0
244244
DockId=0x00000014,1
245245

@@ -284,5 +284,5 @@ DockSpace ID=0x8B93E3BD Window=0xA787BDB4 Pos=0,20 Size=1280,7
284284
DockNode ID=0x00000008 Parent=0x00000004 SizeRef=248,700 Selected=0x5127E491
285285
DockNode ID=0x00000005 Parent=0x8B93E3BD SizeRef=230,700 Split=Y Selected=0xE7039252
286286
DockNode ID=0x00000013 Parent=0x00000005 SizeRef=230,142 Selected=0x0E07B13A
287-
DockNode ID=0x00000014 Parent=0x00000005 SizeRef=230,556 Selected=0x4C2A45D6
287+
DockNode ID=0x00000014 Parent=0x00000005 SizeRef=230,556 Selected=0xE7039252
288288

src/modules/EngineUI/Windows/View/SceneView.cpp

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,24 @@ void SceneView::Update()
3535
float hh = ImGui::GetContentRegionAvail().y;
3636
scenesize.y = hh;
3737
scenesize.x = ww;
38-
38+
39+
ImGui::Image((ImTextureID)fb.attachment.img_id, scenesize, { 0,1 }, { 1,0 });
40+
3941
glBegin(GL_QUADS);
42+
glColor3ub(149, 149, 149);
4043
glVertex3f(-45, 5, 50);
4144
glVertex3f(-10, 5, 50);
4245
glVertex3f(-10, 30, 50);
4346
glVertex3f(-45, 30, 50);
47+
glEnd();
4448

45-
ImGui::Image((ImTextureID)fb.attachment.img_id, scenesize, { 0,1 }, { 1,0 });
49+
glBegin(GL_QUADS);
50+
glColor3ub(3, 37, 76);
51+
glVertex3f(-30, 14, 51);
52+
glVertex3f(-20, 14, 51);
53+
glVertex3f(-20, 18, 51);
54+
glVertex3f(-30, 18, 51);
55+
glEnd();
4656
}
4757

4858
if (ImGui::BeginDragDropTarget())

0 commit comments

Comments
 (0)