예제 #1
0
 public void Build(ImGui gui, Vector2 screenSize)
 {
     if (gui.isBuilding)
     {
         var contentSize = contents.CalculateState(width, gui.pixelsPerUnit);
         var position    = (screenSize - contentSize) / 2;
         var rect        = new Rect(position, contentSize);
         gui.DrawPanel(rect, contents);
         gui.DrawRectangle(rect, SchemeColor.None, RectangleBorder.Full);
     }
 }