#UIが上中央寄せにする方法

1 messages · Page 1 of 1 (latest)

wind plume
#

anchorの部分をtop_middleにしてみましたが、guiズーム調整をすると下に下がってしまうので下中央寄せになっていると思います。
下寄せになってしまう原因や上寄せにする方法を教えてほしいです。

  "exp_progress_bar_and_hotbar": {
    "type": "panel",
    "size": [ "100%c", 445 ],
    "anchor_from": "top_middle",
    "anchor_to": "top_middle",
    "offset": "$xp_control_offset",
    "controls": [
      {
        "resizing_xp_bar_with_hotbar": {
          "type": "panel",
          "size": [ "100%c", 5 ],
          "controls": [
            {
              "empty_progress_bar@empty_progress_bar": 
~省略~
                                  "controls": [
                                    {
                                      "dash_rend@dash_renderer": {
                                        "anchor_from": "top_middle",
                                        "anchor_to": "top_middle",
                                        "size" : [ "100%c", -405 ],
                                        "layer": 7,
                                        "controls": [
                                          {
                                            "hotbar@hotbar_chooser": {
                                              "offset": [ 4, 16 ]
                                            }
cedar summit
#

その子の親であるcentered_gui_elements_at_bottom_middleがbottom_middleになってるせいかなと思います