Added the GetModel function (SpawnIcon)#2407
Added the GetModel function (SpawnIcon)#2407Vitroze wants to merge 1 commit intoFacepunch:masterfrom
Conversation
|
Why? |
|
Based on the logic of the code, without necessarily looking at the wiki, I thought that GetModel could work on a SpawnIcon (given that the function for changing the model is SetModel). From a logical point of view, I thought it would be better to implement an alias. After that, it's just for the logic of the code. |
|
I hate aliases... A striking example is the |
|
Okay, but in terms of code logic, it would be better to implement a GetModel alias because if the developer thinks it works like DModelPanel:GetModel(), they will be mistaken. It's just to follow the logic of the vgui DModelPanel. After that, I agree that adding 40 aliases could be problematic. |
Hello,
I just added an alias for the GetModelName function.