ZLevelsRemastered

Moved

Total Downloads: 41,383 - First Release: Nov 15, 2015 - Last Update: Jul 22, 2018

5/5, 127 likes
  1. That isn't even related to the problem, my fix works for me perfectly.
     
  2. Kappa any way to allign with health bar ?
     
  3. I don't have time to mess with the positions right now, I will work on it soon.
     
  4. Quick craft is still blocked with this
     
  5. Oh, I don't use that future.
     
  6. neither do i, was just letting people know :)
     
  7. Wait, this is happening, this is another error I was not aware of, we will have to wait for the dev ;)
     
  8. gui not work
     
  9. See my fix.
     
  10. so how do you fix the gui not working ?
     
  11. where is your fix?
     
  12. It's working with new update but I can't see level status panel anymore
    Can u fix it for us please?

    -> Oh sorry I found ur fix
    Thank you so much!
     
  13. See my fix, a few pages back,
     
  14. Hi,
    How I can destroy the gui when someone press Tab.
    I tryed this code
    Code:
            private static List<Key> GetDefaultKeys()
                {
                    List<Key> keys = new List<Key>()
                    {
                        new Key
                        {
                            key = "tab",
                            action = "inventory.toggle;level.action add destroy",
                            defaultAction = "inventory.toggle",
                        },
                        new Key
                        {
                            key = "escape",
                            action = "killfeed.action add",
                            defaultAction = ""
                        }
                    };
                    return keys;
                }
           
           
            [ConsoleCommand("level.action")]
            void ConsoleCommand(ConsoleSystem.Arg arg)
            {
                if (guioff.Contains(player.userID))
                {
                    guioff.Remove(player.userID);
                    RenderUI(player);
                }
                else
                {
                    guioff.Add(player.userID);
                    CuiHelper.DestroyUi(player, "StatsUI"); ;
                }
            }
    Thk to Tuntenfisch for her code
    
    However I have this error
    Code:
    (05:10:11) | [Oxide] 05:10 [Error] ZLevelsRemastered.cs(862,23): error CS0246: The type or namespace name `Key' could not be found. Are you missing `SilentOrbit.ProtocolBuffers' using directive?
    If Someone have the fix ?
     
  15. I'd assume facepunch would change it either way, my infopanel, map, ect overlap when tabbing out of the server.
     
  16. Yes but for Zlevels, we just need to destroy the gui when someone open her inventory
     
  17. How make reposition GUI indicator? after global update Rust...
     
  18. Code:
    LINE 987
                    RectTransform =
                    {
                        AnchorMin = "0.69 0.0220",
                        AnchorMax = "0.83 0.1335"
                    }Changed the Color mathcing the Rust GUI Aswel   "Credit to @Diesel 42o "
    LINE 889
                {
                    Name = CuiHelper.GetGuid(),
                    Parent = mainPanel,
                    Components =
                            {
                                new CuiImageComponent { Color = "0.4 0.4 0.4 0.1" },     <------- changed the last to 0.1
                                new CuiRectTransformComponent{ AnchorMin = "0 " + positionMin.ToString("0.####"), AnchorMax = $"1 "+ positionMax.ToString("0.####") }
                            }
                };LINE 982
                {
                    Image =
                    {
                        Color = "0.1 0.1 0.1 0.0"          <------- changed the last to 0.0
                    },
                    RectTransform =
                    {
                        AnchorMin = "0.69 0.0220",
                        AnchorMax = "0.83 0.1335"
                    }
                }, "Overlay", "StatsUI");
    
    i changed the position of the GUI it looks smoother now:
    "OCD"
    Edited the .cs for no crafting lvls and max cap of mining etc is 200!
    so the config will be perfect when instaled
     

    Attached Files:

    Last edited by a moderator: Jul 9, 2016
  19. Or you can put it here too:

    Image =
    {
    Color = "0.1 0.1 0.1 0.7"
    },
    RectTransform =
    {
    AnchorMin = "0.17 0.0255",
    AnchorMax = "0.336 0.1055"
    }
    }, "Overlay", "StatsUI");

    int fontSize = 12;
    string xpBarAnchorMin = "0.11 0.12";
    string xpBarAnchorMax = "0.89 0.78";
    int currentSKillIndex = 1;
     

    Attached Files: