Tim Goll

Results 292 comments of Tim Goll

stylua sometimes handles these snippets in a bad way, not sure if there is anything that could be done about this. Most of the time it is as it is...

> you mean the `.Create(` being pushed to the next line? Yes. Especially for the spacer example. Without my doubled variable, it would the `:Add` to the second line as...

I'm now at a point where i probably rebuilt 80% of the UI code. With some further refactoring I can probably get rid of many code duplications in the rendering....

My goal for this PR is to get it working for all normal panels. There is probably lots of stuff that can be improved in the special panels we created,...

I'm amazed that I only needed 3h of debbuging to get it working! Here are some updates: ![image](https://github.com/user-attachments/assets/b23bb220-5724-40d5-9c4d-d922b2d61848) **[Buttons](https://github.com/TTT-2/ttt2-testing/blob/main/lua/autorun/client/cl_vgui_buttons.lua):** Work with icons, and without. Always center text alignment was used....

![image](https://github.com/user-attachments/assets/49954f0d-794a-4c32-a4b3-d2cef570a6a4) The F1 menu is currently broken due to all the changes, but this will be fixed.

![image](https://github.com/user-attachments/assets/30204f95-3e40-4409-8552-2af8f1ccc09b) **[More Panels](https://github.com/TTT-2/ttt2-testing/blob/main/lua/autorun/client/cl_vgui_panels_more.lua):** I added more panels to the testing suite. These only contain description or icon and make use of the new padding feature. The first three have a...

![image](https://github.com/user-attachments/assets/236dd141-2e85-401f-9312-5b5745a13fda) **[Stretch with vertical alignment](https://github.com/TTT-2/ttt2-testing/blob/main/lua/autorun/client/cl_vgui_panels_stretch_v.lua):** Panels now also support vertical alignment by setting `PANEL:SetVerticalAlignment(true)`. All the other parameters are the same. And of course this works the same for buttons...

I also removed the background bleeding for outlines with rounded corners: old: ![image](https://github.com/user-attachments/assets/532f2a9e-28cc-49cb-ae04-3aa1b24f0c3a) new: ![image](https://github.com/user-attachments/assets/a8c1688c-77b1-4e75-bd33-8e6a3cbb9da4) zoomed in (old vs new): ![image](https://github.com/user-attachments/assets/b6261984-b755-4ff5-b2b1-71207c35adc5)

![image](https://github.com/user-attachments/assets/0471d7e1-53fd-4b56-a038-171f9b3d4e10) I also started converting everything to the new system