Jump to content

Button Needs Showing on All Screens

Work in Progress 3.1.16

dustyhansen
dustyhansen

Posted

The button needs to be on the HUD only. Currently it is showing on all of the screens in the game.

Screenshot 2024-10-27 074425.png

Xray

Posted

In the source code find line 2407image.png.c052f9f113c598c12ee8b502d6062fb0.png

& replace it with this one

 

var Container = XLIB.UI.Create.Container(Anchor, Offset, Color, new XLIB.UI.UIProperties(), XLIB.UI.UILayer.Hud, $"{Instance.Name}.UI.ButtonPanel");

 

Xray

Posted

Changed Status from Pending to Work in Progress

Xray

Posted

I acually believe why i haven't updated this is because if 
XLIB.UI.UILayer.Overlay
Is changed to
XLIB.UI.UILayer.Hud
Then you won't be able to click the button so this might be a limitation within the UI system

My solution is you can edit the location on the button

dustyhansen

Posted

I just tested this and you can still click the button if it is Hud instead of Overlay. I have other plugins that add buttons to the Hud that are clickable as well. I think this should be changed in the plugin's code.

Xray

Posted

Then the game's code must have changed since I last looked.

Just try the solution I wrote above as I do not have time as of lately to investigate this myself

dustyhansen

Posted

I would say no. Your suggestion fixed the plugin for me, but it is not fixed for others unless you change it and release an update. And if you don't change it, I will have to update it myself every time you release an update. I would think that this should be changed for everyone or added as a config option to let us choose which one we want.

Xray

Posted

I fixed this issue in the next & final version of the plugin 

  • Like 1
1.4m

Downloads

Total number of downloads.

6.9k

Customers

Total customers served.

102.4k

Files Sold

Total number of files sold.

2m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.