Установить Steam
войти
|
язык
简体中文 (упрощенный китайский)
繁體中文 (традиционный китайский)
日本語 (японский)
한국어 (корейский)
ไทย (тайский)
Български (болгарский)
Čeština (чешский)
Dansk (датский)
Deutsch (немецкий)
English (английский)
Español - España (испанский)
Español - Latinoamérica (латиноам. испанский)
Ελληνικά (греческий)
Français (французский)
Italiano (итальянский)
Bahasa Indonesia (индонезийский)
Magyar (венгерский)
Nederlands (нидерландский)
Norsk (норвежский)
Polski (польский)
Português (португальский)
Português-Brasil (бразильский португальский)
Română (румынский)
Suomi (финский)
Svenska (шведский)
Türkçe (турецкий)
Tiếng Việt (вьетнамский)
Українська (украинский)
Сообщить о проблеме с переводом
I've never used the DHTML element myself.
I took a quick look and security might be a problem. As I understand it the website gets loaded by the client that creates the DHTML element.
Therefore it allows the e2-creator to open any URL on any other player, which is something I'm not willing to implement.
That said. It might be possible to allow only the e2-owner to use DHTML elements but block it on other players or add additional features to the buddy system to explicitly allow the usage of DHTML elements.
Aside from that, there seems to be a feature that allows Javascript to execute Lua code which also might present security problems (I took note that you can disable this specific funtionality though)
I will have to look into it a bit more.
Do you have any specific use cases in mind for DHTML which would help me understand what features you need?
For some reason VGUI core just stopped working entirely. None of the functions or anything show up in expression 2, and it makes errors whenever I try to spawn any of my dupes using VGUI core. The spawnmenu extensions still exist, like the buddies and blacklist menu, but the core is just non-existent in the editor.
That "duplicate column" error is something I can't really fix. It happens when you try to create columns which use the same index (e.g. add 2 columns without index and then add another one with index 1)
See: https://github.com/Facepunch/garrysmod/blob/master/garrysmod/lua/vgui/dlistview.lua#L71
I'm unsure what causes the second error, can you provide a simple code example to reproduce this (in a new issue on github) ?
[[E2] Vgui Core] Attempted to insert duplicate column.
1. AddColumn - lua/vgui/dlistview.lua:71
2. unknown - lua/autorun/client/cl_vgui_lib.lua:75
3. applyAttributes - lua/autorun/client/cl_vgui_lib.lua:170
4. createFunc - vgui_elements/client/dlistview.lua:8
5. func - lua/autorun/client/cl_e2_vgui_netmessage.lua:33
6. unknown - lua/includes/extensions/net.lua:33
[[E2] Vgui Core] lua/autorun/client/cl_vgui_lib.lua:79: attempt to index local 'column' (a nil value)
1. unknown - lua/autorun/client/cl_vgui_lib.lua:79
2. applyAttributes - lua/autorun/client/cl_vgui_lib.lua:170
3. createFunc - vgui_elements/client/dlistview.lua:8
4. func - lua/autorun/client/cl_e2_vgui_netmessage.lua:33
5. unknown - lua/includes/extensions/net.lua:33
It also has some edge cases where panels created by an E2 can be stuck on-screen forever even when the E2 is deleted. There needs to be a console command to clear all E2 VGUIs
I will add more example in the future but if you need help with anything specific just post a comment here or ask me on the Official Wiremod Discord @Linus