폰트 크기 수정 및 UI 위치조정

This commit is contained in:
jgkim 2023-06-22 07:22:52 +00:00 committed by Ikpil Choi
parent f11d5945a5
commit 957785ed51
4 changed files with 8 additions and 6 deletions

View File

@ -362,7 +362,8 @@ public class RecastDemo
dd.Init(camr); dd.Init(camr);
_imgui = new ImGuiController(_gl, window, _input); ImGuiFontConfig imGuiFontConfig = new(Path.Combine("resources\\fonts", "DroidSans.ttf"), 24, null);
_imgui = new ImGuiController(_gl, window, _input, imGuiFontConfig);
DemoInputGeomProvider geom = LoadInputMesh(Loader.ToBytes("nav_test.obj")); DemoInputGeomProvider geom = LoadInputMesh(Loader.ToBytes("nav_test.obj"));
sample = new Sample(geom, ImmutableArray<RecastBuilderResult>.Empty, null); sample = new Sample(geom, ImmutableArray<RecastBuilderResult>.Empty, null);

View File

@ -63,11 +63,12 @@ public class RcLogView : IRcView
public void Draw(double dt) public void Draw(double dt)
{ {
int otherWidth = 310; int otherWidth1 = 350;
int otherWidth2 = 620;
int height = 234; int height = 234;
var width = _canvas.Size.X - (otherWidth * 2); var width = _canvas.Size.X - (otherWidth1 + otherWidth2);
//var posX = _canvas.Size.X - width; //var posX = _canvas.Size.X - width;
ImGui.SetNextWindowPos(new Vector2(otherWidth, _canvas.Size.Y - height)); ImGui.SetNextWindowPos(new Vector2(otherWidth1, _canvas.Size.Y - height));
ImGui.SetNextWindowSize(new Vector2(width, height)); ImGui.SetNextWindowSize(new Vector2(width, height));
if (!ImGui.Begin("Log", ImGuiWindowFlags.NoMove | ImGuiWindowFlags.NoResize)) if (!ImGui.Begin("Log", ImGuiWindowFlags.NoMove | ImGuiWindowFlags.NoResize))
{ {

View File

@ -75,7 +75,7 @@ public class RcSettingsView : IRcView
{ {
var settings = _sample.GetSettings(); var settings = _sample.GetSettings();
int width = 310; int width = 620;
var posX = _canvas.Size.X - width; var posX = _canvas.Size.X - width;
ImGui.SetNextWindowPos(new Vector2(posX, 0)); ImGui.SetNextWindowPos(new Vector2(posX, 0));
ImGui.SetNextWindowSize(new Vector2(width, _canvas.Size.Y)); ImGui.SetNextWindowSize(new Vector2(width, _canvas.Size.Y));

View File

@ -55,7 +55,7 @@ public class RcToolsetView : IRcView
public void Draw(double dt) public void Draw(double dt)
{ {
int width = 310; int width = 350;
ImGui.SetNextWindowPos(new Vector2(0, 0)); ImGui.SetNextWindowPos(new Vector2(0, 0));
ImGui.SetNextWindowSize(new Vector2(width, _canvas.Size.Y)); ImGui.SetNextWindowSize(new Vector2(width, _canvas.Size.Y));
ImGui.Begin("Tools", ImGuiWindowFlags.NoMove | ImGuiWindowFlags.NoResize); ImGui.Begin("Tools", ImGuiWindowFlags.NoMove | ImGuiWindowFlags.NoResize);