Softsplit / sandbox

Sandbox for the scene system.
https://sbox.game/softsplit/sandbox
MIT License
13 stars 26 forks source link

Added A Basic Tool System #20

Closed SwagAccount closed 4 months ago

SwagAccount commented 4 months ago

Basic tool system with pop up menu.

Each tool is made using the new ToolComponent

If you want the tool to have changeable values and an inspector you need to create a {Name}Menu.razor file and store the fields on that component.

Right now I've implemented a simple test tool that Logs the value you set in it's menu.

I added an input for the tool gun menu, that being "M".

Right now you can use it even if your on a different slot, may need help on how to stop that