dvdvideo1234 / TrackAssemblyTool

A Garry's mod tool for assembing a prop-segmented track
GNU Affero General Public License v3.0
21 stars 2 forks source link

[UPD] French translation #25

Closed Gedo789 closed 3 years ago

Gedo789 commented 3 years ago

Happy New Year everyone!

dvdvideo1234 commented 3 years ago

Hello,

First of all and most important. Happy new year ;)

No. because the tool remembers the last value of the convar and updates the drop-down menu according to its value on its first run here, because the panel modification is directly linked to it. Please leave it how it is, as it does not have such default value in the way it gets selected/updated:

https://github.com/dvdvideo1234/TrackAssemblyTool/blob/beb6161aa7392bdbbb07ee8f5eb4c21960bc6247/lua/weapons/gmod_tool/stools/trackassembly.lua#L2214

dvdvideo1234 commented 3 years ago

I just saw https://github.com/Gedo789/TrackAssemblyTool/pull/7

So let me explain... Most of these hashes are for the tool convar tweak control menu. They update various convars with their values. Consider this tSet["tool."..sTool..".curvefact" ]. This is in fact the tool tip of the panel when it is hovered with the mouse. These that have _con are evaluated to control for example tSet["tool."..sTool..".curvefact_con" ] just tells what the checkbox/slider/button should be labeled as. For example you have a button named test and when you hover on it must display Click to test me! ( and you click the button to test something ), so the _con value must be equal to test in this case ;) and the one without _con to Click to test me!

Gedo789 commented 3 years ago

Done.

dvdvideo1234 commented 3 years ago

Merci beaucoup!