安装 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