SmartlyDressedGames / Unturned-3.x-Community

Community portion of the Unturned-3.x repo. If you have access to the source code you can find it here:
https://github.com/SmartlyDressedGames/Unturned-3.x/
84 stars 18 forks source link

A simple improvement for working with custom UI #4347

Closed QERT2002 closed 4 months ago

QERT2002 commented 4 months ago

EPluginWidgetFlags.ShowAllHud 0/1 Just like than you press Home button Disable or enable chat, compass, hotbar, vehicle hud, player life hud and etc what home btn doing, but by serverside.

GazziFX commented 4 months ago

You can create your own constant value

const EPluginWidgetFlags ShowAllHud =
EPluginWidgetFlags.ShowInteractWithEnemy |
EPluginWidgetFlags.ShowLifeMeters | 
EPluginWidgetFlags.ShowStatusIcons |
EPluginWidgetFlags.ShowUseableGunStatus |
EPluginWidgetFlags.ShowVehicleStatus |
EPluginWidgetFlags.ShowCenterDot |
EPluginWidgetFlags.ShowReputationChangeNotification;

player.disablePluginWidgetFlag(ShowAllHud);
SDGNelson commented 4 months ago

You can create your own constant value

I think OP wants something equivalent to pressing the toggle HUD button that hides literally everything.

Sorry, but this isn't currently in the cards.