Hotel notification locationFixed


The notification of the hotel room rental is not in a good spot. Any chance of getting it just above the hotbar and if so, can we only have a notification if a player DOES have a room, so players without a room won't even get the "no room rented" message?

You can edit the UI location in your Info Panel Config (this will be specific to your server). It will be listed in the "3rd Party Panels" I will add a config setting for you to hide UI for non-renters 

Merged post

I am going to add language support into this mod in the next update.. That will cover this requirement.. You will be able to change the "default Not Rented" message to "" for instance.. I will try to get that out before the forced wipe thursday if possible.

I've never been good at figuring out how to adjust stuff on the UI. Is there a good primer someplace that I can look at?

For example, what is Max/MinX and Max/MinY? I know that affects where it appears but I don't understand the positioning.

everything is based on percent of the page where 0,0 is the bottom left and 1,1 is the top right.. The mins and maxs set where you place a point. The default Hotel UI places the panel in your "TopLeftDock". It looks like this may be to large on your server.. If you contact me on discord I can share my InfoPanel with you if you want to see what i use

I figured out how to move it to the bottom by editing the plugin but I would prefer not to do that for obvious reasons. Any chance of getting that added as a config option? Here's a screenshot of what it looks like with my Info panel so you can see the size of it.

cYp3YDtoRFDzQ6R.jpg

so when you first load the mod it should put a 3rd party panel into Infopanel.config if its missing.. This setting is default just to get you something. After this you should be able to edit your infopanel.json config file to setup your panels how you like.. Are you saying that you need to edit the .cs file vs just editing in infopanel?

a1tVlMRSaUCCwGG.png shady14u

so when you first load the mod it should put a 3rd party panel into Infopanel.config if its missing.. This setting is default just to get you something. After this you should be able to edit your infopanel.json config file to setup your panels how you like.. Are you saying that you need to edit the .cs file vs just editing in infopanel?

No, I had to edit the hotel.cs to change the location. I didn't realize I could change the location in the infopanel.json.

you should only need to edit the infopanel.json :-) that is the mod that handles the actual layout.. The Hotel mod just adds a default panel to it if missing.

EUvhla5wGDJBXtj.png shady14u

you should only need to edit the infopanel.json :-) that is the mod that handles the actual layout.. The Hotel mod just adds a default panel to it if missing.

Can you should me an example?



Merged post

Nevermind. I now see it in the infopanel.json. I wasn't aware of that. You should add that to the documentation.

Merged post

I edited infopanel.json but it didn't move:

  "ThirdPartyPanels": {
    "Hotel": {
      "HotelPanel": {
        "Autoload": true,
        "Dock": "BottomLeftDock",
        "Image": {
          "Width": 0.0,
          "Url": "http://i.imgur.com/dwzul4T.png",
          "Available": true,
          "AnchorX": "Left",
          "AnchorY": "Bottom",
          "Height": 0.8,
          "Order": 1,
          "BackgroundColor": "0 0 0 0",
          "Margin": "0 0 0 0"
        },
        "Text": {
          "Width": 2.0,
          "Align": "MiddleCenter",
          "FontColor": "1 1 1 1",
          "FontSize": 10,
          "Content": "Hotel Rooms",
          "FadeIn": 0.0,
          "FadeOut": 0.0,
          "Available": true,
          "AnchorX": "Left",
          "AnchorY": "Bottom",
          "Height": 1.0,
          "Order": 2,
          "BackgroundColor": "0 0 0 0",
          "Margin": "0 0.02 0 0"
        },
        "FadeOut": 0.0,
        "Permission": null,
        "Available": true,
        "AnchorX": "Left",
        "AnchorY": "Bottom",
        "Width": 0.3,
        "Height": 0.95,
        "Order": 8,
        "BackgroundColor": "0 0 0 0",
        "Margin": "0 0 0 0.01"
      }
    }
  },

did you reload infopanel after you updated it

wfqHwPNogJZCMpf.png shady14u

did you reload infopanel after you updated it

Yes. I did.



Merged post

Can you add me on Discord? BetterDeadThanZed#5610

I will review this functionality before my next release to verify that it is working properly.. InfoPanel should use its own config once the panel exists in there. If thats not the case I need to find out why Info panel isnt working like it says. In the end with both mods installed Info panel should control the location and Hotel will control the text. If you update the location in infopanel you need to reload that mod to reflect the changes

This is resolved.. you can set the panel in the Hotel.config and it will be updated in InfoPanel on the update. The latest panel setup is always stored in Infopanel 3rd Party Panels

Locked automatically