DamageDisplay GUI

Displays the given damage to a player in a GUI

Total Downloads: 4,951 - First Release: Apr 3, 2016 - Last Update: Apr 16, 2016

5/5, 15 likes
  1. Hey man, the Text messages are overlapping, can you fix it? thanks :D
     
  2. If anybody wants, here are my samples of perfect landing of messages just stuck to the top of belt menu (exept bodypart! i've disabled this one) like this
    but it is without last plugin changes with config file. It can be adde through editing plugin source.
    Code:
    {
                                ""name"": ""DamageDisplay"",
                                ""parent"": ""Overlay"",
                                ""components"":
                                [
                                    {
                                         ""type"":""UnityEngine.UI.Image"",
                                         ""color"":""0.1 0.1 0.1 0.1"",
                                    },
                                    {
                                        ""type"":""RectTransform"",
                                        ""anchormin"": ""0.35 0.12"",
                                        ""anchormax"": ""0.647 0.15""
                                    }
                                ]
                            },
                            {
                                ""parent"": ""DamageDisplay"",
                                ""components"":
                                [
                                    {
                                        ""type"":""UnityEngine.UI.Text"",
                                        ""text"":""Dmg: <color=yellow>{damage}</color>"",
                                        ""fontSize"":18,
                                        ""align"": ""MiddleLeft"",
                                    },
                                    {
                                        ""type"":""RectTransform"",
                                        ""anchormin"": ""0 0"",
                                        ""anchormax"": ""1 1""
                                    }
                                ]
                            },
                            {
                                ""parent"": ""DamageDisplay"",
                                ""components"":
                                [
                                    {
                                        ""type"":""UnityEngine.UI.Text"",
                                        ""text"":""User: <color=yellow>{victim}</color>"",
                                        ""fontSize"":18,
                                        ""align"": ""MiddleLeft"",
                                    },
                                    {
                                        ""type"":""RectTransform"",
                                        ""anchormin"": ""0.22 0"",
                                        ""anchormax"": ""1 1""
                                    }
                                ]
                            },
                            {
                                ""parent"": ""DamageDisplay"",
                                ""components"":
                                [
                                    {
                                        ""type"":""UnityEngine.UI.Text"",
                                        ""text"":""{attacker}"",
                                        ""fontSize"":18,
                                        ""align"": ""MiddleLeft"",
                                    },
                                    {
                                        ""type"":""RectTransform"",
                                        ""anchormin"": ""0.36 0"",
                                        ""anchormax"": ""1 1""
                                    }
                                ]
                            },
                            {
                                ""parent"": ""DamageDisplay"",
                                ""components"":
                                [
                                    {
                                        ""type"":""UnityEngine.UI.Text"",
                                        ""text"":""{bodypart}"",
                                        ""fontSize"":15,
                                        ""align"": ""MiddleLeft"",
                                    },
                                    {
                                        ""type"":""RectTransform"",
                                        ""anchormin"": ""0 0.255"",
                                        ""anchormax"": ""1 0.755""
                                    }
                                ]
                            },
                            {
                                ""parent"": ""DamageDisplay"",
                                ""components"":
                                [
                                    {
                                        ""type"":""UnityEngine.UI.Text"",
                                        ""text"":""<color=yellow>{distance}</color>"",
                                        ""fontSize"":18,
                                        ""align"": ""MiddleLeft"",
                                    },
                                    {
                                        ""type"":""RectTransform"",
                                        ""anchormin"": ""0.85 0"",
                                        ""anchormax"": ""1 1""
                                    }
                                ]
                            }
    Dev, what about adding such samples to config, to be easy activated with one cvar for those, who don't want / can't mess with code?
     
  3. Remove the last config, then reload the plugin.
     
  4. cogu 2 updated DamageDisplay GUI with a new update entry:

    1.5.4

     
  5. since the update it spams the consol with this:
    [Oxide] 19:52 [Error] Failed to call hook 'OnEntityTakeDamage' on plugin 'DamageDisplay v1.5.4' (InvalidCastException: Null object can not be converted to a value type.)
     
  6. Will check and fix as soon as possible.
    [DOUBLEPOST=1460235903][/DOUBLEPOST]I'm not getting that error, can you explain when it happens? Also, try removing your config, then reloading the plugin
     
    Last edited by a moderator: Apr 9, 2016
  7. cant seem to fix it trought whit deleting the config :'(
     
  8. removed config and data still not working,, worked before
     
  9. For those of you who are having issues with version 1.5.4, try this.
     

    Attached Files:

  10. Tell me when to change the layering of damage on each other?
     

    Attached Files:

  11. Sorry for the delay, just saw your post now, but sure, I can try to do that!
     
  12. Cai

    Cai

    good job updating, whenever you said your gonna re write it make in the config a way to change how long it stays on screen
     
  13. cogu 2 updated DamageDisplay GUI with a new update entry:

    1.5.5

     
  14. Cai

    Cai

  15. Code:
    (19:09:50) | [Oxide] 19:09 [Error] Failed to call hook 'OnEntityTakeDamage' on plugin 'DamageDisplay v1.5.5' (InvalidCastException: Null object can not be converted to a value type.)
     
  16. +Same.
     
  17. not work for me at all.
     
  18. delete config
     
  19. If the plugin is not working:
    • Try deleting the config then reloading the plugin
    • Try changing DisplayTime on config to 0.3 (instead of 0.3f)
    • If none of those work, try downloading an older version of the plugin which I uploaded here before

    I think I have an idea of what is wrong, but have no way of testing ATM.
     
    Last edited by a moderator: Apr 13, 2016