GUI repositioning

Discussion in 'Rust Discussion' started by w4ssup, Aug 16, 2015.

  1. Can someone teach me how the positioning of plugin's gui works? like the anchor min and max? For example, how would I change the Remover tool GUI from the top left to something like bottom left
    Code:
    [ 
                            {
                                ""name"": ""RemoveMsg"",
                                ""parent"": ""Overlay"",
                                ""components"":
                                [
                                    {
                                         ""type"":""UnityEngine.UI.Image"",
                                         ""color"":""0.1 0.1 0.1 0.7"",
                                    },
                                    {
                                        ""type"":""RectTransform"",
                                        ""anchormin"": ""{xmin} {ymin}"",
                                        ""anchormax"": ""{xmax} {ymax}""
                                    }
                                ]
                            },
                            {
                                ""parent"": ""RemoveMsg"",
                                ""components"":
                                [
                                    {
                                        ""type"":""UnityEngine.UI.Text"",
                                        ""text"":""{msg}"",
                                        ""fontSize"":15,
                                        ""align"": ""MiddleCenter"",
                                    },
                                    {
                                        ""type"":""RectTransform"",
                                        ""anchormin"": ""0 0.5"",
                                        ""anchormax"": ""1 0.9""
                                    }
                                ]
                            },
                            {
                                ""parent"": ""RemoveMsg"",
                                ""components"":
                                [
                                    {
                                        ""type"":""UnityEngine.UI.Text"",
                                        ""text"":""{msg2}"",
                                        ""fontSize"":15,
                                        ""align"": ""MiddleCenter"",
                                    },
                                    {
                                        ""type"":""RectTransform"",
                                        ""anchormin"": ""0 0.1"",
                                        ""anchormax"": ""1 0.5""
                                    }
                                ]
                            }
                        ]
     
  2. Again.. you could just post in the R-Remover's thread.

    Open the config.. the ymin is from downside to ymax upside. xmin from the start of the left side xmax to the max of the right side..
     
  3. Why would I put in the remover thread? I'm using it as an example, and I dont want it just to be for the remover tool. As for the numbers that goes into the min/max, does it have to be enter a certain way? like neg # make it go left/right or vice-versa
     
  4. the left number the( 0 and 1) = xmin(0) and xmax(1)
    the right numbers (0.6 and 1) = ymin(0.6) ymax(1)
     
  5. thanks